61 bool orthonormalize =
false)
const;
71 bool orthonormalize =
false)
const;
76 bool has_fibers()
const {
return num_input_fibers != 0; }
97 Array<double> input_fibers;
131 int num_input_fibers = 0;
134 bool basis_input_is_orthogonal =
true;
148 void read_directions(
const MeshParameters &mesh_parameters,
int nsd);
153 void check_input_fibers_unit(
int nsd)
const;
158 bool input_fibers_are_orthogonal(
int nsd)
const;
163 void populate_quadrature_fibers(
const mshType &mesh,
int nsd);
172 interpolate_point_fibers_element(
int nsd,
183 void interpolate_point_fibers_mesh(
const mshType &mesh,
int nsd);
The Array3 template class implements a simple interface to 3D arrays.
Definition Array3.h:25
The CmMod class duplicates the data structures in the Fortran CMMOD module defined in COMU....
Definition CmMod.h:37
The ComMod class duplicates the data structures in the Fortran COMMOD module defined in MOD....
Definition ComMod.h:1633
Fiber directions associated with one mesh.
Definition Fibers.h:19
int get_num_directions() const
Returns the number of raw directions supplied by the user.
Definition Fibers.h:50
Array< double > get_quadrature_fibers(int nsd, int g, int e, bool orthonormalize=false) const
Returns fibers at a quadrature point.
Definition Fibers.cpp:588
static Array< double > zero_fibers(int nsd)
Returns an nsd-by-1 zero fiber matrix for meshes with no directions.
Definition Fibers.cpp:304
void read(const MeshParameters &mesh_parameters, mshType &mesh, int nsd)
Reads fiber directions from file paths or constant vectors.
Definition Fibers.cpp:312
bool has_fibers() const
Returns true if there are fiber directions.
Definition Fibers.h:76
DataCollocation
Location of the fiber directions in the input.
Definition Fibers.h:22
@ none
No fiber directions are associated with the mesh.
Definition Fibers.h:24
@ constant
The fiber directions are constant vectors defined in the input file.
Definition Fibers.h:30
@ point
The fiber directions are associated with the mesh nodes.
Definition Fibers.h:26
@ cell
The fiber directions are associated with the mesh cells.
Definition Fibers.h:28
DataCollocation get_data_location() const
Returns the location of the fiber directions in the input.
Definition Fibers.h:47
void distribute(ComMod &com_mod, const CmMod &cm_mod, const cmType &cm, mshType &mesh)
Parallel distribution of fiber directions.
Definition Fibers.cpp:235
The MeshParameters class is used to store paramaters for the 'Add_mesh' XML element.
Definition Parameters.h:2020
The Vector template class is used for storing int and double data.
Definition Vector.h:26
The cmType class stores data and defines methods used for mpi communication.
Definition CmMod.h:57
This is the container for a mesh or NURBS patch, those specific to NURBS are noted.
Definition ComMod.h:879