tutorials/multiRegion/film: More parallel examples
This commit is contained in:
@ -20,6 +20,8 @@ internalField uniform 300;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
surface
|
||||
{
|
||||
type coupledTemperature;
|
||||
|
||||
@ -20,6 +20,8 @@ internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
surface
|
||||
{
|
||||
type filmSurfaceVelocity;
|
||||
|
||||
@ -20,6 +20,8 @@ internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
surface
|
||||
{
|
||||
type zeroGradient;
|
||||
|
||||
@ -9,6 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0/film";
|
||||
object p;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -19,6 +20,8 @@ internalField uniform 1e5;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
surface
|
||||
{
|
||||
type mappedFilmPressure;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/fluid";
|
||||
object H2O;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type zeroGradient;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/fluid";
|
||||
object N2;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 0.77;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type zeroGradient;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/fluid";
|
||||
object O2;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 0.23;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type zeroGradient;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/fluid";
|
||||
object T;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 300;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type coupledTemperature;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volVectorField;
|
||||
location "0";
|
||||
location "0/fluid";
|
||||
object U;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type mappedValue;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/fluid";
|
||||
object p;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 1e5;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type calculated;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/fluid";
|
||||
object p_rgh;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 1e5;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
|
||||
@ -8,13 +8,6 @@ runApplication -s fluid blockMesh -region fluid
|
||||
|
||||
runApplication decomposePar -region fluid -noFields
|
||||
|
||||
# Create a set for the bits of the mesh that are not boxes
|
||||
runParallel topoSet -region fluid
|
||||
|
||||
# Create the boxes and add their surfaces to the boxes patch
|
||||
runParallel subsetMesh notBoxes -region fluid -patch film -overwrite -noFields
|
||||
|
||||
# Create the film mesh
|
||||
runParallel extrudeToRegionMesh -region fluid -overwrite
|
||||
|
||||
runApplication -s fields decomposePar -fields -copyZero
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/VoF";
|
||||
object T;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 300;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type coupledTemperature;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volVectorField;
|
||||
location "0";
|
||||
location "0/VoF";
|
||||
object U;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type mappedValue;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/VoF";
|
||||
object alpha.liquid;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type zeroGradient;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/VoF";
|
||||
object p;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 1e5;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type calculated;
|
||||
|
||||
@ -9,7 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0";
|
||||
location "0/VoF";
|
||||
object p_rgh;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -20,6 +20,8 @@ internalField uniform 1e5;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
film
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
|
||||
@ -20,6 +20,8 @@ internalField uniform 300;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
surface
|
||||
{
|
||||
type coupledTemperature;
|
||||
|
||||
@ -20,6 +20,8 @@ internalField uniform (0 0 0);
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
surface
|
||||
{
|
||||
type filmSurfaceVelocity;
|
||||
|
||||
@ -20,6 +20,8 @@ internalField uniform 0;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
surface
|
||||
{
|
||||
type zeroGradient;
|
||||
|
||||
@ -9,6 +9,7 @@ FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class volScalarField;
|
||||
location "0/film";
|
||||
object p;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
@ -19,6 +20,8 @@ internalField uniform 1e5;
|
||||
|
||||
boundaryField
|
||||
{
|
||||
#includeEtc "caseDicts/setConstraintTypes"
|
||||
|
||||
surface
|
||||
{
|
||||
type mappedFilmPressure;
|
||||
|
||||
23
tutorials/multiRegion/film/cylinderVoF/Allrun-parallel
Executable file
23
tutorials/multiRegion/film/cylinderVoF/Allrun-parallel
Executable file
@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
# Source tutorial run functions
|
||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||
|
||||
runApplication -s VoF blockMesh -region VoF
|
||||
|
||||
runApplication decomposePar -region VoF -noFields
|
||||
|
||||
runParallel extrudeToRegionMesh -region VoF -overwrite
|
||||
|
||||
runApplication -s fields decomposePar -fields -copyZero
|
||||
|
||||
runParallel $(getApplication)
|
||||
|
||||
runApplication reconstructPar -allRegions
|
||||
|
||||
printf "\n%s\n" "Creating files for paraview post-processing"
|
||||
paraFoam -touchAll
|
||||
echo
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -0,0 +1,22 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Version: dev
|
||||
\\/ M anipulation |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
FoamFile
|
||||
{
|
||||
format ascii;
|
||||
class dictionary;
|
||||
location "system";
|
||||
object decomposeParDict;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
numberOfSubdomains 4;
|
||||
|
||||
method scotch;
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -6,19 +6,25 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
|
||||
runApplication -s fluid blockMesh -region fluid
|
||||
|
||||
runApplication decomposePar -region fluid -noFields
|
||||
|
||||
# Create a set for the bits of the mesh that are not boxes
|
||||
runApplication topoSet -region fluid
|
||||
runParallel topoSet -region fluid
|
||||
|
||||
# Create the boxes and add their surfaces to the boxes patch
|
||||
runApplication subsetMesh notBoxes -region fluid -patch film -overwrite -noFields
|
||||
runParallel subsetMesh notBoxes -region fluid -patch film -overwrite -noFields
|
||||
|
||||
# Create the film mesh
|
||||
runApplication extrudeToRegionMesh -region fluid -overwrite
|
||||
runParallel extrudeToRegionMesh -region fluid -overwrite
|
||||
|
||||
runApplication -s fields decomposePar -fields -copyZero
|
||||
|
||||
runParallel $(getApplication)
|
||||
|
||||
runApplication reconstructPar -allRegions
|
||||
|
||||
printf "\n%s\n" "Creating files for paraview post-processing"
|
||||
paraFoam -touchAll
|
||||
echo
|
||||
|
||||
runApplication $(getApplication)
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user