foeppl_von_karman_elements.h
Go to the documentation of this file.
1 // LIC// ====================================================================
2 // LIC// This file forms part of oomph-lib, the object-oriented,
3 // LIC// multi-physics finite-element library, available
4 // LIC// at http://www.oomph-lib.org.
5 // LIC//
6 // LIC// Copyright (C) 2006-2022 Matthias Heil and Andrew Hazel
7 // LIC//
8 // LIC// This library is free software; you can redistribute it and/or
9 // LIC// modify it under the terms of the GNU Lesser General Public
10 // LIC// License as published by the Free Software Foundation; either
11 // LIC// version 2.1 of the License, or (at your option) any later version.
12 // LIC//
13 // LIC// This library is distributed in the hope that it will be useful,
14 // LIC// but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // LIC// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // LIC// Lesser General Public License for more details.
17 // LIC//
18 // LIC// You should have received a copy of the GNU Lesser General Public
19 // LIC// License along with this library; if not, write to the Free Software
20 // LIC// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 // LIC// 02110-1301 USA.
22 // LIC//
23 // LIC// The authors may be contacted at oomph-lib@maths.man.ac.uk.
24 // LIC//
25 // LIC//====================================================================
26 // Header file for FoepplvonKarman elements
27 #ifndef OOMPH_FOEPPLVONKARMAN_ELEMENTS_HEADER
28 #define OOMPH_FOEPPLVONKARMAN_ELEMENTS_HEADER
29 
30 
31 // Config header generated by autoconfig
32 #ifdef HAVE_CONFIG_H
33 #include <oomph-lib-config.h>
34 #endif
35 
36 #include <sstream>
37 
38 // OOMPH-LIB headers
39 #include "../generic/projection.h"
40 #include "../generic/nodes.h"
41 #include "../generic/Qelements.h"
42 #include "../generic/oomph_utilities.h"
43 
44 
45 namespace oomph
46 {
47  //=============================================================
55  //=============================================================
56  class FoepplvonKarmanEquations : public virtual FiniteElement
57  {
58  public:
62  double& f);
63 
68  {
69  // Set all the physical constants to the default value (zero)
71  Linear_bending_model = false;
72 
73  // No volume constraint
75  }
76 
79 
81  void operator=(const FoepplvonKarmanEquations&) = delete;
82 
83  // Access functions for the physical constants
84 
86  const double& eta() const
87  {
88  return *Eta_pt;
89  }
90 
92  double*& eta_pt()
93  {
94  return Eta_pt;
95  }
96 
97 
103  {
104 #ifdef PARANOID
105  if (data_pt->nvalue() != 1)
106  {
107  throw OomphLibError("Data object that contains volume control pressure "
108  "should only contain a single value. ",
111  }
112 #endif
113 
114  // Add as external data and remember the index in the element's storage
115  // scheme
117  add_external_data(data_pt);
118  }
119 
131  virtual inline unsigned nodal_index_fvk(const unsigned& i = 0) const
132  {
133  return i;
134  }
135 
137  void output(std::ostream& outfile)
138  {
139  const unsigned n_plot = 5;
140  output(outfile, n_plot);
141  }
142 
145  void output(std::ostream& outfile, const unsigned& n_plot);
146 
148  void output(FILE* file_pt)
149  {
150  const unsigned n_plot = 5;
151  output(file_pt, n_plot);
152  }
153 
156  void output(FILE* file_pt, const unsigned& n_plot);
157 
159  void output_fct(std::ostream& outfile,
160  const unsigned& n_plot,
162 
166  virtual void output_fct(
167  std::ostream& outfile,
168  const unsigned& n_plot,
169  const double& time,
171  {
172  throw OomphLibError(
173  "There is no time-dependent output_fct() for Foeppl von Karman"
174  "elements ",
177  }
178 
179 
181  void compute_error(std::ostream& outfile,
183  double& error,
184  double& norm);
185 
186 
188  void compute_error(std::ostream& outfile,
190  const double& time,
191  double& error,
192  double& norm)
193  {
194  throw OomphLibError(
195  "There is no time-dependent compute_error() for Foeppl von Karman"
196  "elements",
199  }
200 
203  {
204  return Pressure_fct_pt;
205  }
206 
209  {
210  return Pressure_fct_pt;
211  }
212 
215  {
216  return Airy_forcing_fct_pt;
217  }
218 
221  {
222  return Airy_forcing_fct_pt;
223  }
224 
229  inline virtual void get_pressure_fvk(const unsigned& ipt,
230  const Vector<double>& x,
231  double& pressure) const
232  {
233  // If no pressure function has been set, return zero
234  if (Pressure_fct_pt == 0)
235  {
236  pressure = 0.0;
237  }
238  else
239  {
240  // Get pressure strength
241  (*Pressure_fct_pt)(x, pressure);
242  }
243  }
244 
249  inline virtual void get_airy_forcing_fvk(const unsigned& ipt,
250  const Vector<double>& x,
251  double& airy_forcing) const
252  {
253  // If no pressure function has been set, return zero
254  if (Airy_forcing_fct_pt == 0)
255  {
256  airy_forcing = 0.0;
257  }
258  else
259  {
260  // Get pressure strength
261  (*Airy_forcing_fct_pt)(x, airy_forcing);
262  }
263  }
264 
267  Vector<double>& gradient) const
268  {
269  // Find out how many nodes there are in the element
270  const unsigned n_node = nnode();
271 
272  // Get the index at which the unknown is stored
273  const unsigned w_nodal_index = nodal_index_fvk(0);
274 
275  // Set up memory for the shape and test functions
276  Shape psi(n_node);
277  DShape dpsidx(n_node, 2);
278 
279  // Call the derivatives of the shape and test functions
280  dshape_eulerian(s, psi, dpsidx);
281 
282  // Initialise to zero
283  for (unsigned j = 0; j < 2; j++)
284  {
285  gradient[j] = 0.0;
286  }
287 
288  // Loop over nodes
289  for (unsigned l = 0; l < n_node; l++)
290  {
291  // Loop over derivative directions
292  for (unsigned j = 0; j < 2; j++)
293  {
294  gradient[j] += this->nodal_value(l, w_nodal_index) * dpsidx(l, j);
295  }
296  }
297  }
298 
301 
302  // void fill_in_contribution_to_jacobian(Vector<double> &residuals,
303  // DenseMatrix<double> &jacobian);
304 
308  inline double interpolated_w_fvk(const Vector<double>& s,
309  unsigned index = 0) const
310  {
311  // Find number of nodes
312  const unsigned n_node = nnode();
313 
314  // Get the index at which the poisson unknown is stored
315  const unsigned w_nodal_index = nodal_index_fvk(index);
316 
317  // Local shape function
318  Shape psi(n_node);
319 
320  // Find values of shape function
321  shape(s, psi);
322 
323  // Initialise value of u
324  double interpolated_w = 0.0;
325 
326  // Loop over the local nodes and sum
327  for (unsigned l = 0; l < n_node; l++)
328  {
329  interpolated_w += this->nodal_value(l, w_nodal_index) * psi[l];
330  }
331 
332  return (interpolated_w);
333  }
334 
337  double& sigma_xx,
338  double& sigma_yy,
339  double& sigma_xy);
340 
345  virtual double get_bounded_volume() const
346  {
347  // Number of nodes and integration points for the current element
348  const unsigned n_node = nnode();
349  const unsigned n_intpt = integral_pt()->nweight();
350 
351  // Shape functions and their derivatives
352  Shape psi(n_node);
353  DShape dpsidx(n_node, 2);
354 
355  // The nodal index at which the displacement is stored
356  const unsigned w_nodal_index = nodal_index_fvk();
357 
358  // Initalise the integral variable
359  double integral_w = 0;
360 
361  // Loop over the integration points
362  for (unsigned ipt = 0; ipt < n_intpt; ipt++)
363  {
364  // Get the integral weight
365  double w = integral_pt()->weight(ipt);
366 
367  // Get determinant of the Jacobian of the mapping
368  double J = dshape_eulerian_at_knot(ipt, psi, dpsidx);
369 
370  // Premultiply the weight and Jacobian
371  double W = w * J;
372 
373  // Initialise storage for the w value and nodal value
374  double interpolated_w = 0;
375  double w_nodal_value;
376 
377  // Loop over the shape functions/nodes
378  for (unsigned l = 0; l < n_node; l++)
379  {
380  // Get the current nodal value
381  w_nodal_value = raw_nodal_value(l, w_nodal_index);
382  // Add the contribution to interpolated w
383  interpolated_w += w_nodal_value * psi(l);
384  }
385 
386  // Add the contribution from the current integration point
387  integral_w += interpolated_w * W;
388  }
389 
390  // Return the calculated integral
391  return integral_w;
392  }
393 
395  unsigned self_test();
396 
401  {
402  // Set the boolean flag
403  Linear_bending_model = true;
404 
405  // Get the index of the first FvK nodal value
406  unsigned first_fvk_nodal_index = nodal_index_fvk();
407 
408  // Get the total number of FvK nodal values (assuming they are stored
409  // contiguously) at node 0 (it's the same at all nodes anyway)
410  unsigned total_fvk_nodal_indicies = 8;
411 
412  // Get the number of nodes in this element
413  unsigned n_node = nnode();
414 
415  // Loop over the appropriate nodal indices
416  for (unsigned index = first_fvk_nodal_index + 2;
417  index < first_fvk_nodal_index + total_fvk_nodal_indicies;
418  index++)
419  {
420  // Loop over the nodes in the element
421  for (unsigned inod = 0; inod < n_node; inod++)
422  {
423  // Pin the nodal value at the current index
424  node_pt(inod)->pin(index);
425  }
426  }
427  }
428 
429 
430  protected:
434  Shape& psi,
435  DShape& dpsidx,
436  Shape& test,
437  DShape& dtestdx) const = 0;
438 
439 
443  const unsigned& ipt,
444  Shape& psi,
445  DShape& dpsidx,
446  Shape& test,
447  DShape& dtestdx) const = 0;
448 
449  // Pointers to global physical constants
450 
452  double* Eta_pt;
453 
456 
457  // mjr Ridicu-hack for made-up second pressure, q
459 
460  private:
463 
467 
473  };
474 
475 
479 
480 
481  // mjr QFoepplvonKarmanElements are untested!
482 
483  //======================================================================
487  //======================================================================
488 
489  template<unsigned NNODE_1D>
490  class QFoepplvonKarmanElement : public virtual QElement<2, NNODE_1D>,
491  public virtual FoepplvonKarmanEquations
492  {
493  private:
496  static const unsigned Initial_Nvalue;
497 
498  public:
502  : QElement<2, NNODE_1D>(), FoepplvonKarmanEquations()
503  {
504  }
505 
508  delete;
509 
512 
515  inline unsigned required_nvalue(const unsigned& n) const
516  {
517  return Initial_Nvalue;
518  }
519 
522  void output(std::ostream& outfile)
523  {
525  }
526 
527 
530  void output(std::ostream& outfile, const unsigned& n_plot)
531  {
532  FoepplvonKarmanEquations::output(outfile, n_plot);
533  }
534 
535 
538  void output(FILE* file_pt)
539  {
541  }
542 
543 
546  void output(FILE* file_pt, const unsigned& n_plot)
547  {
548  FoepplvonKarmanEquations::output(file_pt, n_plot);
549  }
550 
551 
554  void output_fct(std::ostream& outfile,
555  const unsigned& n_plot,
557  {
558  FoepplvonKarmanEquations::output_fct(outfile, n_plot, exact_soln_pt);
559  }
560 
561 
565  void output_fct(std::ostream& outfile,
566  const unsigned& n_plot,
567  const double& time,
569  {
571  outfile, n_plot, time, exact_soln_pt);
572  }
573 
574 
575  protected:
578  inline double dshape_and_dtest_eulerian_fvk(const Vector<double>& s,
579  Shape& psi,
580  DShape& dpsidx,
581  Shape& test,
582  DShape& dtestdx) const;
583 
584 
587  inline double dshape_and_dtest_eulerian_at_knot_fvk(const unsigned& ipt,
588  Shape& psi,
589  DShape& dpsidx,
590  Shape& test,
591  DShape& dtestdx) const;
592  };
593 
594 
595  // Inline functions:
596 
597 
598  //======================================================================
603  //======================================================================
604  template<unsigned NNODE_1D>
606  const Vector<double>& s,
607  Shape& psi,
608  DShape& dpsidx,
609  Shape& test,
610  DShape& dtestdx) const
611  {
612  // Call the geometrical shape functions and derivatives
613  const double J = this->dshape_eulerian(s, psi, dpsidx);
614 
615  // Set the test functions equal to the shape functions
616  test = psi;
617  dtestdx = dpsidx;
618 
619  // Return the jacobian
620  return J;
621  }
622 
623 
624  //======================================================================
629  //======================================================================
630  template<unsigned NNODE_1D>
632  NNODE_1D>::dshape_and_dtest_eulerian_at_knot_fvk(const unsigned& ipt,
633  Shape& psi,
634  DShape& dpsidx,
635  Shape& test,
636  DShape& dtestdx) const
637  {
638  // Call the geometrical shape functions and derivatives
639  const double J = this->dshape_eulerian_at_knot(ipt, psi, dpsidx);
640 
641  // Set the pointers of the test functions
642  test = psi;
643  dtestdx = dpsidx;
644 
645  // Return the jacobian
646  return J;
647  }
648 
649 
653 
654 
655  //=======================================================================
660  //=======================================================================
661  template<unsigned NNODE_1D>
663  : public virtual QElement<1, NNODE_1D>
664  {
665  public:
668  FaceGeometry() : QElement<1, NNODE_1D>() {}
669  };
670 
674 
675 
676  //==========================================================
678  //==========================================================
679  template<class FVK_ELEMENT>
681  : public virtual ProjectableElement<FVK_ELEMENT>
682  {
683  public:
688  {
689 #ifdef PARANOID
690  if (fld > 7)
691  {
692  std::stringstream error_stream;
693  error_stream
694  << "Foeppl von Karman elements only store eight fields so fld must be"
695  << "0 to 7 rather than " << fld << std::endl;
696  throw OomphLibError(
697  error_stream.str(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION);
698  }
699 #endif
700 
701  // Create the vector
702  unsigned nnod = this->nnode();
703  Vector<std::pair<Data*, unsigned>> data_values(nnod);
704 
705  // Loop over all nodes
706  for (unsigned j = 0; j < nnod; j++)
707  {
708  // Add the data value associated field: The node itself
709  data_values[j] = std::make_pair(this->node_pt(j), fld);
710  }
711 
712  // Return the vector
713  return data_values;
714  }
715 
718  {
719  return 8;
720  }
721 
724  unsigned nhistory_values_for_projection(const unsigned& fld)
725  {
726 #ifdef PARANOID
727  if (fld > 7)
728  {
729  std::stringstream error_stream;
730  error_stream
731  << "Foeppl von Karman elements only store eight fields so fld must be"
732  << "0 to 7 rather than " << fld << std::endl;
733  throw OomphLibError(
734  error_stream.str(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION);
735  }
736 #endif
737  return this->node_pt(0)->ntstorage();
738  }
739 
740 
744  {
745  return this->node_pt(0)->position_time_stepper_pt()->ntstorage();
746  }
747 
750  double jacobian_and_shape_of_field(const unsigned& fld,
751  const Vector<double>& s,
752  Shape& psi)
753  {
754 #ifdef PARANOID
755  if (fld > 7)
756  {
757  std::stringstream error_stream;
758  error_stream
759  << "Foeppl von Karman elements only store eight fields so fld must be"
760  << "0 to 7 rather than " << fld << std::endl;
761  throw OomphLibError(
762  error_stream.str(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION);
763  }
764 #endif
765  unsigned n_dim = this->dim();
766  unsigned n_node = this->nnode();
767  Shape test(n_node);
768  DShape dpsidx(n_node, n_dim), dtestdx(n_node, n_dim);
769  double J =
770  this->dshape_and_dtest_eulerian_fvk(s, psi, dpsidx, test, dtestdx);
771  return J;
772  }
773 
774 
777  double get_field(const unsigned& t,
778  const unsigned& fld,
779  const Vector<double>& s)
780  {
781 #ifdef PARANOID
782  if (fld > 7)
783  {
784  std::stringstream error_stream;
785  error_stream
786  << "Foeppl von Karman elements only store eight fields so fld must be"
787  << "0 to 7 rather than " << fld << std::endl;
788  throw OomphLibError(
789  error_stream.str(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION);
790  }
791 #endif
792  // Find the index at which the variable is stored
793  unsigned w_nodal_index = this->nodal_index_fvk(fld);
794 
795  // Local shape function
796  unsigned n_node = this->nnode();
797  Shape psi(n_node);
798 
799  // Find values of shape function
800  this->shape(s, psi);
801 
802  // Initialise value of u
803  double interpolated_w = 0.0;
804 
805  // Sum over the local nodes
806  for (unsigned l = 0; l < n_node; l++)
807  {
808  interpolated_w += this->nodal_value(t, l, w_nodal_index) * psi[l];
809  }
810  return interpolated_w;
811  }
812 
813 
815  unsigned nvalue_of_field(const unsigned& fld)
816  {
817 #ifdef PARANOID
818  if (fld > 7)
819  {
820  std::stringstream error_stream;
821  error_stream
822  << "Foeppl von Karman elements only store eight fields so fld must be"
823  << "0 to 7 rather than " << fld << std::endl;
824  throw OomphLibError(
825  error_stream.str(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION);
826  }
827 #endif
828  return this->nnode();
829  }
830 
831 
833  int local_equation(const unsigned& fld, const unsigned& j)
834  {
835 #ifdef PARANOID
836  if (fld > 7)
837  {
838  std::stringstream error_stream;
839  error_stream
840  << "Foeppl von Karman elements only store eight fields so fld must be"
841  << "0 to 7 rather than " << fld << std::endl;
842  throw OomphLibError(
843  error_stream.str(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION);
844  }
845 #endif
846  const unsigned w_nodal_index = this->nodal_index_fvk(fld);
847  return this->nodal_local_eqn(j, w_nodal_index);
848  }
849  };
850 
851  //=======================================================================
854  //=======================================================================
855  template<class ELEMENT>
857  : public virtual FaceGeometry<ELEMENT>
858  {
859  public:
860  FaceGeometry() : FaceGeometry<ELEMENT>() {}
861  };
862 
863 
864  //=======================================================================
867  //=======================================================================
868  template<class ELEMENT>
870  : public virtual FaceGeometry<FaceGeometry<ELEMENT>>
871  {
872  public:
874  };
875 
876 } // namespace oomph
877 
878 #endif
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
JacobiRotation< float > J
Definition: Jacobi_makeJacobi.cpp:3
RowVector3d w
Definition: Matrix_resize_int.cpp:3
Definition: shape.h:278
Definition: nodes.h:86
void pin(const unsigned &i)
Pin the i-th stored variable.
Definition: nodes.h:385
unsigned nvalue() const
Return number of values stored in data object (incl pinned ones).
Definition: nodes.h:483
unsigned ntstorage() const
Definition: nodes.cc:879
FaceGeometry()
Definition: foeppl_von_karman_elements.h:860
FaceGeometry()
Definition: foeppl_von_karman_elements.h:668
Definition: elements.h:4998
Definition: elements.h:1313
Node *& node_pt(const unsigned &n)
Return a pointer to the local node n.
Definition: elements.h:2175
double nodal_value(const unsigned &n, const unsigned &i) const
Definition: elements.h:2593
virtual void shape(const Vector< double > &s, Shape &psi) const =0
int nodal_local_eqn(const unsigned &n, const unsigned &i) const
Definition: elements.h:1432
unsigned dim() const
Definition: elements.h:2611
unsigned nnode() const
Return the number of nodes.
Definition: elements.h:2210
void(* SteadyExactSolutionFctPt)(const Vector< double > &, Vector< double > &)
Definition: elements.h:1759
Integral *const & integral_pt() const
Return the pointer to the integration scheme (const version)
Definition: elements.h:1963
virtual double dshape_eulerian_at_knot(const unsigned &ipt, Shape &psi, DShape &dpsidx) const
Definition: elements.cc:3325
double raw_nodal_value(const unsigned &n, const unsigned &i) const
Definition: elements.h:2576
void(* UnsteadyExactSolutionFctPt)(const double &, const Vector< double > &, Vector< double > &)
Definition: elements.h:1765
double dshape_eulerian(const Vector< double > &s, Shape &psi, DShape &dpsidx) const
Definition: elements.cc:3298
Definition: foeppl_von_karman_elements.h:57
void compute_error(std::ostream &outfile, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt, double &error, double &norm)
Get error against and norm of exact solution.
Definition: foeppl_von_karman_elements.cc:547
void output(FILE *file_pt)
C_style output with default number of plot points.
Definition: foeppl_von_karman_elements.h:148
double interpolated_w_fvk(const Vector< double > &s, unsigned index=0) const
Definition: foeppl_von_karman_elements.h:308
FoepplvonKarmanPressureFctPt pressure_fct_pt() const
Access function: Pointer to pressure function. Const version.
Definition: foeppl_von_karman_elements.h:208
void get_gradient_of_deflection(const Vector< double > &s, Vector< double > &gradient) const
Get gradient of deflection: gradient[i] = dw/dx_i.
Definition: foeppl_von_karman_elements.h:266
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.
Definition: foeppl_von_karman_elements.cc:496
FoepplvonKarmanPressureFctPt airy_forcing_fct_pt() const
Access function: Pointer to Airy forcing function. Const version.
Definition: foeppl_von_karman_elements.h:220
void(* FoepplvonKarmanPressureFctPt)(const Vector< double > &x, double &f)
Definition: foeppl_von_karman_elements.h:61
double *& eta_pt()
Pointer to eta.
Definition: foeppl_von_karman_elements.h:92
virtual void output_fct(std::ostream &outfile, const unsigned &n_plot, const double &time, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt)
Definition: foeppl_von_karman_elements.h:166
void output(std::ostream &outfile)
Output with default number of plot points.
Definition: foeppl_von_karman_elements.h:137
void fill_in_contribution_to_residuals(Vector< double > &residuals)
Fill in the residuals with this element's contribution.
Definition: foeppl_von_karman_elements.cc:50
FoepplvonKarmanPressureFctPt & pressure_fct_pt()
Access function: Pointer to pressure function.
Definition: foeppl_von_karman_elements.h:202
virtual void get_airy_forcing_fvk(const unsigned &ipt, const Vector< double > &x, double &airy_forcing) const
Definition: foeppl_von_karman_elements.h:249
FoepplvonKarmanEquations()
Definition: foeppl_von_karman_elements.h:67
virtual double dshape_and_dtest_eulerian_fvk(const Vector< double > &s, Shape &psi, DShape &dpsidx, Shape &test, DShape &dtestdx) const =0
int Volume_constraint_pressure_external_data_index
Definition: foeppl_von_karman_elements.h:472
void use_linear_bending_model()
Definition: foeppl_von_karman_elements.h:400
virtual double get_bounded_volume() const
Definition: foeppl_von_karman_elements.h:345
bool Linear_bending_model
Definition: foeppl_von_karman_elements.h:466
virtual void get_pressure_fvk(const unsigned &ipt, const Vector< double > &x, double &pressure) const
Definition: foeppl_von_karman_elements.h:229
double * Eta_pt
Pointer to global eta.
Definition: foeppl_von_karman_elements.h:452
virtual unsigned nodal_index_fvk(const unsigned &i=0) const
Definition: foeppl_von_karman_elements.h:131
unsigned self_test()
Self-test: Return 0 for OK.
Definition: foeppl_von_karman_elements.cc:349
FoepplvonKarmanPressureFctPt & airy_forcing_fct_pt()
Access function: Pointer to Airy forcing function.
Definition: foeppl_von_karman_elements.h:214
virtual double dshape_and_dtest_eulerian_at_knot_fvk(const unsigned &ipt, Shape &psi, DShape &dpsidx, Shape &test, DShape &dtestdx) const =0
const double & eta() const
Eta.
Definition: foeppl_von_karman_elements.h:86
FoepplvonKarmanPressureFctPt Pressure_fct_pt
Pointer to pressure function:
Definition: foeppl_von_karman_elements.h:455
FoepplvonKarmanEquations(const FoepplvonKarmanEquations &dummy)=delete
Broken copy constructor.
void compute_error(std::ostream &outfile, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt, const double &time, double &error, double &norm)
Dummy, time dependent error checker.
Definition: foeppl_von_karman_elements.h:188
static double Default_Physical_Constant_Value
Default value for physical constants.
Definition: foeppl_von_karman_elements.h:462
void interpolated_stress(const Vector< double > &s, double &sigma_xx, double &sigma_yy, double &sigma_xy)
Compute in-plane stresses.
Definition: foeppl_von_karman_elements.cc:374
FoepplvonKarmanPressureFctPt Airy_forcing_fct_pt
Definition: foeppl_von_karman_elements.h:458
void set_volume_constraint_pressure_data_as_external_data(Data *data_pt)
Definition: foeppl_von_karman_elements.h:102
void operator=(const FoepplvonKarmanEquations &)=delete
Broken assignment operator.
unsigned add_external_data(Data *const &data_pt, const bool &fd=true)
Definition: elements.cc:307
virtual unsigned nweight() const =0
Return the number of integration points of the scheme.
virtual double weight(const unsigned &i) const =0
Return weight of i-th integration point.
TimeStepper *& position_time_stepper_pt()
Return a pointer to the position timestepper.
Definition: nodes.h:1022
Definition: oomph_definitions.h:222
Definition: projection.h:183
Foeppl von Karman upgraded to become projectable.
Definition: foeppl_von_karman_elements.h:682
double jacobian_and_shape_of_field(const unsigned &fld, const Vector< double > &s, Shape &psi)
Definition: foeppl_von_karman_elements.h:750
double get_field(const unsigned &t, const unsigned &fld, const Vector< double > &s)
Definition: foeppl_von_karman_elements.h:777
unsigned nhistory_values_for_coordinate_projection()
Definition: foeppl_von_karman_elements.h:743
unsigned nfields_for_projection()
Number of fields to be projected: Just two.
Definition: foeppl_von_karman_elements.h:717
int local_equation(const unsigned &fld, const unsigned &j)
Return local equation number of field fld of node j.
Definition: foeppl_von_karman_elements.h:833
unsigned nvalue_of_field(const unsigned &fld)
Return number of values in field fld: One per node.
Definition: foeppl_von_karman_elements.h:815
Vector< std::pair< Data *, unsigned > > data_values_of_field(const unsigned &fld)
Definition: foeppl_von_karman_elements.h:687
unsigned nhistory_values_for_projection(const unsigned &fld)
Definition: foeppl_von_karman_elements.h:724
Definition: Qelements.h:459
Definition: foeppl_von_karman_elements.h:492
void output(FILE *file_pt, const unsigned &n_plot)
Definition: foeppl_von_karman_elements.h:546
double dshape_and_dtest_eulerian_fvk(const Vector< double > &s, Shape &psi, DShape &dpsidx, Shape &test, DShape &dtestdx) const
Definition: foeppl_von_karman_elements.h:605
void output(std::ostream &outfile)
Definition: foeppl_von_karman_elements.h:522
QFoepplvonKarmanElement(const QFoepplvonKarmanElement< NNODE_1D > &dummy)=delete
Broken copy constructor.
double dshape_and_dtest_eulerian_at_knot_fvk(const unsigned &ipt, Shape &psi, DShape &dpsidx, Shape &test, DShape &dtestdx) const
Definition: foeppl_von_karman_elements.h:632
static const unsigned Initial_Nvalue
Set the data for the number of Variables at each node - 8.
Definition: foeppl_von_karman_elements.h:496
void output(std::ostream &outfile, const unsigned &n_plot)
Definition: foeppl_von_karman_elements.h:530
void output(FILE *file_pt)
Definition: foeppl_von_karman_elements.h:538
void output_fct(std::ostream &outfile, const unsigned &n_plot, FiniteElement::SteadyExactSolutionFctPt exact_soln_pt)
Definition: foeppl_von_karman_elements.h:554
unsigned required_nvalue(const unsigned &n) const
Definition: foeppl_von_karman_elements.h:515
void output_fct(std::ostream &outfile, const unsigned &n_plot, const double &time, FiniteElement::UnsteadyExactSolutionFctPt exact_soln_pt)
Definition: foeppl_von_karman_elements.h:565
QFoepplvonKarmanElement()
Definition: foeppl_von_karman_elements.h:501
void operator=(const QFoepplvonKarmanElement< NNODE_1D > &)=delete
Broken assignment operator.
Definition: shape.h:76
unsigned ntstorage() const
Definition: timesteppers.h:601
static int f(const TensorMap< Tensor< int, 3 > > &tensor)
Definition: cxx11_tensor_map.cpp:237
RealScalar s
Definition: level1_cplx_impl.h:130
squared absolute sa ArrayBase::abs2 DOXCOMMA MatrixBase::cwiseAbs2 sa Eigen::abs2 DOXCOMMA Eigen::pow DOXCOMMA ArrayBase::square nearest sa Eigen::floor DOXCOMMA Eigen::ceil DOXCOMMA ArrayBase::round nearest integer not less than the given sa Eigen::floor DOXCOMMA ArrayBase::ceil not a number test
Definition: GlobalFunctions.h:109
int error
Definition: calibrate.py:297
@ W
Definition: quadtree.h:63
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10
list x
Definition: plotDoE.py:28
t
Definition: plotPSD.py:36
Definition: indexed_view.cpp:20
#define OOMPH_EXCEPTION_LOCATION
Definition: oomph_definitions.h:61
#define OOMPH_CURRENT_FUNCTION
Definition: oomph_definitions.h:86
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2