TUT: clean up multiphase tutorials

This commit is contained in:
Kutalmis Bercin
2020-01-29 17:19:43 +00:00
parent 647e161511
commit 01514e4d43
1349 changed files with 5623 additions and 241919 deletions

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -35,9 +34,7 @@ boundaryField
floatingObject
{
type fixedNormalInletOutletVelocity;
fixTangentialInflow false;
normalVelocity
{
type uniformFixedValue;
@ -45,26 +42,21 @@ boundaryField
uniformValue
{
type scale;
value
{
type sine;
type sine;
frequency 1;
amplitude 0.025;
scale (0 1 0);
level (0 0 0);
}
scale
{
type linearRamp;
duration 10;
}
}
}
value uniform (0 0 0);
}

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,16 +25,19 @@ boundaryField
type calculated;
value uniform 0;
}
walls
{
type calculated;
value uniform 0;
}
floatingObject
{
type calculated;
value uniform 0;
}
frontAndBack
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p_gh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,15 +25,18 @@ boundaryField
type waveSurfacePressure;
value uniform 0;
}
walls
{
type zeroGradient;
}
floatingObject
{
type fixedFluxPressure;
value uniform 0;
}
frontAndBack
{
type empty;

View File

@ -4,6 +4,7 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
cleanCase0
rm -rf poolHeight poolHeight_vs_time
rm -f poolHeight_vs_time
#------------------------------------------------------------------------------

View File

@ -4,11 +4,19 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
runApplication blockMesh
runApplication topoSet
runApplication subsetMesh -overwrite c0 -patch floatingObject
restore0Dir
runApplication $(getApplication)
# Require awk
command -v awk >/dev/null && {
awk '{print $1 " " $3}' \
postProcessing/poolHeight/0/surfaceFieldValue.dat > poolHeight_vs_time
}
#------------------------------------------------------------------------------

View File

@ -1,5 +0,0 @@
#!/bin/sh
awk '{print $1 " " $3}' postProcessing/poolHeight/0/surfaceFieldValue.dat > poolHeight_vs_time
#------------------------------------------------------------------------------

View File

@ -51,6 +51,7 @@ maxCo 0.4;
maxDeltaT 1;
functions
{
forces
@ -81,7 +82,6 @@ functions
(
zeta
);
}
};

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions