TUT: use filter/mapping with ensight data (#2609)

This commit is contained in:
Mark Olesen 2022-11-07 16:39:29 +01:00
parent cb4e026aed
commit 126d831f6e
4 changed files with 27 additions and 7 deletions

View File

@ -6,6 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
cleanCase0
rm -rf constant/boundaryData
rm -rf constant/sampled
rm -rf constant/triSurface
# -----------------------------------------------------------------------------

View File

@ -24,7 +24,11 @@ pressure
duration 0.03;
region vibrationShell;
selectionMode all;
format binary;
sampleFormat ensight;
sampleFile "<constant>/sampled/window/windowPatch.case";
filterRadius 3e-3;
filterSweeps 10;
}

View File

@ -12,10 +12,18 @@ runApplication decomposePar
runParallel $(getApplication)
vibroAcousticCase="../main"
dataDir="postProcessing/surfaces/window"
targetCase="../main"
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
# -----------------------------------------------------------------------------

View File

@ -58,7 +58,7 @@ functions
surfaceFormat boundaryData;
writeControl timeStep;
writeInterval 100;
interpolationScheme cell;
fields
(
p
@ -76,7 +76,14 @@ functions
{
type patch;
patches (window);
interpolate false;
surfaceFormat boundaryData;
}
windowPatch
{
type patch;
patches (window);
surfaceFormat ensight;
}
}
}