mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
reactingEulerFoam: Lookup fvOptions from the mesh rather than construct a local copy
This commit is contained in:
@ -154,8 +154,7 @@ Foam::phaseSystem::phaseSystem
|
|||||||
dimensionedScalar("dpdt", dimPressure/dimTime, 0)
|
dimensionedScalar("dpdt", dimPressure/dimTime, 0)
|
||||||
),
|
),
|
||||||
|
|
||||||
MRF_(mesh_),
|
MRF_(mesh_)
|
||||||
fvOptions_(mesh_)
|
|
||||||
{
|
{
|
||||||
phi_.writeOpt() = IOobject::AUTO_WRITE;
|
phi_.writeOpt() = IOobject::AUTO_WRITE;
|
||||||
|
|
||||||
|
|||||||
@ -176,9 +176,6 @@ protected:
|
|||||||
//- Optional MRF zones
|
//- Optional MRF zones
|
||||||
IOMRFZoneList MRF_;
|
IOMRFZoneList MRF_;
|
||||||
|
|
||||||
//- Optional FV-options
|
|
||||||
mutable fv::options fvOptions_;
|
|
||||||
|
|
||||||
//- Blending methods
|
//- Blending methods
|
||||||
blendingMethodTable blendingMethods_;
|
blendingMethodTable blendingMethods_;
|
||||||
|
|
||||||
|
|||||||
@ -84,7 +84,7 @@ inline const Foam::IOMRFZoneList& Foam::phaseSystem::MRF() const
|
|||||||
|
|
||||||
inline Foam::fv::options& Foam::phaseSystem::fvOptions() const
|
inline Foam::fv::options& Foam::phaseSystem::fvOptions() const
|
||||||
{
|
{
|
||||||
return fvOptions_;
|
return fv::options::New(mesh_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user