b2api
B2000++ API Reference Manual, VERSION 4.6
 
Loading...
Searching...
No Matches
b2000::Field< T > Class Template Reference

#include "b2element.H"

Inheritance diagram for b2000::Field< T >:
Collaboration diagram for b2000::Field< T >:

Public Member Functions

virtual void get_value (const b2linalg::Vector< double, b2linalg::Vdense_constref > &lcoor, const b2linalg::Vector< T, b2linalg::Vdense_constref > &coor, const b2linalg::Vector< T, b2linalg::Vdense_constref > &coor_deformed, const b2linalg::Matrix< T, b2linalg::Mrectangle_constref > &d_coor_d_lcoor, const b2linalg::Matrix< T, b2linalg::Mrectangle_constref > &d_coor_deformed_d_lcoor, b2linalg::Vector< T, b2linalg::Vdense > &value) const
 
virtual bool get_multiply_with_density () const
 
- Public Member Functions inherited from b2000::Object
virtual const std::string & get_object_name () const
 
virtual ~Object ()
 

Additional Inherited Members

- Static Public Attributes inherited from b2000::Object
static ObjectType type
 

Detailed Description

template<typename T>
class b2000::Field< T >

The base class of a field like a natural boundary condition field.

The field defined by this class can then be integrated on the volume, surface, or edge of an element with appropriate method of the Element object.

Member Function Documentation

◆ get_multiply_with_density()

template<typename T >
virtual bool b2000::Field< T >::get_multiply_with_density ( ) const
inlinevirtual

Return whether the value of the field at a specific location in the element should be multiplied with the element's material density. Field objects implementing gravitational forces should return true.

◆ get_value()

template<typename T >
virtual void b2000::Field< T >::get_value ( const b2linalg::Vector< double, b2linalg::Vdense_constref > &  lcoor,
const b2linalg::Vector< T, b2linalg::Vdense_constref > &  coor,
const b2linalg::Vector< T, b2linalg::Vdense_constref > &  coor_deformed,
const b2linalg::Matrix< T, b2linalg::Mrectangle_constref > &  d_coor_d_lcoor,
const b2linalg::Matrix< T, b2linalg::Mrectangle_constref > &  d_coor_deformed_d_lcoor,
b2linalg::Vector< T, b2linalg::Vdense > &  value 
) const
inlinevirtual

Returns the value of the field at a specific location in the element.

Parameters
lcoorThe local element coordinate of the location at with the field must be evaluated (input).
coorThe global coordinate at lcoor in the initial configuration (input).
coor_deformedThe global coordinate at lcoor in the deformed configuration (input).
d_coor_d_lcoorThe derivatives of the global element coordinate w.r.t. local element coordinate, evaluated at lcoor in the initial configuration (input).
d_coor_deformed_d_lcoorThe derivatives of the global element coordinate w.r.t. the local element coordinate, evaluated at lcoor in the deformed configuration (input).
valueThe discretized value of the field at lcoor (output).

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