mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
First level of support for cached temporary fields.
This commit is contained in:
@ -53,6 +53,9 @@ class solution
|
||||
{
|
||||
// Private data
|
||||
|
||||
//- Dictionary of temporary fields to cache
|
||||
dictionary cache_;
|
||||
|
||||
//- Dictionary of relaxation factors for all the fields
|
||||
dictionary relaxationFactors_;
|
||||
|
||||
@ -62,6 +65,7 @@ class solution
|
||||
//- Dictionary of solver parameters for all the fields
|
||||
dictionary solvers_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct and assignment
|
||||
@ -90,9 +94,8 @@ public:
|
||||
|
||||
// Access
|
||||
|
||||
//- Return the selected sub-dictionary of solvers if the "select"
|
||||
// keyword is given, otherwise return the complete dictionary
|
||||
const dictionary& solutionDict() const;
|
||||
//- Return true if the given field should be cached
|
||||
bool cache(const word& name) const;
|
||||
|
||||
//- Return true if the relaxation factor is given for the field
|
||||
bool relax(const word& name) const;
|
||||
@ -100,6 +103,10 @@ public:
|
||||
//- Return the relaxation factor for the given field
|
||||
scalar relaxationFactor(const word& name) const;
|
||||
|
||||
//- Return the selected sub-dictionary of solvers if the "select"
|
||||
// keyword is given, otherwise return the complete dictionary
|
||||
const dictionary& solutionDict() const;
|
||||
|
||||
//- Return the solver controls dictionary for the given field
|
||||
const dictionary& solverDict(const word& name) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user