mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: use filter/mapping with ensight data (#2609)
This commit is contained in:
@ -6,6 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
|
|||||||
cleanCase0
|
cleanCase0
|
||||||
|
|
||||||
rm -rf constant/boundaryData
|
rm -rf constant/boundaryData
|
||||||
|
rm -rf constant/sampled
|
||||||
rm -rf constant/triSurface
|
rm -rf constant/triSurface
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
@ -24,7 +24,11 @@ pressure
|
|||||||
duration 0.03;
|
duration 0.03;
|
||||||
region vibrationShell;
|
region vibrationShell;
|
||||||
selectionMode all;
|
selectionMode all;
|
||||||
format binary;
|
|
||||||
|
sampleFormat ensight;
|
||||||
|
sampleFile "<constant>/sampled/window/windowPatch.case";
|
||||||
|
filterRadius 3e-3;
|
||||||
|
filterSweeps 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -12,10 +12,18 @@ runApplication decomposePar
|
|||||||
|
|
||||||
runParallel $(getApplication)
|
runParallel $(getApplication)
|
||||||
|
|
||||||
vibroAcousticCase="../main"
|
targetCase="../main"
|
||||||
dataDir="postProcessing/surfaces/window"
|
dataDir="postProcessing/surfaces"
|
||||||
|
|
||||||
|
targetDir="$targetCase"/constant/boundaryData
|
||||||
|
mkdir -p "$targetDir"
|
||||||
|
rm -rf "$targetDir"/window
|
||||||
|
cp -rf "$dataDir/window" "$targetDir"/window
|
||||||
|
|
||||||
|
targetDir="$targetCase"/constant/sampled
|
||||||
|
mkdir -p "$targetDir"
|
||||||
|
rm -rf "$targetDir"/window
|
||||||
|
cp -rf "$dataDir/windowPatch" "$targetDir"/window
|
||||||
|
|
||||||
mkdir -p "$vibroAcousticCase"/constant/boundaryData
|
|
||||||
cp -rf "$dataDir" "$vibroAcousticCase"/constant/boundaryData/window
|
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
@ -58,7 +58,7 @@ functions
|
|||||||
surfaceFormat boundaryData;
|
surfaceFormat boundaryData;
|
||||||
writeControl timeStep;
|
writeControl timeStep;
|
||||||
writeInterval 100;
|
writeInterval 100;
|
||||||
interpolationScheme cell;
|
|
||||||
fields
|
fields
|
||||||
(
|
(
|
||||||
p
|
p
|
||||||
@ -76,7 +76,14 @@ functions
|
|||||||
{
|
{
|
||||||
type patch;
|
type patch;
|
||||||
patches (window);
|
patches (window);
|
||||||
interpolate false;
|
surfaceFormat boundaryData;
|
||||||
|
}
|
||||||
|
|
||||||
|
windowPatch
|
||||||
|
{
|
||||||
|
type patch;
|
||||||
|
patches (window);
|
||||||
|
surfaceFormat ensight;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user