mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: clean up multiphase tutorials
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -4,6 +4,7 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
cleanCase0
|
||||
rm -rf poolHeight poolHeight_vs_time
|
||||
|
||||
rm -f poolHeight_vs_time
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
awk '{print $1 " " $3}' postProcessing/poolHeight/0/surfaceFieldValue.dat > poolHeight_vs_time
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -51,6 +51,7 @@ maxCo 0.4;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
|
||||
functions
|
||||
{
|
||||
forces
|
||||
@ -81,7 +82,6 @@ functions
|
||||
(
|
||||
zeta
|
||||
);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -12,7 +12,6 @@ FoamFile
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
|
||||
Reference in New Issue
Block a user