Chaste Release::3.1
StokesFlowProblemDefinition< DIM > Class Template Reference

#include <StokesFlowProblemDefinition.hpp>

Inheritance diagram for StokesFlowProblemDefinition< DIM >:
Collaboration diagram for StokesFlowProblemDefinition< DIM >:

List of all members.

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

Detailed Description

template<unsigned DIM>
class StokesFlowProblemDefinition< DIM >

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.


Constructor & Destructor Documentation

template<unsigned DIM>
StokesFlowProblemDefinition< DIM >::StokesFlowProblemDefinition ( QuadraticMesh< DIM > &  rMesh) [inline]

Constructor (initialises viscosity to -1 so can check if it is unset

Parameters:
rMeshQuadratic mesh

Definition at line 59 of file StokesFlowProblemDefinition.hpp.

template<unsigned DIM>
virtual StokesFlowProblemDefinition< DIM >::~StokesFlowProblemDefinition ( ) [inline, virtual]

Destructor

Definition at line 66 of file StokesFlowProblemDefinition.hpp.


Member Function Documentation

template<unsigned DIM>
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.

template<unsigned DIM>
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.

Parameters:
rPrescribedFlowNodesvector of node indices.
rPrescribedFlowvector of prescribed flow values for these nodes.

Definition at line 112 of file StokesFlowProblemDefinition.hpp.

References ContinuumMechanicsProblemDefinition< DIM >::mDirichletNodes, and ContinuumMechanicsProblemDefinition< DIM >::mDirichletNodeValues.

template<unsigned DIM>
void StokesFlowProblemDefinition< DIM >::SetViscosity ( double  mu) [inline]

Set the viscosity

Parameters:
muviscosity

Definition at line 74 of file StokesFlowProblemDefinition.hpp.

References StokesFlowProblemDefinition< DIM >::mMu.

template<unsigned DIM>
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.

Parameters:
rZeroFlowNodesNodes on which to apply the boundary conditions

Definition at line 97 of file StokesFlowProblemDefinition.hpp.

References ContinuumMechanicsProblemDefinition< DIM >::SetZeroDirichletNodes().

template<unsigned DIM>
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.


Member Data Documentation

template<unsigned DIM>
double StokesFlowProblemDefinition< DIM >::mMu [private]

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