45 double DisplacementBasedFoepplvonKarmanEquations::
46 Default_Physical_Constant_Value = 0.0;
83 const unsigned &nplot)
102 for (
unsigned iplot=0;iplot<num_plot_points;iplot++)
109 for(
unsigned i=0;
i<2;
i++)
112 outfile << x[
i] <<
" ";
125 outfile << sigma(0,0) <<
" ";
126 outfile << sigma(0,1) <<
" ";
127 outfile << sigma(1,1) <<
" ";
130 outfile << strain(0,0) <<
" ";
131 outfile << strain(0,1) <<
" ";
132 outfile << strain(1,1) <<
" ";
133 outfile << std::endl;
151 const unsigned &nplot)
161 for (
unsigned iplot=0;iplot<num_plot_points;iplot++)
166 for(
unsigned i=0;
i<2;
i++)
188 const unsigned &nplot,
206 for (
unsigned iplot=0;iplot<num_plot_points;iplot++)
216 (*exact_soln_pt)(x,exact_soln);
219 for(
unsigned i=0;
i<2;
i++)
221 outfile << x[
i] <<
" ";
223 outfile << exact_soln[0] <<
" ";
224 outfile << exact_soln[1] <<
" ";
225 outfile << exact_soln[2] << std::endl;
244 double& error,
double& norm)
257 unsigned n_node =
nnode();
265 outfile <<
"ZONE" << std::endl;
271 for(
unsigned ipt=0;ipt<n_intpt;ipt++)
275 for(
unsigned i=0;
i<2;
i++)
296 (*exact_soln_pt)(x,exact_soln);
299 for(
unsigned i=0;
i<2;
i++)
301 outfile << x[
i] <<
" ";
303 outfile << exact_soln[0] <<
" " << exact_soln[0]-w_fe << std::endl;
306 norm+=exact_soln[0]*exact_soln[0]*
W;
307 error+=(exact_soln[0]-w_fe)*(exact_soln[0]-w_fe)*
W;
virtual std::string tecplot_zone_string(const unsigned &nplot) const
Return string for tecplot zone header (when plotting nplot points in each "coordinate direction") ...
void output(std::ostream &outfile)
Output with default number of plot points.
static double Default_Nu_Value
Default value for Poisson's ratio.
virtual void get_s_plot(const unsigned &i, const unsigned &nplot, Vector< double > &s, const bool &shifted_to_interior=false) const
Get cector of local coordinates of plot point i (when plotting nplot points in each "coordinate direc...
virtual unsigned self_test()
Self-test: Check inversion of element & do self-test for GeneralisedElement. Return 0 if OK...
virtual double weight(const unsigned &i) const =0
Return weight of i-th integration point.
virtual unsigned nplot_points(const unsigned &nplot) const
Return total number of plot points (when plotting nplot points in each "coordinate direction") ...
void(* SteadyExactSolutionFctPt)(const Vector< double > &, Vector< double > &)
Function pointer for function that computes vector-valued steady "exact solution" as ...
virtual double interpolated_x(const Vector< double > &s, const unsigned &i) const
Return FE interpolated coordinate x[i] at local coordinate s.
Integral *const & integral_pt() const
Return the pointer to the integration scheme (const version)
virtual double knot(const unsigned &i, const unsigned &j) const =0
Return local coordinate s[j] of i-th integration point.
virtual void write_tecplot_zone_footer(std::ostream &outfile, const unsigned &nplot) const
Add tecplot zone "footer" to output stream (when plotting nplot points in each "coordinate direction"...
double interpolated_w_fvk(const Vector< double > &s, unsigned index=0) const
Return FE representation of function value w_fvk(s) at local coordinate s (by default - if index > 0...
void output_fct(std::ostream &outfile, const unsigned &n_plot, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt)
Output exact soln: x,y,w_exact at n_plot^DIM plot points.
unsigned self_test()
Self-test: Return 0 for OK.
virtual unsigned nweight() const =0
Return the number of integration points of the scheme.
unsigned nnode() const
Return the number of nodes.
void get_stress_and_strain_for_output(const Vector< double > &s, DenseMatrix< double > &sigma, DenseMatrix< double > &strain)
virtual double J_eulerian(const Vector< double > &s) const
Return the Jacobian of mapping from local to global coordinates at local position s...
void compute_error(std::ostream &outfile, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt, double &error, double &norm)
Get error against and norm of exact solution.