IFEM  90A354
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
FieldBase Class Reference

Base class for scalar fields. More...

#include <FieldBase.h>

Inheritance diagram for FieldBase:
Inheritance graph
[legend]
Collaboration diagram for FieldBase:
Collaboration graph
[legend]

Public Member Functions

virtual ~FieldBase ()
 Empty destructor.
 
size_t getNoElm () const
 Returns the number of elements.
 
size_t getNoNodes () const
 Returns the number of nodal/control points.
 
- Public Member Functions inherited from Field
virtual ~Field ()
 Empty destructor.
 
const char * getFieldName () const
 Returns the name of field.
 
virtual double valueNode (size_t node) const =0
 Computes the value in a given node/control point. More...
 
virtual double valueFE (const ItgPoint &x) const =0
 Computes the value at a given local coordinate. More...
 
virtual double valueCoor (const Vec4 &x) const
 Computes the value at a given global coordinate. More...
 
virtual bool valueGrid (RealArray &val, const int *npe) const
 Computes the value at a grid of visualization points. More...
 
virtual bool gradFE (const ItgPoint &x, Vector &grad) const =0
 Computes the gradient for a given local coordinate. More...
 
virtual bool gradCoor (const Vec4 &x, Vector &grad) const
 Computes the gradient for a given global/physical coordinate. More...
 
virtual bool hessianFE (const ItgPoint &x, Matrix &H) const
 Computes the hessian for a given local coordinate. More...
 

Protected Member Functions

 FieldBase (const char *name=nullptr)
 The constructor sets the field name. More...
 
- Protected Member Functions inherited from Field
 Field (const char *name=nullptr)
 The constructor sets the field name. More...
 

Protected Attributes

size_t nelm
 Number of elements/knot-spans.
 
size_t nno
 Number of nodes/control points.
 
Vector values
 Nodal field values.
 
- Protected Attributes inherited from Field
std::string fname
 Name of the field.
 

Additional Inherited Members

- Static Public Member Functions inherited from Field
static Fieldcreate (const ASMbase *pch, const RealArray &v, char basis=1, char cmp=1, const char *name=nullptr)
 Creates a dynamically allocated field object. More...
 

Detailed Description

Base class for scalar fields.

This class incapsulates the data and methods needed to store and evaluate a scalar field. This is an abstract base class, and the fields associated with a specific field type are implemented as subclasses, for instance 1D, 2D and 3D spline formulations or Lagrange formulations.

Constructor & Destructor Documentation

◆ FieldBase()

FieldBase::FieldBase ( const char *  name = nullptr)
inlineexplicitprotected

The constructor sets the field name.

Parameters
[in]nameOptional name of field

References nelm, and nno.


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