Chaste Release::3.1
|
#include <StokesFlowProblemDefinition.hpp>
Public Member Functions | |
StokesFlowProblemDefinition (QuadraticMesh< DIM > &rMesh) | |
virtual | ~StokesFlowProblemDefinition () |
void | SetViscosity (double mu) |
double | GetViscosity () |
void | SetZeroFlowNodes (std::vector< unsigned > &rZeroFlowNodes) |
void | SetPrescribedFlowNodes (std::vector< unsigned > &rPrescribedFlowNodes, std::vector< c_vector< double, DIM > > &rPrescribedFlow) |
virtual void | Validate () |
Private Attributes | |
double | mMu |
Class for defining everything needed for a solving the Stokes' Flow equations. This class mainly allows for the setting of the viscosity. It inherits from a class which allows for the setting of body force, density and various types of boundary condition.
Definition at line 48 of file StokesFlowProblemDefinition.hpp.
StokesFlowProblemDefinition< DIM >::StokesFlowProblemDefinition | ( | QuadraticMesh< DIM > & | rMesh | ) | [inline] |
Constructor (initialises viscosity to -1 so can check if it is unset
rMesh | Quadratic mesh |
Definition at line 59 of file StokesFlowProblemDefinition.hpp.
virtual StokesFlowProblemDefinition< DIM >::~StokesFlowProblemDefinition | ( | ) | [inline, virtual] |
Destructor
Definition at line 66 of file StokesFlowProblemDefinition.hpp.
double StokesFlowProblemDefinition< DIM >::GetViscosity | ( | ) | [inline] |
Get the viscosity. Exception thrown if this hasn't been set yet.
Definition at line 83 of file StokesFlowProblemDefinition.hpp.
References EXCEPTION, and StokesFlowProblemDefinition< DIM >::mMu.
void StokesFlowProblemDefinition< DIM >::SetPrescribedFlowNodes | ( | std::vector< unsigned > & | rPrescribedFlowNodes, |
std::vector< c_vector< double, DIM > > & | rPrescribedFlow | ||
) | [inline] |
Set Dirichlet boundary conditions: provide a set of nodes and the prescribed flow on these nodes.
If you only want to set one component of the flow for the node rPrescribedFlowNodes[i], set the other components of rPrescribedFlow[i] to be StokesFlowProblemDefinition::FREE.
rPrescribedFlowNodes | vector of node indices. |
rPrescribedFlow | vector of prescribed flow values for these nodes. |
Definition at line 112 of file StokesFlowProblemDefinition.hpp.
References ContinuumMechanicsProblemDefinition< DIM >::mDirichletNodes, and ContinuumMechanicsProblemDefinition< DIM >::mDirichletNodeValues.
void StokesFlowProblemDefinition< DIM >::SetViscosity | ( | double | mu | ) | [inline] |
Set the viscosity
mu | viscosity |
Definition at line 74 of file StokesFlowProblemDefinition.hpp.
References StokesFlowProblemDefinition< DIM >::mMu.
void StokesFlowProblemDefinition< DIM >::SetZeroFlowNodes | ( | std::vector< unsigned > & | rZeroFlowNodes | ) | [inline] |
Set nodes on which to apply the boundary condition (u,v,w)=0, ie flow = 0 in all components. Just calls SetZeroDirichletNodes() on the parent class.
rZeroFlowNodes | Nodes on which to apply the boundary conditions |
Definition at line 97 of file StokesFlowProblemDefinition.hpp.
References ContinuumMechanicsProblemDefinition< DIM >::SetZeroDirichletNodes().
virtual void StokesFlowProblemDefinition< DIM >::Validate | ( | ) | [inline, virtual] |
Check all variables are set appropriately. Exceptions are thrown if any are not. Derived classes can override but should call this version as well.
Reimplemented from ContinuumMechanicsProblemDefinition< DIM >.
Definition at line 124 of file StokesFlowProblemDefinition.hpp.
double StokesFlowProblemDefinition< DIM >::mMu [private] |
Dynamic viscosity
Definition at line 52 of file StokesFlowProblemDefinition.hpp.
Referenced by StokesFlowProblemDefinition< DIM >::GetViscosity(), and StokesFlowProblemDefinition< DIM >::SetViscosity().