Chaste Commit::baa90ac2819b962188b7562f2326be23c47859a7
|
#include <ImmersedBoundary2dArrays.hpp>
Public Member Functions | |
ImmersedBoundary2dArrays (ImmersedBoundaryMesh< DIM, DIM > *pMesh, double dt, double reynoldsNumber, bool activeSources) | |
ImmersedBoundary2dArrays ()=delete | |
virtual | ~ImmersedBoundary2dArrays () |
multi_array< double, 3 > & | rGetModifiableForceGrids () |
multi_array< double, 3 > & | rGetModifiableRightHandSideGrids () |
multi_array< double, 3 > & | rGetModifiableSourceGradientGrids () |
multi_array< std::complex< double >, 3 > & | rGetModifiableFourierGrids () |
multi_array< std::complex< double >, 2 > & | rGetModifiablePressureGrid () |
const multi_array< double, 2 > & | rGetOperator1 () const |
const multi_array< double, 2 > & | rGetOperator2 () const |
const std::vector< double > & | rGetSin2x () const |
const std::vector< double > & | rGetSin2y () const |
ImmersedBoundaryMesh< DIM, DIM > * | GetMesh () |
bool | HasActiveSources () |
Protected Attributes | |
ImmersedBoundaryMesh< DIM, DIM > * | mpMesh |
bool | mActiveSources |
multi_array< double, 3 > | mForceGrids |
multi_array< double, 3 > | mRightHandSideGrids |
multi_array< double, 3 > | mSourceGradientGrids |
multi_array< double, 2 > | mOperator1 |
multi_array< double, 2 > | mOperator2 |
multi_array< std::complex< double >, 3 > | mFourierGrids |
multi_array< std::complex< double >, 2 > | mPressureGrid |
std::vector< double > | mSin2x |
std::vector< double > | mSin2y |
A class to store all arrays used by ImmersedBoundarySimulationModifier for 2D simulations.
As these arrays will often be (very) large, it saves significant time to pre-allocate them and re-use during each timestep, rather than creating them as needed.
Definition at line 50 of file ImmersedBoundary2dArrays.hpp.
ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays | ( | ImmersedBoundaryMesh< DIM, DIM > * | pMesh, |
double | dt, | ||
double | reynoldsNumber, | ||
bool | activeSources | ||
) |
Default constructor.
pMesh | the immersed boundary mesh |
dt | the simulation timestep |
reynoldsNumber | the Reynolds Number of the fluid |
activeSources | whether the population has active fluid sources |
Definition at line 42 of file ImmersedBoundary2dArrays.cpp.
References ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetNumGridPtsX(), ImmersedBoundaryMesh< ELEMENT_DIM, SPACE_DIM >::GetNumGridPtsY(), ImmersedBoundary2dArrays< DIM >::mActiveSources, ImmersedBoundary2dArrays< DIM >::mForceGrids, ImmersedBoundary2dArrays< DIM >::mFourierGrids, ImmersedBoundary2dArrays< DIM >::mOperator1, ImmersedBoundary2dArrays< DIM >::mOperator2, ImmersedBoundary2dArrays< DIM >::mpMesh, ImmersedBoundary2dArrays< DIM >::mPressureGrid, ImmersedBoundary2dArrays< DIM >::mRightHandSideGrids, ImmersedBoundary2dArrays< DIM >::mSin2x, ImmersedBoundary2dArrays< DIM >::mSin2y, and ImmersedBoundary2dArrays< DIM >::mSourceGradientGrids.
|
delete |
Empty constructor.
|
virtual |
Destructor.
Definition at line 114 of file ImmersedBoundary2dArrays.cpp.
ImmersedBoundaryMesh< DIM, DIM > * ImmersedBoundary2dArrays< DIM >::GetMesh | ( | ) |
Definition at line 173 of file ImmersedBoundary2dArrays.cpp.
bool ImmersedBoundary2dArrays< DIM >::HasActiveSources | ( | ) |
Definition at line 179 of file ImmersedBoundary2dArrays.cpp.
multi_array< double, 3 > & ImmersedBoundary2dArrays< DIM >::rGetModifiableForceGrids | ( | ) |
Definition at line 119 of file ImmersedBoundary2dArrays.cpp.
multi_array< std::complex< double >, 3 > & ImmersedBoundary2dArrays< DIM >::rGetModifiableFourierGrids | ( | ) |
Definition at line 137 of file ImmersedBoundary2dArrays.cpp.
multi_array< std::complex< double >, 2 > & ImmersedBoundary2dArrays< DIM >::rGetModifiablePressureGrid | ( | ) |
Definition at line 143 of file ImmersedBoundary2dArrays.cpp.
multi_array< double, 3 > & ImmersedBoundary2dArrays< DIM >::rGetModifiableRightHandSideGrids | ( | ) |
Definition at line 125 of file ImmersedBoundary2dArrays.cpp.
multi_array< double, 3 > & ImmersedBoundary2dArrays< DIM >::rGetModifiableSourceGradientGrids | ( | ) |
Definition at line 131 of file ImmersedBoundary2dArrays.cpp.
const multi_array< double, 2 > & ImmersedBoundary2dArrays< DIM >::rGetOperator1 | ( | ) | const |
Definition at line 149 of file ImmersedBoundary2dArrays.cpp.
const multi_array< double, 2 > & ImmersedBoundary2dArrays< DIM >::rGetOperator2 | ( | ) | const |
Definition at line 155 of file ImmersedBoundary2dArrays.cpp.
const std::vector< double > & ImmersedBoundary2dArrays< DIM >::rGetSin2x | ( | ) | const |
Definition at line 161 of file ImmersedBoundary2dArrays.cpp.
const std::vector< double > & ImmersedBoundary2dArrays< DIM >::rGetSin2y | ( | ) | const |
Definition at line 167 of file ImmersedBoundary2dArrays.cpp.
|
protected |
Whether the population has active fluid sources.
Definition at line 58 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
Grid to store force acting on fluid.
Definition at line 61 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
Grid to store results of R2C FFT.
Definition at line 76 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
Grid to store the first of two operators needed for the FFT algorithm.
Definition at line 70 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
Grid to store the second of two operators needed for the FFT algorithm.
Definition at line 73 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
The immersed boundary mesh.
Definition at line 55 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
Grid to store the calculated pressure grid.
Definition at line 79 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
Grid to calculate upwind scheme and store RHS of system.
Definition at line 64 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
Vector of sin values in x, constant once grid size is known.
Definition at line 82 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
Vector of sin values in x, constant once grid size is known.
Definition at line 85 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().
|
protected |
Grid to store the gradient of the fluid sources.
Definition at line 67 of file ImmersedBoundary2dArrays.hpp.
Referenced by ImmersedBoundary2dArrays< DIM >::ImmersedBoundary2dArrays().