svMultiPhysics
Loading...
Searching...
No Matches
Fibers Class Reference

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.

Detailed Description

Fiber directions associated with one mesh.

Member Enumeration Documentation

◆ DataCollocation

enum class Fibers::DataCollocation
strong

Location of the fiber directions in the input.

Enumerator
none 

No fiber directions are associated with the mesh.

point 

The fiber directions are associated with the mesh nodes.

cell 

The fiber directions are associated with the mesh cells.

constant 

The fiber directions are constant vectors defined in the input file.

Member Function Documentation

◆ distribute()

void Fibers::distribute ( ComMod & com_mod,
const CmMod & cm_mod,
const cmType & cm,
mshType & mesh )

Parallel distribution of fiber directions.

◆ get_data_location()

DataCollocation Fibers::get_data_location ( ) const
inline

Returns the location of the fiber directions in the input.

◆ get_num_directions()

int Fibers::get_num_directions ( ) const
inline

Returns the number of raw directions supplied by the user.

◆ get_quadrature_fibers() [1/2]

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.

◆ get_quadrature_fibers() [2/2]

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.

◆ has_fibers()

bool Fibers::has_fibers ( ) const
inline

Returns true if there are fiber directions.

◆ read()

void Fibers::read ( const MeshParameters & mesh_parameters,
mshType & mesh,
int nsd )

Reads fiber directions from file paths or constant vectors.

◆ zero_fibers()

Array< double > Fibers::zero_fibers ( int nsd)
static

Returns an nsd-by-1 zero fiber matrix for meshes with no directions.


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