mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
CrankNicolsonDdtScheme, backwardDdtScheme: Ensure V00 is available for moving meshes
This commit is contained in:
@ -200,8 +200,12 @@ public:
|
||||
ocCoeff_(1.0)
|
||||
{
|
||||
// Ensure the old-old-time cell volumes are available
|
||||
// for moving meshes
|
||||
if (mesh.moving())
|
||||
{
|
||||
mesh.V00();
|
||||
}
|
||||
}
|
||||
|
||||
//- Construct from mesh and Istream
|
||||
CrankNicolsonDdtScheme(const fvMesh& mesh, Istream& is)
|
||||
@ -220,8 +224,12 @@ public:
|
||||
}
|
||||
|
||||
// Ensure the old-old-time cell volumes are available
|
||||
// for moving meshes
|
||||
if (mesh.moving())
|
||||
{
|
||||
mesh.V00();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
@ -91,8 +91,12 @@ public:
|
||||
ddtScheme<Type>(mesh)
|
||||
{
|
||||
// Ensure the old-old-time cell volumes are available
|
||||
// for moving meshes
|
||||
if (mesh.moving())
|
||||
{
|
||||
mesh.V00();
|
||||
}
|
||||
}
|
||||
|
||||
//- Construct from mesh and Istream
|
||||
backwardDdtScheme(const fvMesh& mesh, Istream& is)
|
||||
@ -100,8 +104,12 @@ public:
|
||||
ddtScheme<Type>(mesh, is)
|
||||
{
|
||||
// Ensure the old-old-time cell volumes are available
|
||||
// for moving meshes
|
||||
if (mesh.moving())
|
||||
{
|
||||
mesh.V00();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Member Functions
|
||||
|
||||
Reference in New Issue
Block a user