diff --git a/applications/utilities/mesh/generation/zeroDimensionalMesh/Make/files b/applications/utilities/mesh/generation/zeroDimensionalMesh/Make/files new file mode 100644 index 0000000000..0a6d68a450 --- /dev/null +++ b/applications/utilities/mesh/generation/zeroDimensionalMesh/Make/files @@ -0,0 +1,3 @@ +zeroDimensionalMesh.C + +EXE = $(FOAM_APPBIN)/zeroDimensionalMesh diff --git a/applications/utilities/mesh/generation/zeroDimensionalMesh/Make/options b/applications/utilities/mesh/generation/zeroDimensionalMesh/Make/options new file mode 100644 index 0000000000..d27c95d033 --- /dev/null +++ b/applications/utilities/mesh/generation/zeroDimensionalMesh/Make/options @@ -0,0 +1,7 @@ +EXE_INC = \ + -I$(LIB_SRC)/finiteVolume/lnInclude \ + -I$(LIB_SRC)/meshTools/lnInclude + +EXE_LIBS = \ + -lfiniteVolume \ + -lmeshTools diff --git a/applications/utilities/mesh/generation/zeroDimensionalMesh/zeroDimensionalMesh.C b/applications/utilities/mesh/generation/zeroDimensionalMesh/zeroDimensionalMesh.C new file mode 100644 index 0000000000..938a9ab608 --- /dev/null +++ b/applications/utilities/mesh/generation/zeroDimensionalMesh/zeroDimensionalMesh.C @@ -0,0 +1,58 @@ +/*---------------------------------------------------------------------------*\ + ========= | + \\ / F ield | OpenFOAM: The Open Source CFD Toolbox + \\ / O peration | Website: https://openfoam.org + \\ / A nd | Copyright (C) 2023 OpenFOAM Foundation + \\/ M anipulation | +------------------------------------------------------------------------------- +License + This file is part of OpenFOAM. + + OpenFOAM is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OpenFOAM is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with OpenFOAM. If not, see . + +Application + zeroDimensionalMesh + +Description + Creates a zero-dimensional mesh + +\*---------------------------------------------------------------------------*/ + +#include "argList.H" +#include "zeroDimensionalFvMesh.H" + +using namespace Foam; + +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +int main(int argc, char *argv[]) +{ + argList::noParallel(); + + #include "setRootCase.H" + #include "createTime.H" + + fvMesh mesh(zeroDimensionalFvMesh(runTime)); + + mesh.setInstance(runTime.constant()); + + mesh.write(); + + Info<< "End" << nl << endl; + + return 0; +} + + +// ************************************************************************* // diff --git a/test/multiphase/multiphaseEuler/interfaceComposition/waterAndIsopropanolEvaporation/Allrun b/test/multiphase/multiphaseEuler/interfaceComposition/waterAndIsopropanolEvaporation/Allrun index 9dfacf68e2..6a8d8f5d00 100755 --- a/test/multiphase/multiphaseEuler/interfaceComposition/waterAndIsopropanolEvaporation/Allrun +++ b/test/multiphase/multiphaseEuler/interfaceComposition/waterAndIsopropanolEvaporation/Allrun @@ -9,7 +9,7 @@ cd ${0%/*} || exit 1 gYs="air.gas H2O.gas C3H8O.gas" lYs="H2O.liquid C3H8O.liquid" -runApplication blockMesh +runApplication zeroDimensionalMesh setInertY() { diff --git a/test/multiphase/multiphaseEuler/interfaceComposition/waterAndIsopropanolEvaporation/system/blockMeshDict b/test/multiphase/multiphaseEuler/interfaceComposition/waterAndIsopropanolEvaporation/system/blockMeshDict deleted file mode 100644 index 890969b401..0000000000 --- a/test/multiphase/multiphaseEuler/interfaceComposition/waterAndIsopropanolEvaporation/system/blockMeshDict +++ /dev/null @@ -1,47 +0,0 @@ -/*--------------------------------*- 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; - object blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (-1 -1 -1) - (1 -1 -1) - (1 1 -1) - (-1 1 -1) - - (-1 -1 1) - (1 -1 1) - (1 1 1) - (-1 1 1) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) -); - -defaultPatch -{ - name defaultPatch; - type empty; -} - -boundary -( -); - - -// ************************************************************************* // diff --git a/test/multiphase/multiphaseEuler/interfaceComposition/waterEvaporation/Allrun b/test/multiphase/multiphaseEuler/interfaceComposition/waterEvaporation/Allrun index 9641b9c49d..e9d718c063 100755 --- a/test/multiphase/multiphaseEuler/interfaceComposition/waterEvaporation/Allrun +++ b/test/multiphase/multiphaseEuler/interfaceComposition/waterEvaporation/Allrun @@ -47,7 +47,7 @@ setThermoAndEnergy() constant/physicalProperties.$phase } -runApplication blockMesh +runApplication zeroDimensionalMesh for gY in $gYs do diff --git a/test/multiphase/multiphaseEuler/interfaceComposition/waterEvaporation/system/blockMeshDict b/test/multiphase/multiphaseEuler/interfaceComposition/waterEvaporation/system/blockMeshDict deleted file mode 100644 index 890969b401..0000000000 --- a/test/multiphase/multiphaseEuler/interfaceComposition/waterEvaporation/system/blockMeshDict +++ /dev/null @@ -1,47 +0,0 @@ -/*--------------------------------*- 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; - object blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (-1 -1 -1) - (1 -1 -1) - (1 1 -1) - (-1 1 -1) - - (-1 -1 1) - (1 -1 1) - (1 1 1) - (-1 1 1) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) -); - -defaultPatch -{ - name defaultPatch; - type empty; -} - -boundary -( -); - - -// ************************************************************************* // diff --git a/test/multiphase/multiphaseEuler/populationBalance/binaryBreakup/Allrun b/test/multiphase/multiphaseEuler/populationBalance/binaryBreakup/Allrun index e3a4c6207e..0d95a65458 100755 --- a/test/multiphase/multiphaseEuler/populationBalance/binaryBreakup/Allrun +++ b/test/multiphase/multiphaseEuler/populationBalance/binaryBreakup/Allrun @@ -6,7 +6,7 @@ cd "${0%/*}" || exit 1 # Source run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -runApplication blockMesh +runApplication zeroDimensionalMesh runApplication $(getApplication) ( cd validation && ./createGraphs ) diff --git a/test/multiphase/multiphaseEuler/populationBalance/binaryBreakup/system/blockMeshDict b/test/multiphase/multiphaseEuler/populationBalance/binaryBreakup/system/blockMeshDict deleted file mode 100644 index c922431580..0000000000 --- a/test/multiphase/multiphaseEuler/populationBalance/binaryBreakup/system/blockMeshDict +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- 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 blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (0 0 0) - (1 0 0) - (1 1 0) - (0 1 0) - (0 0 1) - (1 0 1) - (1 1 1) - (0 1 1) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) -); - -boundary -( -); - - -// ************************************************************************* // diff --git a/test/multiphase/multiphaseEuler/populationBalance/breakup/Allrun b/test/multiphase/multiphaseEuler/populationBalance/breakup/Allrun index e3a4c6207e..0d95a65458 100755 --- a/test/multiphase/multiphaseEuler/populationBalance/breakup/Allrun +++ b/test/multiphase/multiphaseEuler/populationBalance/breakup/Allrun @@ -6,7 +6,7 @@ cd "${0%/*}" || exit 1 # Source run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -runApplication blockMesh +runApplication zeroDimensionalMesh runApplication $(getApplication) ( cd validation && ./createGraphs ) diff --git a/test/multiphase/multiphaseEuler/populationBalance/breakup/system/blockMeshDict b/test/multiphase/multiphaseEuler/populationBalance/breakup/system/blockMeshDict deleted file mode 100644 index c922431580..0000000000 --- a/test/multiphase/multiphaseEuler/populationBalance/breakup/system/blockMeshDict +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- 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 blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (0 0 0) - (1 0 0) - (1 1 0) - (0 1 0) - (0 0 1) - (1 0 1) - (1 1 1) - (0 1 1) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) -); - -boundary -( -); - - -// ************************************************************************* // diff --git a/test/multiphase/multiphaseEuler/populationBalance/coalescence/Allrun b/test/multiphase/multiphaseEuler/populationBalance/coalescence/Allrun index e3a4c6207e..0d95a65458 100755 --- a/test/multiphase/multiphaseEuler/populationBalance/coalescence/Allrun +++ b/test/multiphase/multiphaseEuler/populationBalance/coalescence/Allrun @@ -6,7 +6,7 @@ cd "${0%/*}" || exit 1 # Source run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -runApplication blockMesh +runApplication zeroDimensionalMesh runApplication $(getApplication) ( cd validation && ./createGraphs ) diff --git a/test/multiphase/multiphaseEuler/populationBalance/coalescence/system/blockMeshDict b/test/multiphase/multiphaseEuler/populationBalance/coalescence/system/blockMeshDict deleted file mode 100644 index c922431580..0000000000 --- a/test/multiphase/multiphaseEuler/populationBalance/coalescence/system/blockMeshDict +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- 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 blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (0 0 0) - (1 0 0) - (1 1 0) - (0 1 0) - (0 0 1) - (1 0 1) - (1 1 1) - (0 1 1) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) -); - -boundary -( -); - - -// ************************************************************************* // diff --git a/test/multiphase/multiphaseEuler/populationBalance/drift/Allrun b/test/multiphase/multiphaseEuler/populationBalance/drift/Allrun index e3a4c6207e..0d95a65458 100755 --- a/test/multiphase/multiphaseEuler/populationBalance/drift/Allrun +++ b/test/multiphase/multiphaseEuler/populationBalance/drift/Allrun @@ -6,7 +6,7 @@ cd "${0%/*}" || exit 1 # Source run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -runApplication blockMesh +runApplication zeroDimensionalMesh runApplication $(getApplication) ( cd validation && ./createGraphs ) diff --git a/test/multiphase/multiphaseEuler/populationBalance/drift/system/blockMeshDict b/test/multiphase/multiphaseEuler/populationBalance/drift/system/blockMeshDict deleted file mode 100644 index c922431580..0000000000 --- a/test/multiphase/multiphaseEuler/populationBalance/drift/system/blockMeshDict +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- 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 blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (0 0 0) - (1 0 0) - (1 1 0) - (0 1 0) - (0 0 1) - (1 0 1) - (1 1 1) - (0 1 1) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) -); - -boundary -( -); - - -// ************************************************************************* // diff --git a/test/multiphase/multiphaseEuler/populationBalance/negativeDrift/Allrun b/test/multiphase/multiphaseEuler/populationBalance/negativeDrift/Allrun index e3a4c6207e..0d95a65458 100755 --- a/test/multiphase/multiphaseEuler/populationBalance/negativeDrift/Allrun +++ b/test/multiphase/multiphaseEuler/populationBalance/negativeDrift/Allrun @@ -6,7 +6,7 @@ cd "${0%/*}" || exit 1 # Source run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -runApplication blockMesh +runApplication zeroDimensionalMesh runApplication $(getApplication) ( cd validation && ./createGraphs ) diff --git a/test/multiphase/multiphaseEuler/populationBalance/negativeDrift/system/blockMeshDict b/test/multiphase/multiphaseEuler/populationBalance/negativeDrift/system/blockMeshDict deleted file mode 100644 index c922431580..0000000000 --- a/test/multiphase/multiphaseEuler/populationBalance/negativeDrift/system/blockMeshDict +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- 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 blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (0 0 0) - (1 0 0) - (1 1 0) - (0 1 0) - (0 0 1) - (1 0 1) - (1 1 1) - (0 1 1) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) -); - -boundary -( -); - - -// ************************************************************************* // diff --git a/test/multiphase/multiphaseEuler/populationBalance/simultaneousCoalescenceAndBreakup/Allrun b/test/multiphase/multiphaseEuler/populationBalance/simultaneousCoalescenceAndBreakup/Allrun index e3a4c6207e..0d95a65458 100755 --- a/test/multiphase/multiphaseEuler/populationBalance/simultaneousCoalescenceAndBreakup/Allrun +++ b/test/multiphase/multiphaseEuler/populationBalance/simultaneousCoalescenceAndBreakup/Allrun @@ -6,7 +6,7 @@ cd "${0%/*}" || exit 1 # Source run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions -runApplication blockMesh +runApplication zeroDimensionalMesh runApplication $(getApplication) ( cd validation && ./createGraphs ) diff --git a/test/multiphase/multiphaseEuler/populationBalance/simultaneousCoalescenceAndBreakup/system/blockMeshDict b/test/multiphase/multiphaseEuler/populationBalance/simultaneousCoalescenceAndBreakup/system/blockMeshDict deleted file mode 100644 index c922431580..0000000000 --- a/test/multiphase/multiphaseEuler/populationBalance/simultaneousCoalescenceAndBreakup/system/blockMeshDict +++ /dev/null @@ -1,41 +0,0 @@ -/*--------------------------------*- 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 blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (0 0 0) - (1 0 0) - (1 1 0) - (0 1 0) - (0 0 1) - (1 0 1) - (1 1 1) - (0 1 1) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) -); - -boundary -( -); - - -// ************************************************************************* // diff --git a/test/multiphase/multiphaseEuler/thermal/waterEvaporation/Allrun b/test/multiphase/multiphaseEuler/thermal/waterEvaporation/Allrun index 432ac9f2bd..278b426d5c 100755 --- a/test/multiphase/multiphaseEuler/thermal/waterEvaporation/Allrun +++ b/test/multiphase/multiphaseEuler/thermal/waterEvaporation/Allrun @@ -25,7 +25,7 @@ setThermoAndEnergy() constant/physicalProperties.$phase } -runApplication blockMesh +runApplication zeroDimensionalMesh for gHe in $gHes do diff --git a/test/multiphase/multiphaseEuler/thermal/waterEvaporation/system/blockMeshDict b/test/multiphase/multiphaseEuler/thermal/waterEvaporation/system/blockMeshDict deleted file mode 100644 index 890969b401..0000000000 --- a/test/multiphase/multiphaseEuler/thermal/waterEvaporation/system/blockMeshDict +++ /dev/null @@ -1,47 +0,0 @@ -/*--------------------------------*- 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; - object blockMeshDict; -} -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -convertToMeters 1; - -vertices -( - (-1 -1 -1) - (1 -1 -1) - (1 1 -1) - (-1 1 -1) - - (-1 -1 1) - (1 -1 1) - (1 1 1) - (-1 1 1) -); - -blocks -( - hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) -); - -defaultPatch -{ - name defaultPatch; - type empty; -} - -boundary -( -); - - -// ************************************************************************* //