MAST
MAST::SystemInitialization Class Reference

#include <system_initialization.h>

Inheritance diagram for MAST::SystemInitialization:
Collaboration diagram for MAST::SystemInitialization:

Public Member Functions

 SystemInitialization (MAST::NonlinearSystem &sys, const std::string &prefix)
 initialize the variables in the provided system sys of order and family. More...
 
virtual ~SystemInitialization ()
 virtual destructor More...
 
unsigned int n_vars () const
 
const libMesh::FEType & fetype (unsigned int i) const
 
MAST::NonlinearSystemsystem ()
 
const MAST::NonlinearSystemsystem () const
 
const std::vector< unsigned int > vars () const
 
const std::string & prefix () const
 
void initialize_solution (const RealVectorX &sol)
 initializes the FE solution vector to the constant solution provided in sol. More...
 
void initialize_solution (const MAST::FieldFunction< RealVectorX > &sol)
 initializes the FE solution vector to the function solution provided in sol. More...
 

Protected Attributes

MAST::NonlinearSystem_system
 
std::vector< unsigned int > _vars
 
std::string _prefix
 

Detailed Description

Definition at line 41 of file system_initialization.h.

Constructor & Destructor Documentation

MAST::SystemInitialization::SystemInitialization ( MAST::NonlinearSystem sys,
const std::string &  prefix 
)

initialize the variables in the provided system sys of order and family.

Uses prefix for all variables name.

Definition at line 32 of file system_initialization.cpp.

MAST::SystemInitialization::~SystemInitialization ( )
virtual

virtual destructor

Definition at line 43 of file system_initialization.cpp.

Member Function Documentation

const libMesh::FEType & MAST::SystemInitialization::fetype ( unsigned int  i) const
Returns
the FEType object for variable i, that defines the finite element family and order.

Definition at line 58 of file system_initialization.cpp.

Here is the caller graph for this function:

void MAST::SystemInitialization::initialize_solution ( const RealVectorX sol)

initializes the FE solution vector to the constant solution provided in sol.

Definition at line 66 of file system_initialization.cpp.

Here is the caller graph for this function:

void MAST::SystemInitialization::initialize_solution ( const MAST::FieldFunction< RealVectorX > &  sol)

initializes the FE solution vector to the function solution provided in sol.

Definition at line 115 of file system_initialization.cpp.

Here is the call graph for this function:

unsigned int MAST::SystemInitialization::n_vars ( ) const
Returns
the number of variables in this system

Definition at line 50 of file system_initialization.cpp.

Here is the caller graph for this function:

const std::string& MAST::SystemInitialization::prefix ( ) const
inline
Returns
a constant reference to the prefix used for all variables.

Definition at line 96 of file system_initialization.h.

Here is the call graph for this function:

MAST::NonlinearSystem& MAST::SystemInitialization::system ( )
inline
Returns
a reference to the system for which the variables are initialized.

Definition at line 73 of file system_initialization.h.

const MAST::NonlinearSystem& MAST::SystemInitialization::system ( ) const
inline
Returns
a constant reference to the system for which the variables are initialized.

Definition at line 81 of file system_initialization.h.

const std::vector<unsigned int> MAST::SystemInitialization::vars ( ) const
inline
Returns
a constant reference to the vector of variable IDs.

Definition at line 88 of file system_initialization.h.

Here is the caller graph for this function:

Member Data Documentation

std::string MAST::SystemInitialization::_prefix
protected

Definition at line 120 of file system_initialization.h.

MAST::NonlinearSystem& MAST::SystemInitialization::_system
protected

Definition at line 116 of file system_initialization.h.

std::vector<unsigned int> MAST::SystemInitialization::_vars
protected

Definition at line 118 of file system_initialization.h.


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