etc/templates: correct rotating geometry templates,

including the rotating BC for velocity and deactivating dynamicMesh by default
This commit is contained in:
Chris Greenshields
2023-07-06 18:53:23 +01:00
parent 431467d305
commit d4dbc177df
6 changed files with 27 additions and 2 deletions

View File

@ -19,11 +19,20 @@ internalField uniform (0 0 0);
boundaryField
{
// For an MRF case, the rotating patch requires the MRFnoSlip BC
// For an NCC case, it requires a movingWallVelocity BC
// If steadyState, assume the case is MRF; otherwise, NCC.
rotating
{
timeScheme ${${FOAM_CASE}/system/fvSchemes!ddtSchemes/default};
#ifeq $timeScheme steadyState
type MRFnoSlip;
#else
type movingWallVelocity;
#endif
value uniform (0 0 0);
}
wall
{
type noSlip;

View File

@ -74,3 +74,5 @@ NCC Simulation
+ createNonConformalCouples must then be run to generate the couple patches
required by NCC, e.g. by
createNonConformalCouples -overwrite
+ disable MRF by deleting the constant/MRFProperties file
+ enable NCC by changing 'mover-disabled' to 'mover' in constant/dynamicMeshDict

View File

@ -13,7 +13,9 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
mover
// Disable motion for an MRF simulation
// Enable motion for an NCC simulation by changing 'mover-disabled' to 'mover'
mover-disabled
{
type motionSolver;

View File

@ -34,9 +34,17 @@ boundaryField
value uniform (0 0 0);
}
// For an MRF case, the rotating patch requires the MRFnoSlip BC
// For an NCC case, it requires a movingWallVelocity BC
// If steadyState, assume the case is MRF; otherwise, NCC.
rotating
{
timeScheme ${${FOAM_CASE}/system/fvSchemes!ddtSchemes/default};
#ifeq $timeScheme steadyState
type MRFnoSlip;
#else
type movingWallVelocity;
#endif
value uniform (0 0 0);
}

View File

@ -80,3 +80,5 @@ NCC Simulation
+ createNonConformalCouples must then be run to generate the couple patches
required by NCC, e.g. by
createNonConformalCouples -overwrite
+ disable MRF by deleting the constant/MRFProperties file
+ enable NCC by changing 'mover-disabled' to 'mover' in constant/dynamicMeshDict

View File

@ -13,7 +13,9 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
mover
// Disable motion for an MRF simulation
// Enable motion for an NCC simulation by changing 'mover-disabled' to 'mover'
mover-disabled
{
type motionSolver;