queso-0.57.1
|
Function objects using libMesh for the backend. More...
#include <LibMeshFunction.h>
Public Member Functions | |
void | print_info () const |
Will print mesh-related libMesh foo to std::cerr . More... | |
virtual void | save_function (const std::string &filename, double time) const |
Save the current function to an Exodus file called filename . time is the time to attach to the function and is usually the iteration number. More... | |
virtual void | add (double scale, const FunctionBase &rhs) |
Execute this += scale * rhs . More... | |
virtual void | pointwise_mult (const FunctionBase &f1, const FunctionBase &f2) |
Pointwise multiply f1 and f2 and store the result in *this . More... | |
virtual void | scale (double scale) |
Execute this *= scale . More... | |
virtual void | zero () |
Set this to zero everywhere. More... | |
virtual double | L2_norm () const |
Return the L2-norm of this . More... | |
virtual SharedPtr < FunctionBase >::Type | zero_clone () const |
Create a zero function copy of this and return pointer to it. More... | |
virtual SharedPtr < libMesh::EquationSystems > ::Type | get_equation_systems () const |
Return the internal libmesh equation systems object. More... | |
Constructor/Destructor methods | |
LibMeshFunction (const FunctionOperatorBuilder &builder, libMesh::MeshBase &m) | |
Construct a function with a user-provided mesh m and builder. More... | |
~LibMeshFunction () | |
Destructor. More... | |
Public Member Functions inherited from QUESO::FunctionBase | |
FunctionBase () | |
Constructor. More... | |
virtual | ~FunctionBase () |
Destructor. More... | |
Private Attributes | |
const FunctionOperatorBuilder & | builder |
SharedPtr < libMesh::EquationSystems > ::Type | equation_systems |
Function objects using libMesh for the backend.
Definition at line 53 of file LibMeshFunction.h.
QUESO::LibMeshFunction::LibMeshFunction | ( | const FunctionOperatorBuilder & | builder, |
libMesh::MeshBase & | m | ||
) |
Construct a function with a user-provided mesh m
and builder.
It is expected the lifetime of m
will outlive this
A builder
object is just one that a FEM library backend can use to set up various options. Polynomial type, polynomial order, and the number of eigenpairs to request are good examples.
Definition at line 64 of file LibMeshFunction.C.
References equation_systems, and QUESO::FunctionOperatorBuilder::order.
Referenced by zero_clone().
QUESO::LibMeshFunction::~LibMeshFunction | ( | ) |
|
virtual |
Execute this
+= scale
* rhs
.
Implements QUESO::FunctionBase.
Definition at line 96 of file LibMeshFunction.C.
References equation_systems.
|
virtual |
Return the internal libmesh equation systems object.
Definition at line 150 of file LibMeshFunction.C.
References equation_systems.
Referenced by QUESO::LibMeshOperatorBase::inverse_kl_transform().
|
virtual |
Return the L2-norm of this
.
Implements QUESO::FunctionBase.
Definition at line 129 of file LibMeshFunction.C.
References equation_systems.
|
virtual |
Pointwise multiply f1
and f2
and store the result in *this
.
Implements QUESO::FunctionBase.
Definition at line 106 of file LibMeshFunction.C.
References equation_systems.
void QUESO::LibMeshFunction::print_info | ( | ) | const |
Will print mesh-related libMesh foo to std::cerr
.
Definition at line 81 of file LibMeshFunction.C.
References equation_systems.
|
virtual |
Save the current function to an Exodus file called filename
. time
is the time to attach to the function and is usually the iteration number.
Implements QUESO::FunctionBase.
Definition at line 87 of file LibMeshFunction.C.
References equation_systems.
|
virtual |
Execute this
*= scale
.
Implements QUESO::FunctionBase.
Definition at line 119 of file LibMeshFunction.C.
References equation_systems.
|
virtual |
Set this
to zero everywhere.
Implements QUESO::FunctionBase.
Definition at line 124 of file LibMeshFunction.C.
References equation_systems.
|
virtual |
Create a zero function copy of this
and return pointer to it.
Create a new instance of FunctionBase representing the function that is identically zero (by copying this
) everywhere and return a boost shared pointer to it
Implements QUESO::FunctionBase.
Definition at line 138 of file LibMeshFunction.C.
References builder, equation_systems, and LibMeshFunction().
|
private |
Definition at line 107 of file LibMeshFunction.h.
Referenced by zero_clone().
|
private |
Definition at line 109 of file LibMeshFunction.h.
Referenced by add(), get_equation_systems(), L2_norm(), LibMeshFunction(), pointwise_mult(), print_info(), save_function(), scale(), zero(), and zero_clone().