28 #ifndef OOMPH_BRICKMESH_HEADER
29 #define OOMPH_BRICKMESH_HEADER
33 #include <oomph-lib-config.h>
58 namespace BrickFromTetMeshHelper
107 unsigned n_node = nnode();
115 for (
unsigned i = 0;
i < 3;
i++)
121 for (
unsigned l = 0; l < n_node; l++)
123 s_tet[
i] += nodal_value(l,
i) * psi[l];
129 void output(std::ostream& outfile,
const unsigned& nplot = 5)
136 outfile << tecplot_zone_string(nplot);
139 unsigned num_plot_points = nplot_points(nplot);
140 for (
unsigned iplot = 0; iplot < num_plot_points; iplot++)
143 get_s_plot(iplot, nplot,
s);
149 for (
unsigned i = 0;
i < 3;
i++)
151 outfile << interpolated_x(
s,
i) <<
" ";
155 for (
unsigned i = 0;
i < 3;
i++)
157 outfile << s_tet[
i] <<
" ";
160 outfile << std::endl;
162 outfile << std::endl;
165 write_tecplot_zone_footer(outfile, nplot);
197 std::ofstream outfile;
int i
Definition: BiCGSTAB_step_by_step.cpp:9
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11
Base class for brick meshes (meshes made of 3D brick elements).
Definition: brick_mesh.h:178
BrickMeshBase(const BrickMeshBase &)=delete
Broken copy constructor.
void setup_boundary_element_info()
Definition: brick_mesh.h:195
BrickMeshBase()
Constructor (empty)
Definition: brick_mesh.h:181
virtual ~BrickMeshBase()
Broken assignment operator.
Definition: brick_mesh.h:191
Definition: brick_mesh.h:76
unsigned required_nvalue(const unsigned &n) const
Broken assignment operator.
Definition: brick_mesh.h:95
void interpolated_s_tet(const Vector< double > &s, Vector< double > &s_tet) const
Definition: brick_mesh.h:103
DummyBrickElement(const DummyBrickElement &dummy)=delete
Broken copy constructor.
DummyBrickElement()
Constructor:
Definition: brick_mesh.h:79
void output(std::ostream &outfile, const unsigned &nplot=5)
Output interpolated tet local coordinates.
Definition: brick_mesh.h:129
Definition: Qelements.h:459
RealScalar s
Definition: level1_cplx_impl.h:130
double Face_position_tolerance
Tolerance for mismatch during setup of boundary coordinates.
Definition: brick_mesh.cc:37
void shape(const double &s, double *Psi)
Definition: shape.h:564
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition: AnisotropicHookean.h:10