etc/templates: correct rotating geometry templates,
including the rotating BC for velocity and deactivating dynamicMesh by default
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user