reactingEulerFoam: Lookup fvOptions from the mesh rather than construct a local copy

This commit is contained in:
Henry Weller
2015-12-02 15:39:45 +00:00
parent 736621b945
commit a52cae9102
3 changed files with 2 additions and 6 deletions

View File

@ -154,8 +154,7 @@ Foam::phaseSystem::phaseSystem
dimensionedScalar("dpdt", dimPressure/dimTime, 0)
),
MRF_(mesh_),
fvOptions_(mesh_)
MRF_(mesh_)
{
phi_.writeOpt() = IOobject::AUTO_WRITE;

View File

@ -176,9 +176,6 @@ protected:
//- Optional MRF zones
IOMRFZoneList MRF_;
//- Optional FV-options
mutable fv::options fvOptions_;
//- Blending methods
blendingMethodTable blendingMethods_;

View File

@ -84,7 +84,7 @@ inline const Foam::IOMRFZoneList& Foam::phaseSystem::MRF() const
inline Foam::fv::options& Foam::phaseSystem::fvOptions() const
{
return fvOptions_;
return fv::options::New(mesh_);
}