|
svMultiPhysics
|
Fiber directions associated with one mesh. More...
#include <Fibers.h>
Public Types | |
| enum class | DataCollocation { none , point , cell , constant } |
| Location of the fiber directions in the input. More... | |
Public Member Functions | |
| void | read (const MeshParameters &mesh_parameters, mshType &mesh, int nsd) |
| Reads fiber directions from file paths or constant vectors. | |
| void | distribute (ComMod &com_mod, const CmMod &cm_mod, const cmType &cm, mshType &mesh) |
| Parallel distribution of fiber directions. | |
| DataCollocation | get_data_location () const |
| Returns the location of the fiber directions in the input. | |
| int | get_num_directions () const |
| Returns the number of raw directions supplied by the user. | |
| Array< double > | get_quadrature_fibers (int nsd, int g, int e, bool orthonormalize=false) const |
| Returns fibers at a quadrature point. | |
| Array< double > | get_quadrature_fibers (int nsd, const Vector< double > &basis_functions, int e, bool orthonormalize=false) const |
| Evaluates fibers with supplied basis-function values. | |
| bool | has_fibers () const |
| Returns true if there are fiber directions. | |
Static Public Member Functions | |
| static Array< double > | zero_fibers (int nsd) |
| Returns an nsd-by-1 zero fiber matrix for meshes with no directions. | |
Fiber directions associated with one mesh.
|
strong |
Location of the fiber directions in the input.
| void Fibers::distribute | ( | ComMod & | com_mod, |
| const CmMod & | cm_mod, | ||
| const cmType & | cm, | ||
| mshType & | mesh ) |
Parallel distribution of fiber directions.
|
inline |
Returns the location of the fiber directions in the input.
|
inline |
Returns the number of raw directions supplied by the user.
| Array< double > Fibers::get_quadrature_fibers | ( | int | nsd, |
| const Vector< double > & | basis_functions, | ||
| int | e, | ||
| bool | orthonormalize = false ) const |
Evaluates fibers with supplied basis-function values.
For point data, raw directions are re-interpolated with the supplied values before optional orthonormalization.
| Array< double > Fibers::get_quadrature_fibers | ( | int | nsd, |
| int | g, | ||
| int | e, | ||
| bool | orthonormalize = false ) const |
Returns fibers at a quadrature point.
Raw directions are returned by default. When orthonormalize is true, an owned, completed orthonormal basis is returned without modifying or caching the raw fibers. Constant and cell directions are completed directly; interpolated point directions are first orthonormalized.
|
inline |
Returns true if there are fiber directions.
| void Fibers::read | ( | const MeshParameters & | mesh_parameters, |
| mshType & | mesh, | ||
| int | nsd ) |
Reads fiber directions from file paths or constant vectors.
|
static |
Returns an nsd-by-1 zero fiber matrix for meshes with no directions.