Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Data/Templates/case/Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,13 @@ runCommand createPatch -overwrite
%{%(zonesPresent%)
%:True
# Set cell zones contained inside the .stl surfaces
runCommand topoSet -dict system/topoSetZonesDict
which createZones > /dev/null 2>&1
if [ $? == 0 ]
then
runCommand createZones -dict system/createZonesDict
else
runCommand topoSet -dict system/topoSetZonesDict
fi

%}
%{%(initialisationZonesPresent%)
Expand Down
9 changes: 8 additions & 1 deletion Data/Templates/case/Allrun.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,14 @@ runCommand createPatch -overwrite
%{%(zonesPresent%)
%:True
# Set cell zones contained inside the .stl surfaces
runCommand topoSet -dict system/topoSetZonesDict
if( (Get-Command createZones) )
{
runCommand createZones -dict system/createZonesDict
}
else
{
runCommand topoSet -dict system/topoSetZonesDict
}

%}
%{%(initialisationZonesPresent%)
Expand Down
27 changes: 27 additions & 0 deletions Data/Templates/case/system/createZonesDict
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
%{%(zonesPresent%)
%:True
%[_header%]
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object topoSetZonesDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

%{%(zones%)
%{%(zones/%(0%)/PartNameList%)
%(0%)
{
type insideSurface;
zoneType cell;

surface triSurface;
file "%(0%).stl";
}
%}
%}

// ************************************************************************* //
%}
8 changes: 7 additions & 1 deletion Data/TestFiles/cases/MeanVelocityForceCellZone/case/Allrun
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,13 @@ fi
runCommand createPatch -overwrite

# Set cell zones contained inside the .stl surfaces
runCommand topoSet -dict system/topoSetZonesDict
which createZones > /dev/null 2>&1
if [ $? == 0 ]
then
runCommand createZones -dict system/createZonesDict
else
runCommand topoSet -dict system/topoSetZonesDict
fi

# Parallel decomposition
if [ ! -d processor0 ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,14 @@ echo "cAlpha 1;" > system/cAlpha
runCommand createPatch -overwrite

# Set cell zones contained inside the .stl surfaces
runCommand topoSet -dict system/topoSetZonesDict
if( (Get-Command createZones) )
{
runCommand createZones -dict system/createZonesDict
}
else
{
runCommand topoSet -dict system/topoSetZonesDict
}

# Parallel decomposition
if( !(Test-Path -PathType Container processor0) )
Expand Down