Stores all relevant solution info for cloud. More...
Public Member Functions | |
cloudSolution (const fvMesh &mesh) | |
Construct null from mesh reference. More... | |
cloudSolution (const fvMesh &mesh, const dictionary &dict) | |
Construct from mesh and dictionary. More... | |
cloudSolution (const cloudSolution &cs) | |
Construct copy. More... | |
virtual | ~cloudSolution () |
Destructor. More... | |
void | read () |
Read properties from dictionary. More... | |
scalar | relaxCoeff (const word &fieldName) const |
Return relaxation coefficient for field. More... | |
bool | semiImplicit (const word &fieldName) const |
Return semi-implicit flag coefficient for field. More... | |
const fvMesh & | mesh () const |
Return reference to the mesh. More... | |
const dictionary & | dict () const |
Return const access to the dictionary. More... | |
const Switch | active () const |
Return the active flag. More... | |
const Switch | transient () const |
Return const access to the transient flag. More... | |
const Switch | steadyState () const |
Return const access to the steady flag. More... | |
label | calcFrequency () const |
Return const access to the calculation frequency. More... | |
scalar | maxCo () const |
Return const access to the max particle Courant number. More... | |
label | iter () const |
Return const access to the current cloud iteration. More... | |
label | nextIter () |
Increment and return iter counter. More... | |
scalar | trackTime () const |
Return the particle track time. More... | |
scalar | deltaTMax () const |
Return the maximum integation time step. More... | |
const Switch | coupled () const |
Return const access to the coupled flag. More... | |
Switch & | coupled () |
Return non-const access to the coupled flag. More... | |
const Switch | cellValueSourceCorrection () const |
Return const access to the cell value correction flag. More... | |
scalar | maxTrackTime () const |
Return const access to the particle track time. More... | |
const Switch | resetSourcesOnStartup () const |
Return const access to the reset sources flag. More... | |
const dictionary & | sourceTermDict () const |
Source terms dictionary. More... | |
const dictionary & | interpolationSchemes () const |
Interpolation schemes dictionary. More... | |
const dictionary & | integrationSchemes () const |
Integration schemes dictionary. More... | |
bool | solveThisStep () const |
Returns true if performing a cloud iteration this calc step. More... | |
bool | canEvolve () |
Returns true if possible to evolve the cloud and sets timestep. More... | |
bool | output () const |
Returns true if writing this step. More... | |
scalar | deltaTMax (const scalar trackTime) const |
Return the maximum integration time. More... | |
scalar | deltaLMax (const scalar lRef) const |
Return the maximum integration length. More... | |
Private Member Functions | |
void | operator= (const cloudSolution &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const fvMesh & | mesh_ |
Reference to the mesh. More... | |
dictionary | dict_ |
Dictionary used during construction. More... | |
const Switch | active_ |
Cloud active flag. More... | |
Switch | transient_ |
Transient flag. More... | |
label | calcFrequency_ |
Calculation frequency - carrier steps per cloud step. More... | |
scalar | maxCo_ |
Maximum particle Courant number. More... | |
label | iter_ |
Current cloud iteration. More... | |
scalar | trackTime_ |
Particle track time. More... | |
scalar | deltaTMax_ |
Maximum integration time step (optional) More... | |
Switch | coupled_ |
Flag to indicate whether parcels are coupled to the carrier. More... | |
Switch | cellValueSourceCorrection_ |
Flag to correct cell values with latest transfer information. More... | |
scalar | maxTrackTime_ |
Maximum particle track time [s]. More... | |
Switch | resetSourcesOnStartup_ |
Flag to indicate whether coupling source terms should be. More... | |
List< Tuple2< word, Tuple2< bool, scalar > > > | schemes_ |
List schemes, e.g. U semiImplicit 1. More... | |
Stores all relevant solution info for cloud.
Definition at line 51 of file cloudSolution.H.
cloudSolution | ( | const fvMesh & | mesh | ) |
Construct null from mesh reference.
Definition at line 89 of file cloudSolution.C.
cloudSolution | ( | const fvMesh & | mesh, |
const dictionary & | dict | ||
) |
Construct from mesh and dictionary.
Definition at line 31 of file cloudSolution.C.
References cloudSolution::active_, cloudSolution::dict_, Foam::endl(), Foam::Info, cloudSolution::read(), dictionary::readIfPresent(), cloudSolution::resetSourcesOnStartup_, and dictionary::subOrEmptyDict().
cloudSolution | ( | const cloudSolution & | cs | ) |
Construct copy.
Definition at line 70 of file cloudSolution.C.
|
virtual |
Destructor.
Definition at line 110 of file cloudSolution.C.
|
private |
Disallow default bitwise assignment.
void read | ( | ) |
Read properties from dictionary.
Definition at line 116 of file cloudSolution.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, dictionary::lookup(), Foam::fvc::scheme(), List::size(), and dictionary::toc().
Referenced by cloudSolution::cloudSolution().
Foam::scalar relaxCoeff | ( | const word & | fieldName | ) | const |
Return relaxation coefficient for field.
Definition at line 173 of file cloudSolution.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and forAll.
bool semiImplicit | ( | const word & | fieldName | ) | const |
Return semi-implicit flag coefficient for field.
Definition at line 191 of file cloudSolution.C.
References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and forAll.
|
inline |
Return reference to the mesh.
Definition at line 26 of file cloudSolutionI.H.
References cloudSolution::mesh_.
|
inline |
Return const access to the dictionary.
Definition at line 32 of file cloudSolutionI.H.
|
inline |
Return the active flag.
Definition at line 38 of file cloudSolutionI.H.
|
inline |
Return const access to the transient flag.
Definition at line 62 of file cloudSolutionI.H.
|
inline |
Return const access to the steady flag.
Definition at line 68 of file cloudSolutionI.H.
|
inline |
Return const access to the calculation frequency.
Definition at line 74 of file cloudSolutionI.H.
|
inline |
Return const access to the max particle Courant number.
Definition at line 80 of file cloudSolutionI.H.
|
inline |
Return const access to the current cloud iteration.
Definition at line 86 of file cloudSolutionI.H.
|
inline |
Increment and return iter counter.
Definition at line 92 of file cloudSolutionI.H.
|
inline |
Return the particle track time.
Definition at line 98 of file cloudSolutionI.H.
|
inline |
Return the maximum integation time step.
Definition at line 104 of file cloudSolutionI.H.
|
inline |
Return const access to the coupled flag.
Definition at line 110 of file cloudSolutionI.H.
|
inline |
Return non-const access to the coupled flag.
|
inline |
Return const access to the cell value correction flag.
Definition at line 122 of file cloudSolutionI.H.
|
inline |
Return const access to the particle track time.
Definition at line 128 of file cloudSolutionI.H.
|
inline |
Return const access to the reset sources flag.
Definition at line 134 of file cloudSolutionI.H.
|
inline |
Source terms dictionary.
Definition at line 44 of file cloudSolutionI.H.
References dictionary::subDict().
|
inline |
Interpolation schemes dictionary.
Definition at line 50 of file cloudSolutionI.H.
References dictionary::subDict().
|
inline |
Integration schemes dictionary.
Definition at line 56 of file cloudSolutionI.H.
References dictionary::subDict().
bool solveThisStep | ( | ) | const |
Returns true if performing a cloud iteration this calc step.
Definition at line 209 of file cloudSolution.C.
bool canEvolve | ( | ) |
Returns true if possible to evolve the cloud and sets timestep.
parameters
Definition at line 220 of file cloudSolution.C.
bool output | ( | ) | const |
Returns true if writing this step.
Definition at line 235 of file cloudSolution.C.
Foam::scalar deltaTMax | ( | const scalar | trackTime | ) | const |
Return the maximum integration time.
Definition at line 241 of file cloudSolution.C.
References Foam::min().
Foam::scalar deltaLMax | ( | const scalar | lRef | ) | const |
Return the maximum integration length.
Definition at line 254 of file cloudSolution.C.
|
private |
Reference to the mesh.
Definition at line 56 of file cloudSolution.H.
Referenced by cloudSolution::mesh().
|
private |
Dictionary used during construction.
Definition at line 59 of file cloudSolution.H.
Referenced by cloudSolution::cloudSolution().
|
private |
Cloud active flag.
Definition at line 62 of file cloudSolution.H.
Referenced by cloudSolution::cloudSolution().
|
private |
Transient flag.
Definition at line 65 of file cloudSolution.H.
|
private |
Calculation frequency - carrier steps per cloud step.
NOTE: Steady operation only
Definition at line 69 of file cloudSolution.H.
|
private |
Maximum particle Courant number.
Max fraction of current cell that can be traversed in a single step
Definition at line 74 of file cloudSolution.H.
|
private |
Current cloud iteration.
Definition at line 77 of file cloudSolution.H.
|
private |
Particle track time.
Definition at line 80 of file cloudSolution.H.
|
private |
Maximum integration time step (optional)
Definition at line 83 of file cloudSolution.H.
|
private |
Flag to indicate whether parcels are coupled to the carrier.
phase, i.e. whether or not to generate source terms for carrier phase
Definition at line 91 of file cloudSolution.H.
|
private |
Flag to correct cell values with latest transfer information.
during the lagrangian timestep
Definition at line 95 of file cloudSolution.H.
|
private |
Maximum particle track time [s].
Definition at line 98 of file cloudSolution.H.
|
private |
Flag to indicate whether coupling source terms should be.
reset on start-up/first read
Definition at line 102 of file cloudSolution.H.
Referenced by cloudSolution::cloudSolution().
List schemes, e.g. U semiImplicit 1.
Definition at line 105 of file cloudSolution.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.