oomph::DummyBrickElement Class Reference

#include <brick_mesh.h>

+ Inheritance diagram for oomph::DummyBrickElement:

Public Member Functions

 DummyBrickElement ()
 Constructor: More...
 
 DummyBrickElement (const DummyBrickElement &dummy)=delete
 Broken copy constructor. More...
 
unsigned required_nvalue (const unsigned &n) const
 Broken assignment operator. More...
 
void interpolated_s_tet (const Vector< double > &s, Vector< double > &s_tet) const
 
void output (std::ostream &outfile, const unsigned &nplot=5)
 Output interpolated tet local coordinates. More...
 

Detailed Description

//////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////// Dummy QElement to interpolate local coordinates – used in construction of brickified tet mesh.

Constructor & Destructor Documentation

◆ DummyBrickElement() [1/2]

oomph::DummyBrickElement::DummyBrickElement ( )
inline

Constructor:

◆ DummyBrickElement() [2/2]

oomph::DummyBrickElement::DummyBrickElement ( const DummyBrickElement dummy)
delete

Broken copy constructor.

Member Function Documentation

◆ interpolated_s_tet()

void oomph::DummyBrickElement::interpolated_s_tet ( const Vector< double > &  s,
Vector< double > &  s_tet 
) const
inline

Compute vector of FE interpolated local coordinate in tet, s_tet, evaluated at local coordinate s in current element.

105  {
106  // Find number of nodes
107  unsigned n_node = nnode();
108 
109  // Local shape function
110  Shape psi(n_node);
111 
112  // Find values of shape function
113  shape(s, psi);
114 
115  for (unsigned i = 0; i < 3; i++)
116  {
117  // Initialise value of u
118  s_tet[i] = 0.0;
119 
120  // Loop over the local nodes and sum
121  for (unsigned l = 0; l < n_node; l++)
122  {
123  s_tet[i] += nodal_value(l, i) * psi[l];
124  }
125  }
126  }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
RealScalar s
Definition: level1_cplx_impl.h:130
void shape(const double &s, double *Psi)
Definition: shape.h:564

References i, s, and oomph::OneDimLagrange::shape().

Referenced by output().

◆ output()

void oomph::DummyBrickElement::output ( std::ostream &  outfile,
const unsigned nplot = 5 
)
inline

Output interpolated tet local coordinates.

130  {
131  // Vector of local coordinates
132  Vector<double> s(3);
133  Vector<double> s_tet(3);
134 
135  // Tecplot header info
136  outfile << tecplot_zone_string(nplot);
137 
138  // Loop over plot points
139  unsigned num_plot_points = nplot_points(nplot);
140  for (unsigned iplot = 0; iplot < num_plot_points; iplot++)
141  {
142  // Get local coordinates of plot point
143  get_s_plot(iplot, nplot, s);
144 
145  // Local coordinates in tet
146  interpolated_s_tet(s, s_tet);
147 
148  // Coordinates
149  for (unsigned i = 0; i < 3; i++)
150  {
151  outfile << interpolated_x(s, i) << " ";
152  }
153 
154  // Local coordinates in tet
155  for (unsigned i = 0; i < 3; i++)
156  {
157  outfile << s_tet[i] << " ";
158  }
159 
160  outfile << std::endl;
161  }
162  outfile << std::endl;
163 
164  // Write tecplot footer (e.g. FE connectivity lists)
165  write_tecplot_zone_footer(outfile, nplot);
166  }
void interpolated_s_tet(const Vector< double > &s, Vector< double > &s_tet) const
Definition: brick_mesh.h:103

References i, interpolated_s_tet(), and s.

◆ required_nvalue()

unsigned oomph::DummyBrickElement::required_nvalue ( const unsigned n) const
inline

Broken assignment operator.

Required # of ‘values’ (pinned or dofs) at node n

96  {
97  return 3;
98  }

The documentation for this class was generated from the following file: