├── .gitignore ├── Allwmake ├── LICENSE ├── README.md ├── applications ├── solvers │ ├── df0DFoam │ │ ├── EEqn.H │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── YEqn.H │ │ ├── correctPhi.H │ │ ├── createFieldRefs.H │ │ ├── createFields.H │ │ ├── df0DFoam.C │ │ ├── pEqn.H │ │ ├── pcEqn.H │ │ └── setRDeltaT.H │ ├── dfHighSpeedFoam │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── centralCourantNo.H │ │ ├── createFields.H │ │ ├── dfHighSpeedFoam.C │ │ ├── directionInterpolate.H │ │ ├── readFluxScheme.H │ │ ├── rhoEEqn.H │ │ ├── rhoEqn.H │ │ ├── rhoUEqn.H │ │ ├── rhoYEqn.H │ │ └── setRDeltaT.H │ ├── dfLowMachFoam │ │ ├── EEqn.H │ │ ├── Make │ │ │ ├── files │ │ │ └── options │ │ ├── UEqn.H │ │ ├── YEqn.H │ │ ├── correctPhi.H │ │ ├── createFields.H │ │ ├── dfLowMachFoam.C │ │ ├── pEqn.H │ │ ├── pcEqn.H │ │ ├── rhoEqn.H │ │ └── setRDeltaT.H │ └── dfSprayFoam │ │ ├── EEqn.H │ │ ├── Make │ │ ├── files │ │ └── options │ │ ├── UEqn.H │ │ ├── YEqn.H │ │ ├── createClouds.H │ │ ├── createFields.H │ │ ├── dfSprayFoam.C │ │ ├── pEqn.H │ │ └── rhoEqn.H └── utilities │ └── flameSpeed │ ├── Make │ ├── files │ └── options │ └── flameSpeed.C ├── bashrc.raw ├── doc ├── detonation.png └── ignition.png ├── examples ├── df0DFoam │ └── zeroD_cubicReactor │ │ └── H2 │ │ ├── cvodeSolver │ │ ├── 0 │ │ │ ├── H2.gz │ │ │ ├── N2.gz │ │ │ ├── O2.gz │ │ │ ├── T.gz │ │ │ ├── U.gz │ │ │ ├── Ydefault.gz │ │ │ ├── alphat.gz │ │ │ └── p.gz │ │ ├── Allclean │ │ ├── Allrun │ │ ├── ES80_H2-7-16.yaml │ │ ├── constant │ │ │ ├── CanteraTorchProperties │ │ │ ├── thermophysicalProperties │ │ │ └── turbulenceProperties │ │ └── system │ │ │ ├── blockMeshDict │ │ │ ├── controlDict │ │ │ ├── fvSchemes │ │ │ ├── fvSolution │ │ │ └── probes │ │ └── torchSolver │ │ ├── 0 │ │ ├── H2.gz │ │ ├── N2.gz │ │ ├── O2.gz │ │ ├── T.gz │ │ ├── U.gz │ │ ├── Ydefault.gz │ │ ├── alphat.gz │ │ └── p.gz │ │ ├── Allclean │ │ ├── Allrun │ │ ├── ES80_H2-7-16.yaml │ │ ├── constant │ │ ├── CanteraTorchProperties │ │ ├── thermophysicalProperties │ │ └── turbulenceProperties │ │ └── system │ │ ├── blockMeshDict │ │ ├── controlDict │ │ ├── fvSchemes │ │ ├── fvSolution │ │ └── probes ├── dfHighSpeedFoam │ └── det_1D_H2_01mm │ │ ├── 0_orig │ │ ├── H2.gz │ │ ├── N2.gz │ │ ├── O2.gz │ │ ├── T.orig.gz │ │ ├── U.orig.gz │ │ ├── Ydefault.gz │ │ └── p.orig.gz │ │ ├── Allclean │ │ ├── Allrun │ │ ├── H2_Li.xml │ │ ├── constant │ │ ├── CanteraTorchProperties │ │ ├── thermophysicalProperties │ │ └── turbulenceProperties │ │ └── system │ │ ├── blockMeshDict │ │ ├── controlDict │ │ ├── decomposeParDict │ │ ├── fvSchemes │ │ ├── fvSolution │ │ ├── sample │ │ └── setFieldsDict ├── dfLowMachFoam │ ├── oneD_freelyPropagation │ │ └── H2 │ │ │ ├── cvodeSolver │ │ │ ├── 0 │ │ │ │ ├── AR.gz │ │ │ │ ├── H.gz │ │ │ │ ├── H2.gz │ │ │ │ ├── H2O.gz │ │ │ │ ├── N2.gz │ │ │ │ ├── O.gz │ │ │ │ ├── O2.gz │ │ │ │ ├── OH.gz │ │ │ │ ├── T.gz │ │ │ │ ├── U.gz │ │ │ │ └── p.gz │ │ │ ├── Allclean │ │ │ ├── Allrun │ │ │ ├── ES80_H2-7-16.yaml │ │ │ ├── constant │ │ │ │ ├── CanteraTorchProperties │ │ │ │ ├── thermophysicalProperties │ │ │ │ └── turbulenceProperties │ │ │ └── system │ │ │ │ ├── blockMeshDict │ │ │ │ ├── controlDict │ │ │ │ ├── decomposeParDict │ │ │ │ ├── fvSchemes │ │ │ │ └── fvSolution │ │ │ └── torchSolver │ │ │ ├── 0 │ │ │ ├── AR.gz │ │ │ ├── H.gz │ │ │ ├── H2.gz │ │ │ ├── H2O.gz │ │ │ ├── N2.gz │ │ │ ├── O.gz │ │ │ ├── O2.gz │ │ │ ├── OH.gz │ │ │ ├── T.gz │ │ │ ├── U.gz │ │ │ └── p.gz │ │ │ ├── Allclean │ │ │ ├── Allrun │ │ │ ├── ES80_H2-7-16.yaml │ │ │ ├── constant │ │ │ ├── CanteraTorchProperties │ │ │ ├── thermophysicalProperties │ │ │ └── turbulenceProperties │ │ │ └── system │ │ │ ├── blockMeshDict │ │ │ ├── controlDict │ │ │ ├── decomposeParDict │ │ │ ├── fvSchemes │ │ │ └── fvSolution │ ├── threeD_reactingTGV │ │ └── H2 │ │ │ ├── cvodeSolver │ │ │ ├── 0 │ │ │ │ ├── .DS_Store │ │ │ │ ├── H.gz │ │ │ │ ├── H2.gz │ │ │ │ ├── H2O.gz │ │ │ │ ├── H2O2.gz │ │ │ │ ├── HO2.gz │ │ │ │ ├── N2.gz │ │ │ │ ├── O.gz │ │ │ │ ├── O2.gz │ │ │ │ ├── OH.gz │ │ │ │ ├── T.gz │ │ │ │ ├── U.gz │ │ │ │ └── p.gz │ │ │ ├── Allclean │ │ │ ├── Allrun │ │ │ ├── ES80_H2-7-16.yaml │ │ │ ├── constant │ │ │ │ ├── CanteraTorchProperties │ │ │ │ ├── thermophysicalProperties │ │ │ │ └── turbulenceProperties │ │ │ └── system │ │ │ │ ├── blockMeshDict │ │ │ │ ├── controlDict │ │ │ │ ├── decomposeParDict │ │ │ │ ├── funkySetFieldsDict │ │ │ │ ├── fvSchemes │ │ │ │ └── fvSolution │ │ │ └── torchSolver │ │ │ ├── 0 │ │ │ ├── .DS_Store │ │ │ ├── H.gz │ │ │ ├── H2.gz │ │ │ ├── H2O.gz │ │ │ ├── H2O2.gz │ │ │ ├── HO2.gz │ │ │ ├── N2.gz │ │ │ ├── O.gz │ │ │ ├── O2.gz │ │ │ ├── OH.gz │ │ │ ├── T.gz │ │ │ ├── U.gz │ │ │ └── p.gz │ │ │ ├── Allclean │ │ │ ├── Allrun │ │ │ ├── ES80_H2-7-16.yaml │ │ │ ├── constant │ │ │ ├── CanteraTorchProperties │ │ │ ├── thermophysicalProperties │ │ │ └── turbulenceProperties │ │ │ └── system │ │ │ ├── blockMeshDict │ │ │ ├── controlDict │ │ │ ├── decomposeParDict │ │ │ ├── funkySetFieldsDict │ │ │ ├── fvSchemes │ │ │ └── fvSolution │ └── twoD_tripleFlame │ │ └── H2 │ │ ├── cvodeSolver │ │ ├── 0 │ │ │ ├── H2.gz │ │ │ ├── N2.gz │ │ │ ├── O2.gz │ │ │ ├── T.gz │ │ │ ├── U.gz │ │ │ ├── Ydefault.gz │ │ │ └── p.gz │ │ ├── Allclean │ │ ├── Allrun │ │ ├── ES80_H2-7-16.yaml │ │ ├── constant │ │ │ ├── CanteraTorchProperties │ │ │ ├── thermophysicalProperties │ │ │ └── turbulenceProperties │ │ └── system │ │ │ ├── blockMeshDict │ │ │ ├── controlDict │ │ │ ├── decomposeParDict │ │ │ ├── funkySetBoundaryDict │ │ │ ├── funkySetFieldsDict │ │ │ ├── fvSchemes │ │ │ └── fvSolution │ │ └── torchSolver │ │ ├── 0 │ │ ├── H2 │ │ ├── N2 │ │ ├── O2 │ │ ├── T │ │ ├── U │ │ ├── Ydefault │ │ └── p │ │ ├── Allclean │ │ ├── Allrun │ │ ├── ES80_H2-7-16.yaml │ │ ├── constant │ │ ├── CanteraTorchProperties │ │ ├── thermophysicalProperties │ │ └── turbulenceProperties │ │ └── system │ │ ├── blockMeshDict │ │ ├── controlDict │ │ ├── decomposeParDict │ │ ├── funkySetBoundaryDict │ │ ├── funkySetFieldsDict │ │ ├── fvSchemes │ │ └── fvSolution └── dfSprayFoam │ └── aachenBomb │ ├── 0 │ ├── N2 │ ├── O2 │ ├── T │ ├── U │ ├── Ydefault │ ├── alphat │ ├── epsilon │ ├── k │ ├── nut │ └── p │ ├── Allclean │ ├── Allrun │ ├── C7_oneStep.yaml │ ├── constant │ ├── CanteraTorchProperties │ ├── g │ ├── sprayCloudProperties │ ├── thermophysicalProperties │ └── turbulenceProperties │ └── system │ ├── blockMeshDict │ ├── controlDict │ ├── decomposeParDict │ ├── fvSchemes │ └── fvSolution ├── install.sh └── src ├── CanteraMixture ├── CanteraMixture.C ├── CanteraMixture.H ├── Make │ ├── files │ └── options └── makeThermos.C ├── TurbulenceModels └── compressible │ └── Make │ ├── files │ └── options ├── design.UML ├── design.svg ├── dfChemistryModel ├── Make │ ├── files │ └── options ├── dfChemistryModel.C ├── dfChemistryModel.H ├── loadBalancing │ ├── ChemistryLoad.C │ ├── ChemistryLoad.H │ ├── ChemistryProblem.C │ ├── ChemistryProblem.H │ ├── ChemistrySolution.C │ ├── ChemistrySolution.H │ ├── LoadBalancer.C │ ├── LoadBalancer.H │ ├── LoadBalancerBase.C │ ├── LoadBalancerBase.H │ ├── RecvBuffer.C │ ├── RecvBuffer.H │ ├── SendBuffer.C │ ├── SendBuffer.H │ ├── algorithms_DLB.C │ ├── algorithms_DLB.H │ ├── runtime_assert.C │ └── runtime_assert.H └── makeDfChemistryModels.C ├── lagrangian ├── Allwmake ├── intermediate │ ├── Make │ │ ├── files │ │ └── options │ ├── clouds │ │ ├── Templates │ │ │ ├── CollidingCloud │ │ │ │ ├── CollidingCloud.C │ │ │ │ ├── CollidingCloud.H │ │ │ │ └── CollidingCloudI.H │ │ │ ├── KinematicCloud │ │ │ │ ├── KinematicCloud.C │ │ │ │ ├── KinematicCloud.H │ │ │ │ ├── KinematicCloudI.H │ │ │ │ └── cloudSolution │ │ │ │ │ ├── cloudSolution.C │ │ │ │ │ ├── cloudSolution.H │ │ │ │ │ └── cloudSolutionI.H │ │ │ ├── MPPICCloud │ │ │ │ ├── MPPICCloud.C │ │ │ │ ├── MPPICCloud.H │ │ │ │ └── MPPICCloudI.H │ │ │ ├── ReactingCloud │ │ │ │ ├── ReactingCloud.C │ │ │ │ ├── ReactingCloud.H │ │ │ │ └── ReactingCloudI.H │ │ │ ├── ReactingMultiphaseCloud │ │ │ │ ├── ReactingMultiphaseCloud.C │ │ │ │ ├── ReactingMultiphaseCloud.H │ │ │ │ └── ReactingMultiphaseCloudI.H │ │ │ └── ThermoCloud │ │ │ │ ├── ThermoCloud.C │ │ │ │ ├── ThermoCloud.H │ │ │ │ └── ThermoCloudI.H │ │ ├── baseClasses │ │ │ ├── kinematicCloud │ │ │ │ ├── kinematicCloud.C │ │ │ │ └── kinematicCloud.H │ │ │ ├── reactingCloud │ │ │ │ ├── reactingCloud.C │ │ │ │ └── reactingCloud.H │ │ │ ├── reactingMultiphaseCloud │ │ │ │ ├── reactingMultiphaseCloud.C │ │ │ │ └── reactingMultiphaseCloud.H │ │ │ └── thermoCloud │ │ │ │ ├── thermoCloud.C │ │ │ │ └── thermoCloud.H │ │ └── derived │ │ │ ├── basicKinematicCloud │ │ │ └── basicKinematicCloud.H │ │ │ ├── basicKinematicCollidingCloud │ │ │ └── basicKinematicCollidingCloud.H │ │ │ ├── basicKinematicMPPICCloud │ │ │ └── basicKinematicMPPICCloud.H │ │ │ ├── basicReactingCloud │ │ │ └── basicReactingCloud.H │ │ │ ├── basicReactingMultiphaseCloud │ │ │ └── basicReactingMultiphaseCloud.H │ │ │ └── basicThermoCloud │ │ │ └── basicThermoCloud.H │ ├── parcels │ │ ├── Templates │ │ │ ├── CollidingParcel │ │ │ │ ├── CollidingParcel.C │ │ │ │ ├── CollidingParcel.H │ │ │ │ ├── CollidingParcelI.H │ │ │ │ ├── CollidingParcelIO.C │ │ │ │ └── CollisionRecordList │ │ │ │ │ ├── CollisionRecordList.C │ │ │ │ │ ├── CollisionRecordList.H │ │ │ │ │ ├── CollisionRecordListI.H │ │ │ │ │ ├── PairCollisionRecord │ │ │ │ │ ├── PairCollisionRecord.C │ │ │ │ │ ├── PairCollisionRecord.H │ │ │ │ │ ├── PairCollisionRecordI.H │ │ │ │ │ └── PairCollisionRecordIO.C │ │ │ │ │ └── WallCollisionRecord │ │ │ │ │ ├── WallCollisionRecord.C │ │ │ │ │ ├── WallCollisionRecord.H │ │ │ │ │ ├── WallCollisionRecordI.H │ │ │ │ │ └── WallCollisionRecordIO.C │ │ │ ├── KinematicParcel │ │ │ │ ├── KinematicParcel.C │ │ │ │ ├── KinematicParcel.H │ │ │ │ ├── KinematicParcelI.H │ │ │ │ ├── KinematicParcelIO.C │ │ │ │ └── KinematicParcelTrackingDataI.H │ │ │ ├── MPPICParcel │ │ │ │ ├── MPPICParcel.C │ │ │ │ ├── MPPICParcel.H │ │ │ │ ├── MPPICParcelI.H │ │ │ │ ├── MPPICParcelIO.C │ │ │ │ └── MPPICParcelTrackingDataI.H │ │ │ ├── ReactingMultiphaseParcel │ │ │ │ ├── ReactingMultiphaseParcel.C │ │ │ │ ├── ReactingMultiphaseParcel.H │ │ │ │ ├── ReactingMultiphaseParcelI.H │ │ │ │ └── ReactingMultiphaseParcelIO.C │ │ │ ├── ReactingParcel │ │ │ │ ├── ReactingParcel.C │ │ │ │ ├── ReactingParcel.H │ │ │ │ ├── ReactingParcelI.H │ │ │ │ ├── ReactingParcelIO.C │ │ │ │ └── ReactingParcelTrackingDataI.H │ │ │ └── ThermoParcel │ │ │ │ ├── ThermoParcel.C │ │ │ │ ├── ThermoParcel.H │ │ │ │ ├── ThermoParcelI.H │ │ │ │ ├── ThermoParcelIO.C │ │ │ │ └── ThermoParcelTrackingDataI.H │ │ ├── derived │ │ │ ├── basicKinematicCollidingParcel │ │ │ │ ├── basicKinematicCollidingParcel.H │ │ │ │ ├── defineBasicKinematicCollidingParcel.C │ │ │ │ └── makeBasicKinematicCollidingParcelSubmodels.C │ │ │ ├── basicKinematicMPPICParcel │ │ │ │ ├── basicKinematicMPPICParcel.H │ │ │ │ ├── defineBasicKinematicMPPICParcel.C │ │ │ │ └── makeBasicKinematicMPPICParcelSubmodels.C │ │ │ ├── basicKinematicParcel │ │ │ │ ├── basicKinematicParcel.H │ │ │ │ ├── defineBasicKinematicParcel.C │ │ │ │ └── makeBasicKinematicParcelSubmodels.C │ │ │ ├── basicReactingMultiphaseParcel │ │ │ │ ├── basicReactingMultiphaseParcel.H │ │ │ │ ├── defineBasicReactingMultiphaseParcel.C │ │ │ │ └── makeBasicReactingMultiphaseParcelSubmodels.C │ │ │ ├── basicReactingParcel │ │ │ │ ├── basicReactingParcel.H │ │ │ │ ├── defineBasicReactingParcel.C │ │ │ │ └── makeBasicReactingParcelSubmodels.C │ │ │ └── basicThermoParcel │ │ │ │ ├── basicThermoParcel.H │ │ │ │ ├── defineBasicThermoParcel.C │ │ │ │ └── makeBasicThermoParcelSubmodels.C │ │ └── include │ │ │ ├── makeMPPICParcelDampingModels.H │ │ │ ├── makeMPPICParcelIsotropyModels.H │ │ │ ├── makeMPPICParcelPackingModels.H │ │ │ ├── makeParcelCloudFunctionObjects.H │ │ │ ├── makeParcelCollisionModels.H │ │ │ ├── makeParcelDispersionModels.H │ │ │ ├── makeParcelForces.H │ │ │ ├── makeParcelHeatTransferModels.H │ │ │ ├── makeParcelInjectionModels.H │ │ │ ├── makeParcelPatchInteractionModels.H │ │ │ ├── makeParcelStochasticCollisionModels.H │ │ │ ├── makeParcelSurfaceFilmModels.H │ │ │ ├── makeReactingMultiphaseParcelCompositionModels.H │ │ │ ├── makeReactingMultiphaseParcelDevolatilisationModels.H │ │ │ ├── makeReactingMultiphaseParcelInjectionModels.H │ │ │ ├── makeReactingMultiphaseParcelStochasticCollisionModels.H │ │ │ ├── makeReactingMultiphaseParcelSurfaceReactionModels.H │ │ │ ├── makeReactingParcelCompositionModels.H │ │ │ ├── makeReactingParcelInjectionModels.H │ │ │ ├── makeReactingParcelPhaseChangeModels.H │ │ │ ├── makeReactingParcelSurfaceFilmModels.H │ │ │ └── makeThermoParcelSurfaceFilmModels.H │ └── submodels │ │ ├── Reacting │ │ ├── CompositionModel │ │ │ ├── CompositionModel │ │ │ │ ├── CompositionModel.C │ │ │ │ ├── CompositionModel.H │ │ │ │ └── CompositionModelNew.C │ │ │ ├── NoComposition │ │ │ │ ├── NoComposition.C │ │ │ │ └── NoComposition.H │ │ │ ├── SingleMixtureFraction │ │ │ │ ├── SingleMixtureFraction.C │ │ │ │ └── SingleMixtureFraction.H │ │ │ └── SinglePhaseMixture │ │ │ │ ├── SinglePhaseMixture.C │ │ │ │ └── SinglePhaseMixture.H │ │ └── PhaseChangeModel │ │ │ ├── LiquidEvaporation │ │ │ ├── LiquidEvaporation.C │ │ │ └── LiquidEvaporation.H │ │ │ └── LiquidEvaporationBoil │ │ │ ├── LiquidEvaporationBoil.C │ │ │ └── LiquidEvaporationBoil.H │ │ └── ReactingMultiphase │ │ └── DevolatilisationModel │ │ └── SingleKineticRateDevolatilisation │ │ ├── SingleKineticRateDevolatilisation.C │ │ └── SingleKineticRateDevolatilisation.H ├── spray │ ├── Make │ │ ├── files │ │ └── options │ ├── clouds │ │ ├── Templates │ │ │ └── SprayCloud │ │ │ │ ├── SprayCloud.C │ │ │ │ ├── SprayCloud.H │ │ │ │ └── SprayCloudI.H │ │ ├── baseClasses │ │ │ └── sprayCloud │ │ │ │ ├── sprayCloud.C │ │ │ │ └── sprayCloud.H │ │ └── derived │ │ │ └── basicSprayCloud │ │ │ └── basicSprayCloud.H │ └── parcels │ │ ├── Templates │ │ └── SprayParcel │ │ │ ├── SprayParcel.C │ │ │ ├── SprayParcel.H │ │ │ ├── SprayParcelI.H │ │ │ └── SprayParcelIO.C │ │ ├── derived │ │ └── basicSprayParcel │ │ │ ├── basicSprayParcel.H │ │ │ ├── defineBasicSprayParcel.C │ │ │ └── makeBasicSprayParcelSubmodels.C │ │ └── include │ │ ├── makeSprayParcelAtomizationModels.H │ │ ├── makeSprayParcelBreakupModels.H │ │ ├── makeSprayParcelInjectionModels.H │ │ └── makeSprayParcelStochasticCollisionModels.H └── turbulence │ └── Make │ ├── files │ └── options ├── regionModels └── surfaceFilmModels │ └── Make │ ├── files │ └── options └── thermophysicalModels ├── SLGThermo ├── Make │ ├── files │ └── options └── SLGThermo │ ├── SLGThermo.C │ └── SLGThermo.H ├── basic └── Make │ ├── files │ └── options └── thermophysicalProperties ├── Make ├── files └── options ├── liquidProperties └── liquidMixtureProperties │ └── liquidMixtureProperties.C └── solidProperties ├── solidMixtureProperties ├── solidMixtureProperties.C └── solidMixtureProperties.H └── solidProperties ├── solidProperties.C ├── solidProperties.H ├── solidPropertiesI.H └── solidPropertiesNew.C /.gitignore: -------------------------------------------------------------------------------- 1 | # git-ls-files --others --exclude-from=.git/info/exclude 2 | # Lines that start with '#' are comments. 3 | 4 | # Editor and misc backup files - anywhere 5 | *~ 6 | .*~ 7 | .*.swp 8 | *.bak 9 | *.bak[0-9][0-9] 10 | \#*\# 11 | 12 | # File-browser settings - anywhere 13 | .directory 14 | 15 | # CVS recovered versions - anywhere 16 | .#* 17 | 18 | # Objects and archives - anywhere 19 | *.[oa] 20 | *.la 21 | *.so 22 | *.so.2 23 | 24 | # Derived files 25 | lex.yy.c 26 | 27 | # Dependency files - anywhere 28 | *.dep 29 | 30 | # lnInclude (symlink) directories - anywhere 31 | lnInclude 32 | 33 | # Build directories - anywhere 34 | linux*Clang*/ 35 | linux*Gcc*/ 36 | linux*Icc*/ 37 | solaris*Gcc*/ 38 | SunOS*Gcc*/ 39 | platforms/ 40 | 41 | # Source packages - anywhere 42 | *.tar.bz2 43 | #*.tar.gz 44 | *.tar 45 | *.tgz 46 | *.gtgz 47 | *.pt 48 | 49 | cantera_build/ 50 | log.* 51 | *.log 52 | *log 53 | dynamicCode/ 54 | postProcessing/ 55 | *.out 56 | *.json 57 | processor*/ 58 | chemkin/ 59 | *.foam 60 | 0.*/ 61 | bashrc 62 | src_orig 63 | libtorch/ 64 | polyMesh/ 65 | thirdParty 66 | libtorch*.zip* 67 | -------------------------------------------------------------------------------- /Allwmake: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Parse arguments for library compilation 5 | . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments 6 | 7 | wmake src/thermophysicalModels/thermophysicalProperties 8 | wmake src/thermophysicalModels/basic 9 | wmake src/CanteraMixture 10 | wmake src/thermophysicalModels/SLGThermo 11 | wmake src/dfChemistryModel 12 | wmake src/TurbulenceModels/compressible 13 | wmake src/regionModels/surfaceFilmModels 14 | src/lagrangian/Allwmake $targetType $* 15 | 16 | wmake applications/solvers/df0DFoam 17 | wmake applications/solvers/dfLowMachFoam 18 | wmake applications/solvers/dfHighSpeedFoam 19 | wmake applications/solvers/dfSprayFoam 20 | 21 | wmake applications/utilities/flameSpeed 22 | -------------------------------------------------------------------------------- /applications/solvers/df0DFoam/EEqn.H: -------------------------------------------------------------------------------- 1 | { 2 | volScalarField& he = thermo.he(); 3 | if (constProp == "volume") he[0] = u0 + p[0]/rho[0]; 4 | chemistry.correctThermo(); 5 | } 6 | -------------------------------------------------------------------------------- /applications/solvers/df0DFoam/Make/files: -------------------------------------------------------------------------------- 1 | df0DFoam.C 2 | 3 | EXE = $(FOAM_USER_APPBIN)/df0DFoam 4 | -------------------------------------------------------------------------------- /applications/solvers/df0DFoam/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = -std=c++14 \ 2 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 3 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 4 | -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ 5 | -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ 6 | -I$(LIB_SRC)/finiteVolume/cfdTools \ 7 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 8 | -I$(LIB_SRC)/meshTools/lnInclude \ 9 | -I$(LIB_SRC)/sampling/lnInclude \ 10 | -I$(LIB_SRC)/dynamicFvMesh/lnInclude \ 11 | -I$(DF_SRC)/CanteraMixture/lnInclude \ 12 | -I$(DF_SRC)/dfChemistryModel \ 13 | -I$(CANTERA_ROOT)/include \ 14 | -I$(TORCH_ROOT)/include \ 15 | -I$(TORCH_ROOT)/include/torch/csrc/api/include 16 | 17 | EXE_LIBS = \ 18 | -lcompressibleTransportModels \ 19 | -lturbulenceModels \ 20 | -lfiniteVolume \ 21 | -ldynamicFvMesh \ 22 | -ltopoChangerFvMesh \ 23 | -lmeshTools \ 24 | -lsampling \ 25 | -L$(FOAM_USER_LIBBIN) \ 26 | -ldfFluidThermophysicalModels \ 27 | -ldfCompressibleTurbulenceModels \ 28 | -lCanteraMixture \ 29 | -ldfChemistryModel \ 30 | $(CANTERA_ROOT)/lib/libcantera.so \ 31 | $(TORCH_ROOT)/lib/libtorch.so \ 32 | $(TORCH_ROOT)/lib/libc10.so \ 33 | -rdynamic \ 34 | -lpthread 35 | -------------------------------------------------------------------------------- /applications/solvers/df0DFoam/YEqn.H: -------------------------------------------------------------------------------- 1 | tmp> mvConvection 2 | ( 3 | fv::convectionScheme::New 4 | ( 5 | mesh, 6 | fields, 7 | phi, 8 | mesh.divScheme("div(phi,Yi_h)") 9 | ) 10 | ); 11 | 12 | { 13 | chemistry.solve(mesh.time().deltaTValue()); 14 | 15 | volScalarField Yt(0.0*Y[0]); 16 | 17 | forAll(Y, i) 18 | { 19 | if (i != inertIndex) 20 | { 21 | volScalarField& Yi = Y[i]; 22 | 23 | fvScalarMatrix YiEqn 24 | ( 25 | fvm::ddt(rho, Yi) 26 | == 27 | chemistry.RR(i) 28 | //+ fvOptions(rho, Yi) 29 | ); 30 | 31 | YiEqn.relax(); 32 | 33 | //fvOptions.constrain(YiEqn); 34 | 35 | YiEqn.solve("Yi"); 36 | 37 | //fvOptions.correct(Yi); 38 | 39 | Yi.max(0.0); 40 | Yt += Yi; 41 | } 42 | } 43 | 44 | Y[inertIndex] = scalar(1) - Yt; 45 | Y[inertIndex].max(0.0); 46 | } 47 | -------------------------------------------------------------------------------- /applications/solvers/df0DFoam/correctPhi.H: -------------------------------------------------------------------------------- 1 | CorrectPhi 2 | ( 3 | U, 4 | phi, 5 | p, 6 | rho, 7 | psi, 8 | dimensionedScalar("rAUf", dimTime, 1), 9 | divrhoU(), 10 | pimple, 11 | true 12 | ); 13 | -------------------------------------------------------------------------------- /applications/solvers/df0DFoam/createFieldRefs.H: -------------------------------------------------------------------------------- 1 | const volScalarField& psi = thermo.psi(); 2 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/Make/files: -------------------------------------------------------------------------------- 1 | dfHighSpeedFoam.C 2 | 3 | EXE = $(FOAM_USER_APPBIN)/dfHighSpeedFoam 4 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = -std=c++14 \ 2 | -I$(FOAM_APP)/solvers/compressible/rhoCentralFoam/BCs/lnInclude \ 3 | -I$(LIB_SRC)/finiteVolume/cfdTools \ 4 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 5 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 6 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 7 | -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ 8 | -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ 9 | -I$(LIB_SRC)/sampling/lnInclude \ 10 | -I$(LIB_SRC)/dynamicFvMesh/lnInclude \ 11 | -I$(LIB_SRC)/meshTools/lnInclude \ 12 | -I$(DF_SRC)/CanteraMixture/lnInclude \ 13 | -I$(DF_SRC)/dfChemistryModel \ 14 | -I$(CANTERA_ROOT)/include \ 15 | -I$(TORCH_ROOT)/include \ 16 | -I$(TORCH_ROOT)/include/torch/csrc/api/include 17 | 18 | EXE_LIBS = \ 19 | -lfiniteVolume \ 20 | -lcompressibleTransportModels \ 21 | -lturbulenceModels \ 22 | -ldynamicFvMesh \ 23 | -ltopoChangerFvMesh \ 24 | -lmeshTools \ 25 | -L$(FOAM_USER_LIBBIN) \ 26 | -ldfFluidThermophysicalModels \ 27 | -ldfCompressibleTurbulenceModels \ 28 | -lCanteraMixture \ 29 | -ldfChemistryModel \ 30 | $(CANTERA_ROOT)/lib/libcantera.so \ 31 | $(TORCH_ROOT)/lib/libtorch.so \ 32 | $(TORCH_ROOT)/lib/libc10.so \ 33 | -rdynamic \ 34 | -lpthread 35 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/centralCourantNo.H: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | Global 25 | centralCourantNo 26 | 27 | Description 28 | Calculates the mean and maximum wave speed based Courant Numbers. 29 | 30 | \*---------------------------------------------------------------------------*/ 31 | 32 | if (mesh.nInternalFaces()) 33 | { 34 | scalarField sumAmaxSf(fvc::surfaceSum(amaxSf)().primitiveField()); 35 | 36 | CoNum = 0.5*gMax(sumAmaxSf/mesh.V().field())*runTime.deltaTValue(); 37 | 38 | meanCoNum = 39 | 0.5*(gSum(sumAmaxSf)/gSum(mesh.V().field()))*runTime.deltaTValue(); 40 | } 41 | 42 | Info<< "Mean and max Courant Numbers = " 43 | << meanCoNum << " " << CoNum << endl; 44 | 45 | // ************************************************************************* // 46 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/directionInterpolate.H: -------------------------------------------------------------------------------- 1 | namespace Foam 2 | { 3 | 4 | //- Interpolate field vf according to direction dir 5 | template 6 | tmp> interpolate 7 | ( 8 | const GeometricField& vf, 9 | const surfaceScalarField& dir, 10 | const word& reconFieldName = word::null 11 | ) 12 | { 13 | tmp> tsf 14 | ( 15 | fvc::interpolate 16 | ( 17 | vf, 18 | dir, 19 | "reconstruct(" 20 | + (reconFieldName != word::null ? reconFieldName : vf.name()) 21 | + ')' 22 | ) 23 | ); 24 | 25 | GeometricField& sf = tsf.ref(); 26 | 27 | sf.rename(vf.name() + '_' + dir.name()); 28 | 29 | return tsf; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/readFluxScheme.H: -------------------------------------------------------------------------------- 1 | word fluxScheme("Kurganov"); 2 | if (mesh.schemesDict().readIfPresent("fluxScheme", fluxScheme)) 3 | { 4 | if ((fluxScheme == "Tadmor") || (fluxScheme == "Kurganov")) 5 | { 6 | Info<< "fluxScheme: " << fluxScheme << endl; 7 | } 8 | else 9 | { 10 | FatalErrorInFunction 11 | << "fluxScheme: " << fluxScheme 12 | << " is not a valid choice. " 13 | << "Options are: Tadmor, Kurganov" 14 | << abort(FatalError); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/rhoEEqn.H: -------------------------------------------------------------------------------- 1 | surfaceScalarField sigmaDotU 2 | ( 3 | "sigmaDotU", 4 | ( 5 | fvc::interpolate(turbulence->muEff())*mesh.magSf()*fvc::snGrad(U) 6 | + (mesh.Sf() & fvc::interpolate(tauMC)) 7 | ) 8 | & (a_pos*U_pos + a_neg*U_neg) 9 | ); 10 | 11 | solve 12 | ( 13 | fvm::ddt(rhoE) 14 | + fvc::div(phiEp) 15 | - fvc::div(sigmaDotU) 16 | ); 17 | 18 | e = rhoE/rho - 0.5*magSqr(U); 19 | e.correctBoundaryConditions(); 20 | 21 | ha = e + p/rho; 22 | chemistry.correctThermo(); // before this, we must update ha = e + p/rho 23 | 24 | rhoE.boundaryFieldRef() == rho.boundaryField()*(e.boundaryField() + 0.5*magSqr(U.boundaryField())); 25 | 26 | if (!inviscid) 27 | { 28 | fvScalarMatrix eEqn 29 | ( 30 | fvm::ddt(rho, e) - fvc::ddt(rho, e) 31 | - fvc::laplacian(turbulence->alphaEff(), e) 32 | ); 33 | eEqn.solve("e"); 34 | 35 | ha = e + p/rho; 36 | chemistry.correctThermo(); 37 | rhoE = rho*(e + 0.5*magSqr(U)); 38 | } 39 | 40 | Info<< "min/max(T) = " 41 | << min(T).value() << ", " << max(T).value() << endl; 42 | 43 | p.ref() = rho()/psi(); 44 | p.correctBoundaryConditions(); 45 | rho.boundaryFieldRef() == psi.boundaryField()*p.boundaryField(); 46 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/rhoEqn.H: -------------------------------------------------------------------------------- 1 | solve 2 | ( 3 | fvm::ddt(rho) 4 | + fvc::div(phi) 5 | ); 6 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/rhoUEqn.H: -------------------------------------------------------------------------------- 1 | //same with rhoReactingFoam 2 | solve 3 | ( 4 | fvm::ddt(rhoU) 5 | + fvc::div(phiUp) 6 | ); 7 | 8 | U.ref() = rhoU()/rho(); 9 | U.correctBoundaryConditions(); 10 | rhoU.boundaryFieldRef() == rho.boundaryField()*U.boundaryField(); 11 | 12 | if (!inviscid) 13 | { 14 | solve 15 | ( 16 | fvm::ddt(rho, U) - fvc::ddt(rho, U) 17 | - fvm::laplacian(turbulence->muEff(), U) 18 | - fvc::div(tauMC) 19 | ); 20 | rhoU = rho*U; 21 | } 22 | 23 | Info << "\nmin / max mag(U) ; " << gMin(mag(U)()()) << " / " << gMax(mag(U)()()) << nl << endl; 24 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/rhoYEqn.H: -------------------------------------------------------------------------------- 1 | tmp> mvConvection 2 | ( 3 | fv::convectionScheme::New 4 | ( 5 | mesh, 6 | fields, 7 | phi, 8 | mesh.divScheme("div(phi,Yi_h)") 9 | ) 10 | ); 11 | 12 | { 13 | chemistry.solve(mesh.time().deltaTValue()); 14 | 15 | volScalarField Yt(0*Y[0]); 16 | 17 | forAll(Y, i) 18 | { 19 | if (i != inertIndex) 20 | { 21 | volScalarField& Yi = Y[i]; 22 | 23 | fvScalarMatrix YiEqn 24 | ( 25 | fvm::ddt(rho, Yi) 26 | + mvConvection->fvmDiv(phi, Yi) 27 | == 28 | chemistry.RR(i) 29 | //+ fvOptions(rho, Yi) 30 | ); 31 | 32 | if (!inviscid) 33 | { 34 | YiEqn -= fvm::laplacian(turbulence->muEff(), Yi); 35 | } 36 | 37 | YiEqn.relax(); 38 | 39 | //fvOptions.constrain(YiEqn); 40 | 41 | YiEqn.solve("Yi"); 42 | 43 | //fvOptions.correct(Yi); 44 | 45 | Yi.max(0.0); 46 | Yt += Yi; 47 | } 48 | } 49 | 50 | Y[inertIndex] = scalar(1) - Yt; 51 | Y[inertIndex].max(0.0); 52 | } 53 | -------------------------------------------------------------------------------- /applications/solvers/dfHighSpeedFoam/setRDeltaT.H: -------------------------------------------------------------------------------- 1 | //same with rhoCentralFoam 2 | { 3 | volScalarField& rDeltaT = trDeltaT.ref(); 4 | 5 | scalar rDeltaTSmoothingCoeff 6 | ( 7 | runTime.controlDict().lookupOrDefault 8 | ( 9 | "rDeltaTSmoothingCoeff", 10 | 0.02 11 | ) 12 | ); 13 | 14 | // Set the reciprocal time-step from the local Courant number 15 | rDeltaT.ref() = max 16 | ( 17 | 1/dimensionedScalar(dimTime, maxDeltaT), 18 | fvc::surfaceSum(amaxSf)()() 19 | /((2*maxCo)*mesh.V()) 20 | ); 21 | 22 | // Update tho boundary values of the reciprocal time-step 23 | rDeltaT.correctBoundaryConditions(); 24 | 25 | fvc::smooth(rDeltaT, rDeltaTSmoothingCoeff); 26 | 27 | Info<< "Flow time scale min/max = " 28 | << gMin(1/rDeltaT.primitiveField()) 29 | << ", " << gMax(1/rDeltaT.primitiveField()) << endl; 30 | } 31 | -------------------------------------------------------------------------------- /applications/solvers/dfLowMachFoam/EEqn.H: -------------------------------------------------------------------------------- 1 | { 2 | volScalarField& he = thermo.he(); 3 | 4 | fvScalarMatrix EEqn 5 | ( 6 | fvm::ddt(rho, he) + fvm::div(phi, he) 7 | + fvc::ddt(rho, K) + fvc::div(phi, K) 8 | - dpdt 9 | - fvm::laplacian(turbulence->alphaEff(), he) 10 | + diffAlphaD 11 | == 12 | fvc::div(hDiffCorrFlux) 13 | ); 14 | 15 | EEqn.relax(); 16 | 17 | EEqn.solve(); 18 | } 19 | -------------------------------------------------------------------------------- /applications/solvers/dfLowMachFoam/Make/files: -------------------------------------------------------------------------------- 1 | dfLowMachFoam.C 2 | 3 | EXE = $(FOAM_USER_APPBIN)/dfLowMachFoam 4 | -------------------------------------------------------------------------------- /applications/solvers/dfLowMachFoam/Make/options: -------------------------------------------------------------------------------- 1 | -include $(GENERAL_RULES)/mplibType 2 | 3 | EXE_INC = -std=c++14 \ 4 | $(PFLAGS) $(PINC) \ 5 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 6 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 7 | -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ 8 | -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ 9 | -I$(LIB_SRC)/finiteVolume/cfdTools \ 10 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 11 | -I$(LIB_SRC)/meshTools/lnInclude \ 12 | -I$(LIB_SRC)/sampling/lnInclude \ 13 | -I$(LIB_SRC)/dynamicFvMesh/lnInclude \ 14 | -I$(LIB_SRC)/Pstream/mpi \ 15 | -I$(DF_SRC)/CanteraMixture/lnInclude \ 16 | -I$(DF_SRC)/dfChemistryModel \ 17 | -I$(CANTERA_ROOT)/include \ 18 | -I$(TORCH_ROOT)/include \ 19 | -I$(TORCH_ROOT)/include/torch/csrc/api/include 20 | 21 | EXE_LIBS = \ 22 | -lcompressibleTransportModels \ 23 | -lturbulenceModels \ 24 | -lfiniteVolume \ 25 | -lmeshTools \ 26 | -lsampling \ 27 | -L$(FOAM_USER_LIBBIN) \ 28 | -ldfFluidThermophysicalModels \ 29 | -ldfCompressibleTurbulenceModels \ 30 | -lCanteraMixture \ 31 | -ldfChemistryModel \ 32 | $(CANTERA_ROOT)/lib/libcantera.so \ 33 | $(TORCH_ROOT)/lib/libtorch.so \ 34 | $(TORCH_ROOT)/lib/libc10.so \ 35 | -rdynamic \ 36 | -lpthread 37 | -------------------------------------------------------------------------------- /applications/solvers/dfLowMachFoam/UEqn.H: -------------------------------------------------------------------------------- 1 | // Solve the Momentum equation 2 | 3 | tmp tUEqn 4 | ( 5 | fvm::ddt(rho, U) + fvm::div(phi, U) 6 | + turbulence->divDevRhoReff(U) 7 | ); 8 | fvVectorMatrix& UEqn = tUEqn.ref(); 9 | 10 | UEqn.relax(); 11 | 12 | if (pimple.momentumPredictor()) 13 | { 14 | solve(UEqn == -fvc::grad(p)); 15 | 16 | K = 0.5*magSqr(U); 17 | } 18 | -------------------------------------------------------------------------------- /applications/solvers/dfLowMachFoam/correctPhi.H: -------------------------------------------------------------------------------- 1 | CorrectPhi 2 | ( 3 | U, 4 | phi, 5 | p, 6 | rho, 7 | psi, 8 | dimensionedScalar("rAUf", dimTime, 1), 9 | divrhoU(), 10 | pimple, 11 | true 12 | ); 13 | -------------------------------------------------------------------------------- /applications/solvers/dfLowMachFoam/rhoEqn.H: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | Global 25 | rhoEqn 26 | 27 | Description 28 | Solve the continuity for density. 29 | 30 | \*---------------------------------------------------------------------------*/ 31 | 32 | { 33 | fvScalarMatrix rhoEqn 34 | ( 35 | fvm::ddt(rho) 36 | + fvc::div(phi) 37 | ); 38 | 39 | rhoEqn.solve(); 40 | } 41 | 42 | // ************************************************************************* // 43 | -------------------------------------------------------------------------------- /applications/solvers/dfSprayFoam/EEqn.H: -------------------------------------------------------------------------------- 1 | { 2 | volScalarField& he = thermo.he(); 3 | 4 | fvScalarMatrix EEqn 5 | ( 6 | fvm::ddt(rho, he) + mvConvection->fvmDiv(phi, he) 7 | + fvc::ddt(rho, K) + fvc::div(phi, K) 8 | - dpdt 9 | - fvm::laplacian(turbulence->alphaEff(), he) 10 | == 11 | rho*(U&g) 12 | + parcels.Sh(he) 13 | //+ radiation->Sh(thermo, he) 14 | //+ fvOptions(rho, he) 15 | ); 16 | 17 | EEqn.relax(); 18 | 19 | //fvOptions.constrain(EEqn); 20 | 21 | EEqn.solve(); 22 | 23 | //fvOptions.correct(he); 24 | 25 | //radiation->correct(); 26 | } 27 | -------------------------------------------------------------------------------- /applications/solvers/dfSprayFoam/Make/files: -------------------------------------------------------------------------------- 1 | dfSprayFoam.C 2 | 3 | EXE = $(FOAM_USER_APPBIN)/dfSprayFoam 4 | -------------------------------------------------------------------------------- /applications/solvers/dfSprayFoam/UEqn.H: -------------------------------------------------------------------------------- 1 | // Solve the Momentum equation 2 | 3 | MRF.correctBoundaryVelocity(U); 4 | 5 | tmp tUEqn 6 | ( 7 | fvm::ddt(rho, U) + fvm::div(phi, U) 8 | + MRF.DDt(rho, U) 9 | + turbulence->divDevRhoReff(U) 10 | == 11 | rho()*g 12 | + parcels.SU(U) 13 | //+ fvOptions(rho, U) 14 | ); 15 | fvVectorMatrix& UEqn = tUEqn.ref(); 16 | 17 | UEqn.relax(); 18 | 19 | //fvOptions.constrain(UEqn); 20 | 21 | if (pimple.momentumPredictor()) 22 | { 23 | solve(UEqn == -fvc::grad(p)); 24 | 25 | //fvOptions.correct(U); 26 | K = 0.5*magSqr(U); 27 | } 28 | -------------------------------------------------------------------------------- /applications/solvers/dfSprayFoam/YEqn.H: -------------------------------------------------------------------------------- 1 | tmp> mvConvection 2 | ( 3 | fv::convectionScheme::New 4 | ( 5 | mesh, 6 | fields, 7 | phi, 8 | mesh.divScheme("div(phi,Yi_h)") 9 | ) 10 | ); 11 | 12 | { 13 | //combustion->correct(); 14 | chemistry.solve(mesh.time().deltaTValue()); 15 | volScalarField Yt(0.0*Y[0]); 16 | 17 | forAll(Y, i) 18 | { 19 | if (i != inertIndex) 20 | { 21 | volScalarField& Yi = Y[i]; 22 | 23 | fvScalarMatrix YEqn 24 | ( 25 | fvm::ddt(rho, Yi) 26 | + mvConvection->fvmDiv(phi, Yi) 27 | - fvm::laplacian(turbulence->muEff(), Yi) 28 | == 29 | parcels.SYi(i, Yi) 30 | + chemistry.RR(i) 31 | //+ fvOptions(rho, Yi) 32 | ); 33 | 34 | YEqn.relax(); 35 | 36 | //fvOptions.constrain(YEqn); 37 | 38 | YEqn.solve("Yi"); 39 | 40 | //fvOptions.correct(Yi); 41 | 42 | Yi.max(0.0); 43 | Yt += Yi; 44 | } 45 | } 46 | 47 | Y[inertIndex] = scalar(1) - Yt; 48 | Y[inertIndex].max(0.0); 49 | } 50 | -------------------------------------------------------------------------------- /applications/solvers/dfSprayFoam/createClouds.H: -------------------------------------------------------------------------------- 1 | Info<< "\nConstructing reacting cloud" << endl; 2 | basicSprayCloud parcels 3 | ( 4 | "sprayCloud", 5 | rho, 6 | U, 7 | g, 8 | slgThermo 9 | ); 10 | -------------------------------------------------------------------------------- /applications/solvers/dfSprayFoam/rhoEqn.H: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | Global 25 | rhoEqn 26 | 27 | Description 28 | Solve the continuity for density. 29 | 30 | \*---------------------------------------------------------------------------*/ 31 | 32 | { 33 | fvScalarMatrix rhoEqn 34 | ( 35 | fvm::ddt(rho) 36 | + fvc::div(phi) 37 | == 38 | parcels.Srho(rho) 39 | //+ fvOptions(rho) 40 | ); 41 | 42 | rhoEqn.solve(); 43 | 44 | //fvOptions.correct(rho); 45 | } 46 | 47 | // ************************************************************************* // 48 | -------------------------------------------------------------------------------- /applications/utilities/flameSpeed/Make/files: -------------------------------------------------------------------------------- 1 | flameSpeed.C 2 | 3 | EXE = $(FOAM_USER_APPBIN)/flameSpeed 4 | -------------------------------------------------------------------------------- /applications/utilities/flameSpeed/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = \ 2 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 3 | -I$(LIB_SRC)/meshTools/lnInclude \ 4 | -I$(LIB_SRC)/sampling/lnInclude 5 | 6 | EXE_LIBS = \ 7 | -lfiniteVolume \ 8 | -lmeshTools 9 | -------------------------------------------------------------------------------- /bashrc.raw: -------------------------------------------------------------------------------- 1 | export DF_ROOT=pwd 2 | export DF_SRC=pwd/src 3 | export SRC_ORIG=pwd/src_orig 4 | export TORCH_ROOT=TORCH_DIR 5 | export CANTERA_ROOT=CONDA_PREFIX 6 | export TORCH_ROOT=TORCH_DIR 7 | export CANTERA_DATA=$CANTERA_ROOT/share/cantera/data 8 | export LD_LIBRARY_PATH=$CANTERA_ROOT/lib:$LD_LIBRARY_PATH 9 | export LD_LIBRARY_PATH=$TORCH_ROOT/lib:$LD_LIBRARY_PATH -------------------------------------------------------------------------------- /doc/detonation.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/doc/detonation.png -------------------------------------------------------------------------------- /doc/ignition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/doc/ignition.png -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/H2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/H2.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/N2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/N2.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/O2.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/T.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/T.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/U.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/U.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/Ydefault.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/Ydefault.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/alphat.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/alphat.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/p.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/0/p.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning log.*" 5 | rm log.* 6 | echo "Cleaning polyMesh/" 7 | rm -r constant/polyMesh 8 | echo "Cleaning postProcessing/" 9 | rm -r postProcessing 10 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=df0DFoam 8 | 9 | runApplication blockMesh 10 | runApplication $application 11 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/constant/CanteraTorchProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | chemistry on; 19 | CanteraMechanismFile "ES80_H2-7-16.yaml"; 20 | transportModel "UnityLewis"; 21 | odeCoeffs 22 | { 23 | // "relTol" 1e-6; 24 | // "absTol" 1e-10; 25 | } 26 | inertSpecie "N2"; 27 | zeroDReactor 28 | { 29 | constantProperty "pressure"; 30 | } 31 | 32 | // ************************************************************************* // 33 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | // ************************************************************************* // 19 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType laminar; 19 | 20 | // ************************************************************************* // 21 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/system/blockMeshDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | object blockMeshDict; 14 | } 15 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 16 | 17 | convertToMeters 0.001; 18 | 19 | vertices 20 | ( 21 | (0 0 0) 22 | (5 0 0) 23 | (5 5 0) 24 | (0 5 0) 25 | (0 0 5) 26 | (5 0 5) 27 | (5 5 5) 28 | (0 5 5) 29 | ); 30 | 31 | 32 | blocks 33 | ( 34 | hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) 35 | ); 36 | 37 | edges 38 | ( 39 | ); 40 | 41 | boundary 42 | ( 43 | cubic_boundary 44 | { 45 | type wall; 46 | faces 47 | ( 48 | (0 3 2 1) 49 | (4 5 6 7) 50 | (0 4 7 3) 51 | (2 6 5 1) 52 | (3 7 6 2) 53 | (1 5 4 0) 54 | ); 55 | } 56 | ); 57 | 58 | // mergePatchPairs 59 | // ( 60 | // ); 61 | 62 | // ************************************************************************* // 63 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | application dfLMFoam; 19 | 20 | startFrom startTime; 21 | 22 | startTime 0; 23 | 24 | stopAt endTime; 25 | 26 | endTime 0.001; 27 | 28 | deltaT 1e-06; 29 | 30 | maxDeltaT 1e-03; 31 | 32 | adjustTimeStep off; 33 | 34 | writeControl runTime; 35 | 36 | writeInterval 10000; 37 | 38 | purgeWrite 0; 39 | 40 | writeFormat ascii; 41 | 42 | // writePrecision 6; 43 | 44 | writeCompression on; 45 | 46 | timeFormat general; 47 | 48 | timePrecision 6; 49 | 50 | runTimeModifiable true; 51 | 52 | functions 53 | { 54 | # includeFunc probes 55 | } 56 | 57 | // ************************************************************************* // 58 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | ddtSchemes 19 | { 20 | default Euler; 21 | } 22 | 23 | gradSchemes 24 | { 25 | default Gauss linear; 26 | } 27 | 28 | divSchemes 29 | { 30 | default none; 31 | 32 | div(phi,U) Gauss limitedLinearV 1; 33 | div(phi,Yi) Gauss limitedLinear01 1; 34 | div(phi,h) Gauss limitedLinear 1; 35 | div(phi,K) Gauss limitedLinear 1; 36 | div(phid,p) Gauss limitedLinear 1; 37 | div(phi,epsilon) Gauss limitedLinear 1; 38 | div(phi,Yi_h) Gauss limitedLinear01 1; 39 | div(phi,k) Gauss limitedLinear 1; 40 | div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; 41 | } 42 | 43 | laplacianSchemes 44 | { 45 | default Gauss linear orthogonal; 46 | } 47 | 48 | interpolationSchemes 49 | { 50 | default linear; 51 | } 52 | 53 | snGradSchemes 54 | { 55 | default orthogonal; 56 | } 57 | 58 | 59 | // ************************************************************************* // 60 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/system/fvSolution: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSolution; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | solvers 19 | { 20 | "rho.*" 21 | { 22 | solver diagonal; 23 | } 24 | 25 | p 26 | { 27 | solver PCG; 28 | preconditioner DIC; 29 | tolerance 1e-6; 30 | relTol 0.01; 31 | } 32 | 33 | pFinal 34 | { 35 | $p; 36 | relTol 0; 37 | } 38 | 39 | "(U|h|k|epsilon)" 40 | { 41 | solver PBiCGStab; 42 | preconditioner DILU; 43 | tolerance 1e-6; 44 | relTol 0.1; 45 | } 46 | 47 | "(U|h|k|epsilon)Final" 48 | { 49 | $U; 50 | } 51 | 52 | "Yi.*" 53 | { 54 | solver PBiCG; 55 | preconditioner DILU; 56 | tolerance 1e-12; 57 | relTol 0; 58 | } 59 | } 60 | 61 | PIMPLE 62 | { 63 | momentumPredictor no; 64 | nOuterCorrectors 1; 65 | nCorrectors 2; 66 | nNonOrthogonalCorrectors 0; 67 | 68 | maxDeltaT 1e-4; 69 | maxCo 0.25; 70 | } 71 | 72 | 73 | // ************************************************************************* // 74 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/cvodeSolver/system/probes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | Description 9 | Writes out values of fields from cells nearest to specified locations. 10 | 11 | \*---------------------------------------------------------------------------*/ 12 | 13 | #includeEtc "caseDicts/postProcessing/probes/probes.cfg" 14 | 15 | fields (T); 16 | probeLocations 17 | ( 18 | (0.0025 0.0025 0.0025) 19 | ); 20 | 21 | // ************************************************************************* // 22 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/H2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/H2.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/N2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/N2.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/O2.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/T.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/T.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/U.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/U.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/Ydefault.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/Ydefault.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/alphat.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/alphat.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/p.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/0/p.gz -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning logfiles*" 5 | rm log.* 6 | echo "Cleaning polyMesh/" 7 | rm -r constant/polyMesh 8 | echo "Cleaning postProcessing/" 9 | rm -r postProcessing 10 | echo "Cleaning torch *.pt" 11 | rm *.pt -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=df0DFoam 8 | 9 | runApplication blockMesh 10 | runApplication $application 11 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | // ************************************************************************* // 19 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType laminar; 19 | 20 | // ************************************************************************* // 21 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/system/blockMeshDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | object blockMeshDict; 14 | } 15 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 16 | 17 | convertToMeters 0.001; 18 | 19 | vertices 20 | ( 21 | (0 0 0) 22 | (5 0 0) 23 | (5 5 0) 24 | (0 5 0) 25 | (0 0 5) 26 | (5 0 5) 27 | (5 5 5) 28 | (0 5 5) 29 | ); 30 | 31 | 32 | blocks 33 | ( 34 | hex (0 1 2 3 4 5 6 7) (1 1 1) simpleGrading (1 1 1) 35 | ); 36 | 37 | edges 38 | ( 39 | ); 40 | 41 | boundary 42 | ( 43 | cubic_boundary 44 | { 45 | type wall; 46 | faces 47 | ( 48 | (0 3 2 1) 49 | (4 5 6 7) 50 | (0 4 7 3) 51 | (2 6 5 1) 52 | (3 7 6 2) 53 | (1 5 4 0) 54 | ); 55 | } 56 | ); 57 | 58 | // mergePatchPairs 59 | // ( 60 | // ); 61 | 62 | // ************************************************************************* // 63 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | application dfLMFoam; 19 | 20 | startFrom startTime; 21 | 22 | startTime 0; 23 | 24 | stopAt endTime; 25 | 26 | endTime 0.001; 27 | 28 | deltaT 1e-06; 29 | 30 | maxDeltaT 1e-03; 31 | 32 | adjustTimeStep off; 33 | 34 | writeControl runTime; 35 | 36 | writeInterval 10000; 37 | 38 | purgeWrite 0; 39 | 40 | writeFormat ascii; 41 | 42 | // writePrecision 6; 43 | 44 | writeCompression on; 45 | 46 | timeFormat general; 47 | 48 | timePrecision 6; 49 | 50 | runTimeModifiable true; 51 | 52 | functions 53 | { 54 | # includeFunc probes 55 | } 56 | 57 | // ************************************************************************* // 58 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | ddtSchemes 19 | { 20 | default Euler; 21 | } 22 | 23 | gradSchemes 24 | { 25 | default Gauss linear; 26 | } 27 | 28 | divSchemes 29 | { 30 | default none; 31 | 32 | div(phi,U) Gauss limitedLinearV 1; 33 | div(phi,Yi) Gauss limitedLinear01 1; 34 | div(phi,h) Gauss limitedLinear 1; 35 | div(phi,K) Gauss limitedLinear 1; 36 | div(phid,p) Gauss limitedLinear 1; 37 | div(phi,epsilon) Gauss limitedLinear 1; 38 | div(phi,Yi_h) Gauss limitedLinear01 1; 39 | div(phi,k) Gauss limitedLinear 1; 40 | div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; 41 | } 42 | 43 | laplacianSchemes 44 | { 45 | default Gauss linear orthogonal; 46 | } 47 | 48 | interpolationSchemes 49 | { 50 | default linear; 51 | } 52 | 53 | snGradSchemes 54 | { 55 | default orthogonal; 56 | } 57 | 58 | 59 | // ************************************************************************* // 60 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/system/fvSolution: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSolution; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | solvers 19 | { 20 | "rho.*" 21 | { 22 | solver diagonal; 23 | } 24 | 25 | p 26 | { 27 | solver PCG; 28 | preconditioner DIC; 29 | tolerance 1e-6; 30 | relTol 0.01; 31 | } 32 | 33 | pFinal 34 | { 35 | $p; 36 | relTol 0; 37 | } 38 | 39 | "(U|h|k|epsilon)" 40 | { 41 | solver PBiCGStab; 42 | preconditioner DILU; 43 | tolerance 1e-6; 44 | relTol 0.1; 45 | } 46 | 47 | "(U|h|k|epsilon)Final" 48 | { 49 | $U; 50 | } 51 | 52 | "Yi.*" 53 | { 54 | solver PBiCG; 55 | preconditioner DILU; 56 | tolerance 1e-12; 57 | relTol 0; 58 | } 59 | } 60 | 61 | PIMPLE 62 | { 63 | momentumPredictor no; 64 | nOuterCorrectors 1; 65 | nCorrectors 2; 66 | nNonOrthogonalCorrectors 0; 67 | 68 | maxDeltaT 1e-4; 69 | maxCo 0.25; 70 | } 71 | 72 | 73 | // ************************************************************************* // 74 | -------------------------------------------------------------------------------- /examples/df0DFoam/zeroD_cubicReactor/H2/torchSolver/system/probes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | Description 9 | Writes out values of fields from cells nearest to specified locations. 10 | 11 | \*---------------------------------------------------------------------------*/ 12 | 13 | #includeEtc "caseDicts/postProcessing/probes/probes.cfg" 14 | 15 | fields (T); 16 | probeLocations 17 | ( 18 | (0.0025 0.0025 0.0025) 19 | ); 20 | 21 | // ************************************************************************* // 22 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/H2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/H2.gz -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/N2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/N2.gz -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/O2.gz -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/T.orig.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/T.orig.gz -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/U.orig.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/U.orig.gz -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/Ydefault.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/Ydefault.gz -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/p.orig.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfHighSpeedFoam/det_1D_H2_01mm/0_orig/p.orig.gz -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning log.*" 5 | rm log.* 6 | echo "Cleaning processor*" 7 | rm -r processor* 8 | echo "Cleaning polyMesh/" 9 | rm -r constant/polyMesh 10 | echo "Cleaning postProcessing/" 11 | rm -r postProcessing 12 | echo "Cleaning 0/" 13 | rm -r 0 -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=dfHighSpeedFoam 8 | 9 | cp -r 0_orig/ 0/ 10 | runApplication blockMesh 11 | runApplication setFields 12 | runApplication decomposePar 13 | runApplication mpirun -np 4 $application -parallel 14 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/constant/CanteraTorchProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object chemistryProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | 19 | chemistry on; 20 | CanteraMechanismFile "H2_Li.xml"; 21 | transportModel "UnityLewis"; 22 | odeCoeffs 23 | {} 24 | inertSpecie "N2"; 25 | 26 | zeroDReactor 27 | { 28 | //cvorcp "UV"; 29 | } 30 | // ************************************************************************* // 31 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | // ************************************************************************* // 19 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType laminar; 19 | 20 | 21 | // ************************************************************************* // 22 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/system/blockMeshDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | object blockMeshDict; 14 | } 15 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 16 | 17 | convertToMeters 0.1; 18 | 19 | vertices 20 | ( 21 | (0 0 0) 22 | (5 0 0) 23 | (5 0.1 0) 24 | (0 0.1 0) 25 | (0 0 1) 26 | (5 0 1) 27 | (5 0.1 1) 28 | (0 0.1 1) 29 | ); 30 | 31 | blocks 32 | ( 33 | hex (0 1 2 3 4 5 6 7) (5000 1 1) simpleGrading (1 1 1) 34 | ); 35 | 36 | edges 37 | ( 38 | ); 39 | 40 | boundary 41 | ( 42 | Left 43 | { 44 | // type patch; 45 | type symmetryPlane; 46 | faces 47 | ( 48 | (0 4 7 3) 49 | ); 50 | } 51 | Right 52 | { 53 | // type patch; 54 | type symmetryPlane; 55 | faces 56 | ( 57 | (1 2 6 5) 58 | ); 59 | } 60 | empty 61 | { 62 | type empty; 63 | faces 64 | ( 65 | (0 1 5 4) 66 | (5 6 7 4) 67 | (3 7 6 2) 68 | (0 3 2 1) 69 | ); 70 | } 71 | ); 72 | 73 | mergePatchPairs 74 | ( 75 | ); 76 | 77 | // ************************************************************************* // 78 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | libs ("libfieldFunctionObjects.so"); 18 | 19 | application dfHighSpeedFoam; 20 | 21 | startFrom startTime; 22 | 23 | startTime 0; 24 | 25 | stopAt endTime; 26 | 27 | endTime 2.4e-4; 28 | 29 | deltaT 1e-09; 30 | 31 | writeControl adjustableRunTime; 32 | 33 | writeInterval 5e-6; 34 | 35 | cycleWrite 0; 36 | 37 | writeFormat ascii; 38 | 39 | writePrecision 8; 40 | 41 | writeCompression off; 42 | 43 | timeFormat general; 44 | 45 | timePrecision 6; 46 | 47 | runTimeModifiable true; 48 | 49 | adjustTimeStep yes; 50 | 51 | maxCo 0.02; 52 | 53 | maxDeltaT 1; 54 | 55 | functions 56 | { 57 | minMax 58 | { 59 | type fieldMinMax; 60 | libs ("libfieldFunctionObjects.so"); 61 | writeControl timeStep; //writeTime; 62 | fields (p); 63 | } 64 | } 65 | 66 | 67 | // ************************************************************************* // 68 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/system/decomposeParDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object decomposeParDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | numberOfSubdomains 4; 19 | 20 | method scotch; 21 | 22 | // ************************************************************************* // 23 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | fluxScheme Kurganov; 19 | 20 | ddtSchemes 21 | { 22 | default Euler; 23 | } 24 | 25 | gradSchemes 26 | { 27 | default Gauss linear; 28 | } 29 | 30 | divSchemes 31 | { 32 | default none; 33 | div(tauMC) Gauss linear; 34 | div(phi,O2) Gauss vanLeer01; 35 | div(phi,H2) Gauss vanLeer01; 36 | div(phi,H2O) Gauss vanLeer01; 37 | div(phi,AR) Gauss vanLeer01; 38 | div(phi,Yi) Gauss vanLeer01; 39 | div(phi,Yi_h) Gauss vanLeer; 40 | } 41 | 42 | laplacianSchemes 43 | { 44 | default Gauss linear uncorrected; 45 | } 46 | 47 | interpolationSchemes 48 | { 49 | default linear; 50 | reconstruct(rho) Minmod; 51 | reconstruct(U) MinmodV; 52 | reconstruct(T) Minmod; 53 | reconstruct(Yi) Minmod; 54 | } 55 | 56 | snGradSchemes 57 | { 58 | default uncorrected; 59 | } 60 | 61 | 62 | // ************************************************************************* // 63 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/system/fvSolution: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSolution; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | solvers 19 | { 20 | U 21 | { 22 | //solver smoothSolver; 23 | //smoother GaussSeidel; 24 | //nSweeps 2; 25 | //tolerance 1e-17; 26 | //relTol 0; 27 | 28 | solver PBiCGStab; 29 | preconditioner DIC; 30 | tolerance 1e-11; 31 | relTol 0; 32 | } 33 | 34 | h 35 | { 36 | $U; 37 | tolerance 1e-11; 38 | relTol 0; 39 | } 40 | 41 | e 42 | { 43 | $U; 44 | tolerance 1e-11; 45 | relTol 0; 46 | } 47 | 48 | "rho.*" 49 | { 50 | solver diagonal; 51 | } 52 | 53 | "(O2|N2|Yi)" 54 | { 55 | solver PBiCGStab; 56 | preconditioner DILU; 57 | tolerance 1e-11; 58 | relTol 0; 59 | } 60 | 61 | } 62 | 63 | CENTRAL 64 | { 65 | } 66 | 67 | // ************************************************************************* // 68 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/system/sample: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object sample; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | type sets; 19 | libs ("libsampling.so"); 20 | 21 | interpolationScheme cellPoint; 22 | 23 | setFormat raw; 24 | 25 | sets 26 | ( 27 | data 28 | { 29 | type lineFace; 30 | axis x; 31 | start (-4.995 0 0); 32 | end (4.995 0 0); 33 | nPoints 1000; 34 | } 35 | ); 36 | 37 | fields (T mag(U) p); 38 | 39 | // ************************************************************************* // 40 | -------------------------------------------------------------------------------- /examples/dfHighSpeedFoam/det_1D_H2_01mm/system/setFieldsDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object setFieldsDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | defaultFieldValues 19 | ( 20 | volVectorFieldValue U (0 0 0) 21 | volScalarFieldValue T 300 22 | volScalarFieldValue p 101325 //1atm 23 | ); 24 | 25 | regions 26 | ( 27 | boxToCell 28 | { 29 | box (0 0 0) (0.002 0.01 0.1); 30 | fieldValues 31 | ( 32 | volScalarFieldValue T 2000 33 | volScalarFieldValue p 9119250 //90atm 34 | ); 35 | } 36 | ); 37 | 38 | 39 | // ************************************************************************* // 40 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/AR.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/AR.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/H.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/H.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/H2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/H2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/H2O.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/H2O.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/N2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/N2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/O.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/O.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/O2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/OH.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/OH.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/T.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/T.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/U.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/U.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/p.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/0/p.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning log.*" 5 | rm log.* 6 | echo "Cleaning processor*" 7 | rm -r processor* 8 | echo "Cleaning polyMesh/" 9 | rm -r constant/polyMesh 10 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=dfLowMachFoam 8 | 9 | runApplication blockMesh 10 | runApplication decomposePar 11 | runApplication mpirun -np 16 $application -parallel 12 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/constant/CanteraTorchProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object chemistryProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | 19 | chemistry on; 20 | CanteraMechanismFile "ES80_H2-7-16.yaml"; 21 | transportModel "Mix"; 22 | odeCoeffs 23 | { 24 | "relTol" 1e-6; 25 | "absTol" 1e-10; 26 | } 27 | inertSpecie "N2"; 28 | zeroDReactor 29 | { 30 | //cvorcp "UV"; 31 | } 32 | // ************************************************************************* // 33 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | // ************************************************************************* // 19 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType laminar; 19 | 20 | 21 | // ************************************************************************* // 22 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/system/blockMeshDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | object blockMeshDict; 14 | } 15 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 16 | 17 | convertToMeters 0.001; 18 | 19 | vertices 20 | ( 21 | (0 1 1) 22 | (960 1 1) 23 | (960 1 0) 24 | (0 1 0) 25 | (0 0 1) 26 | (960 0 1) 27 | (960 0 0) 28 | (0 0 0) 29 | ); 30 | 31 | blocks 32 | ( 33 | hex (4 5 6 7 0 1 2 3) (57099 1 1) simpleGrading (1 1 1) 34 | ); 35 | 36 | edges 37 | ( 38 | ); 39 | 40 | boundary 41 | ( 42 | boundary 43 | { 44 | type empty; 45 | faces 46 | ( 47 | (0 3 2 1) 48 | (4 5 6 7) 49 | (0 1 5 4) 50 | (3 2 6 7) 51 | ); 52 | } 53 | inlet 54 | { 55 | type patch; 56 | faces 57 | ( 58 | (0 4 7 3) 59 | ); 60 | } 61 | outlet 62 | { 63 | type patch; 64 | faces 65 | ( 66 | (1 2 6 5) 67 | ); 68 | } 69 | ); 70 | 71 | // mergePatchPairs 72 | // ( 73 | // ); 74 | 75 | // ************************************************************************* // 76 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | application dfLowMachFoam; 19 | 20 | startFrom startTime; 21 | 22 | startTime 0; 23 | 24 | stopAt endTime; 25 | 26 | endTime 1e-5; 27 | 28 | deltaT 1e-6; 29 | 30 | maxDeltaT 1e-04; 31 | 32 | adjustTimeStep off; 33 | 34 | writeControl adjustableRunTime; 35 | 36 | writeInterval 0.001; 37 | 38 | purgeWrite 0; 39 | 40 | writeFormat ascii; 41 | 42 | // writePrecision 6; 43 | 44 | writeCompression on; 45 | 46 | timeFormat general; 47 | 48 | timePrecision 6; 49 | 50 | runTimeModifiable true; 51 | 52 | // adjustTimeStep yes; 53 | 54 | // maxCo 0.8; 55 | 56 | // maxDeltaT 1e-4; 57 | 58 | 59 | // ************************************************************************* // 60 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/system/decomposeParDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object decomposeParDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | numberOfSubdomains 16; 19 | 20 | method scotch; 21 | 22 | simpleCoeffs 23 | { 24 | n (4 1 1); 25 | delta 0.001; 26 | } 27 | 28 | hierarchicalCoeffs 29 | { 30 | n (1 1 1); 31 | delta 0.001; 32 | order xyz; 33 | } 34 | 35 | manualCoeffs 36 | { 37 | dataFile ""; 38 | } 39 | 40 | distributed no; 41 | 42 | roots ( ); 43 | 44 | 45 | // ************************************************************************* // 46 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/cvodeSolver/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | ddtSchemes 19 | { 20 | default Euler; 21 | } 22 | 23 | gradSchemes 24 | { 25 | default Gauss linear; 26 | } 27 | 28 | divSchemes 29 | { 30 | default none; 31 | 32 | div(phi,U) Gauss limitedLinearV 1; 33 | div(phi,Yi) Gauss limitedLinear01 1; 34 | div(phi,h) Gauss limitedLinear 1; 35 | div(phi,ha) Gauss limitedLinear 1; 36 | div(phi,K) Gauss limitedLinear 1; 37 | div(phid,p) Gauss limitedLinear 1; 38 | div(phi,epsilon) Gauss limitedLinear 1; 39 | div(phi,Yi_h) Gauss limitedLinear01 1; 40 | div(phi,k) Gauss limitedLinear 1; 41 | div(hDiffCorrFlux) Gauss cubic; 42 | div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; 43 | } 44 | 45 | laplacianSchemes 46 | { 47 | default Gauss linear orthogonal; 48 | } 49 | 50 | interpolationSchemes 51 | { 52 | default linear; 53 | } 54 | 55 | snGradSchemes 56 | { 57 | default orthogonal; 58 | } 59 | 60 | 61 | // ************************************************************************* // 62 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/AR.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/AR.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/H.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/H.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/H2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/H2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/H2O.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/H2O.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/N2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/N2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/O.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/O.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/O2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/OH.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/OH.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/T.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/T.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/U.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/U.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/p.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/0/p.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning log.*" 5 | rm log.* 6 | echo "Cleaning processor*" 7 | rm -r processor* 8 | echo "Cleaning polyMesh/" 9 | rm -r constant/polyMesh 10 | echo "Cleaning torch *.pt" 11 | rm *.pt 12 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=dfLowMachFoam 8 | 9 | runApplication blockMesh 10 | runApplication decomposePar 11 | runApplication mpirun -np 16 $application -parallel 12 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | // ************************************************************************* // 19 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType laminar; 19 | 20 | 21 | // ************************************************************************* // 22 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/system/blockMeshDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | object blockMeshDict; 14 | } 15 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 16 | 17 | convertToMeters 0.001; 18 | 19 | vertices 20 | ( 21 | (0 1 1) 22 | (960 1 1) 23 | (960 1 0) 24 | (0 1 0) 25 | (0 0 1) 26 | (960 0 1) 27 | (960 0 0) 28 | (0 0 0) 29 | ); 30 | 31 | blocks 32 | ( 33 | hex (4 5 6 7 0 1 2 3) (57099 1 1) simpleGrading (1 1 1) 34 | ); 35 | 36 | edges 37 | ( 38 | ); 39 | 40 | boundary 41 | ( 42 | boundary 43 | { 44 | type empty; 45 | faces 46 | ( 47 | (0 3 2 1) 48 | (4 5 6 7) 49 | (0 1 5 4) 50 | (3 2 6 7) 51 | ); 52 | } 53 | inlet 54 | { 55 | type patch; 56 | faces 57 | ( 58 | (0 4 7 3) 59 | ); 60 | } 61 | outlet 62 | { 63 | type patch; 64 | faces 65 | ( 66 | (1 2 6 5) 67 | ); 68 | } 69 | ); 70 | 71 | // mergePatchPairs 72 | // ( 73 | // ); 74 | 75 | // ************************************************************************* // 76 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | application dfLowMachFoam; 19 | 20 | startFrom startTime; 21 | 22 | startTime 0; 23 | 24 | stopAt endTime; 25 | 26 | endTime 1e-5; 27 | 28 | deltaT 1e-6; 29 | 30 | maxDeltaT 1e-04; 31 | 32 | adjustTimeStep off; 33 | 34 | writeControl adjustableRunTime; 35 | 36 | writeInterval 0.001; 37 | 38 | purgeWrite 0; 39 | 40 | writeFormat ascii; 41 | 42 | // writePrecision 6; 43 | 44 | writeCompression on; 45 | 46 | timeFormat general; 47 | 48 | timePrecision 6; 49 | 50 | runTimeModifiable true; 51 | 52 | // adjustTimeStep yes; 53 | 54 | // maxCo 0.8; 55 | 56 | // maxDeltaT 1e-4; 57 | 58 | 59 | // ************************************************************************* // 60 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/system/decomposeParDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object decomposeParDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | numberOfSubdomains 16; 19 | 20 | method scotch; 21 | 22 | simpleCoeffs 23 | { 24 | n (4 1 1); 25 | delta 0.001; 26 | } 27 | 28 | hierarchicalCoeffs 29 | { 30 | n (1 1 1); 31 | delta 0.001; 32 | order xyz; 33 | } 34 | 35 | manualCoeffs 36 | { 37 | dataFile ""; 38 | } 39 | 40 | distributed no; 41 | 42 | roots ( ); 43 | 44 | 45 | // ************************************************************************* // 46 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/oneD_freelyPropagation/H2/torchSolver/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | ddtSchemes 19 | { 20 | default Euler; 21 | } 22 | 23 | gradSchemes 24 | { 25 | default Gauss linear; 26 | } 27 | 28 | divSchemes 29 | { 30 | default none; 31 | 32 | div(phi,U) Gauss limitedLinearV 1; 33 | div(phi,Yi) Gauss limitedLinear01 1; 34 | div(phi,h) Gauss limitedLinear 1; 35 | div(phi,ha) Gauss limitedLinear 1; 36 | div(phi,K) Gauss limitedLinear 1; 37 | div(phid,p) Gauss limitedLinear 1; 38 | div(phi,epsilon) Gauss limitedLinear 1; 39 | div(phi,Yi_h) Gauss limitedLinear01 1; 40 | div(phi,k) Gauss limitedLinear 1; 41 | div(hDiffCorrFlux) Gauss cubic; 42 | div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; 43 | } 44 | 45 | laplacianSchemes 46 | { 47 | default Gauss linear orthogonal; 48 | } 49 | 50 | interpolationSchemes 51 | { 52 | default linear; 53 | } 54 | 55 | snGradSchemes 56 | { 57 | default orthogonal; 58 | } 59 | 60 | 61 | // ************************************************************************* // 62 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/.DS_Store -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/H.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/H.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/H2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/H2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/H2O.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/H2O.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/H2O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/H2O2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/HO2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/HO2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/N2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/N2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/O.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/O.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/O2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/OH.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/OH.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/T.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/T.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/U.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/U.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/p.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/0/p.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning log.*" 5 | rm log.* 6 | echo "Cleaning processor*" 7 | rm -r processor* 8 | echo "Cleaning polyMesh/" 9 | rm -r constant/polyMesh 10 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=dfLowMachFoam 8 | 9 | runApplication blockMesh 10 | runApplication decomposePar 11 | runApplication mpirun -np 64 $application -parallel 12 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/constant/CanteraTorchProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object chemistryProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | 19 | chemistry on; 20 | CanteraMechanismFile "ES80_H2-7-16.yaml"; 21 | transportModel "Mix";//"UnityLewis"; 22 | odeCoeffs 23 | { 24 | "relTol" 1e-6; 25 | "absTol" 1e-10; 26 | } 27 | inertSpecie "N2"; 28 | 29 | zeroDReactor 30 | { 31 | //cvorcp "UV"; 32 | } 33 | // ************************************************************************* // 34 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | // ************************************************************************* // 19 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType laminar; 19 | 20 | 21 | // ************************************************************************* // 22 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | application dfLowMachFoam; 19 | 20 | startFrom startTime; 21 | 22 | startTime 0; 23 | 24 | stopAt endTime; 25 | 26 | endTime 1e-5; 27 | 28 | deltaT 1e-6; 29 | 30 | maxDeltaT 1e-04; 31 | 32 | adjustTimeStep off; 33 | 34 | writeControl adjustableRunTime; 35 | 36 | writeInterval 5e-6; 37 | 38 | purgeWrite 0; 39 | 40 | writeFormat ascii; 41 | 42 | // writePrecision 6; 43 | 44 | writeCompression on; 45 | 46 | timeFormat general; 47 | 48 | timePrecision 6; 49 | 50 | runTimeModifiable true; 51 | 52 | // adjustTimeStep yes; 53 | 54 | // maxCo 0.8; 55 | 56 | // maxDeltaT 1e-4; 57 | 58 | 59 | // ************************************************************************* // 60 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/system/decomposeParDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object decomposeParDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | numberOfSubdomains 64; 19 | 20 | method scotch; 21 | 22 | simpleCoeffs 23 | { 24 | n (4 1 1); 25 | delta 0.001; 26 | } 27 | 28 | hierarchicalCoeffs 29 | { 30 | n (1 1 1); 31 | delta 0.001; 32 | order xyz; 33 | } 34 | 35 | manualCoeffs 36 | { 37 | dataFile ""; 38 | } 39 | 40 | distributed no; 41 | 42 | roots ( ); 43 | 44 | 45 | // ************************************************************************* // 46 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/system/funkySetFieldsDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object funkySetFieldsDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | expressions 19 | ( 20 | TGV_U 21 | { 22 | field U; 23 | expression "vector(4*sin(pos().x/0.001)*cos(pos().y/0.001)*cos(pos().z/0.001),-4*cos(pos().x/0.001)*sin(pos().y/0.001)*cos(pos().z/0.001),0)"; 24 | keepPatches 1; 25 | } 26 | ); 27 | 28 | 29 | // ************************************************************************* // 30 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/cvodeSolver/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | ddtSchemes 19 | { 20 | default Euler; 21 | } 22 | 23 | gradSchemes 24 | { 25 | default Gauss linear; 26 | } 27 | 28 | divSchemes 29 | { 30 | default none; 31 | 32 | div(phi,U) Gauss linear; 33 | div(phi,Yi) Gauss limitedLinear01 1; 34 | div(phi,h) Gauss limitedLinear 1; 35 | div(phi,ha) Gauss limitedLinear 1; 36 | div(phi,K) Gauss limitedLinear 1; 37 | div(phid,p) Gauss limitedLinear 1; 38 | div(phi,epsilon) Gauss limitedLinear 1; 39 | div(phi,Yi_h) Gauss limitedLinear01 1; 40 | div(phi,k) Gauss limitedLinear 1; 41 | div(hDiffCorrFlux) Gauss cubic; 42 | div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; 43 | } 44 | 45 | laplacianSchemes 46 | { 47 | default Gauss linear orthogonal; 48 | } 49 | 50 | interpolationSchemes 51 | { 52 | default linear; 53 | } 54 | 55 | snGradSchemes 56 | { 57 | default orthogonal; 58 | } 59 | 60 | 61 | // ************************************************************************* // 62 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/.DS_Store -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/H.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/H.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/H2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/H2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/H2O.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/H2O.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/H2O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/H2O2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/HO2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/HO2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/N2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/N2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/O.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/O.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/O2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/OH.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/OH.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/T.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/T.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/U.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/U.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/p.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/0/p.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning log.*" 5 | rm log.* 6 | echo "Cleaning processor*" 7 | rm -r processor* 8 | echo "Cleaning polyMesh/" 9 | rm -r constant/polyMesh 10 | echo "Cleaning torch *.pt" 11 | rm *.pt -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=dfLowMachFoam 8 | 9 | runApplication blockMesh 10 | runApplication decomposePar 11 | runApplication mpirun -np 64 $application -parallel 12 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | // ************************************************************************* // 19 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType laminar; 19 | 20 | 21 | // ************************************************************************* // 22 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | application dfLowMachFoam; 19 | 20 | startFrom startTime; 21 | 22 | startTime 0; 23 | 24 | stopAt endTime; 25 | 26 | endTime 1e-5; 27 | 28 | deltaT 1e-6; 29 | 30 | maxDeltaT 1e-04; 31 | 32 | adjustTimeStep off; 33 | 34 | writeControl adjustableRunTime; 35 | 36 | writeInterval 5e-6; 37 | 38 | purgeWrite 0; 39 | 40 | writeFormat ascii; 41 | 42 | // writePrecision 6; 43 | 44 | writeCompression on; 45 | 46 | timeFormat general; 47 | 48 | timePrecision 6; 49 | 50 | runTimeModifiable true; 51 | 52 | // adjustTimeStep yes; 53 | 54 | // maxCo 0.8; 55 | 56 | // maxDeltaT 1e-4; 57 | 58 | 59 | // ************************************************************************* // 60 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/system/decomposeParDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object decomposeParDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | numberOfSubdomains 64; 19 | 20 | method scotch; 21 | 22 | simpleCoeffs 23 | { 24 | n (4 1 1); 25 | delta 0.001; 26 | } 27 | 28 | hierarchicalCoeffs 29 | { 30 | n (1 1 1); 31 | delta 0.001; 32 | order xyz; 33 | } 34 | 35 | manualCoeffs 36 | { 37 | dataFile ""; 38 | } 39 | 40 | distributed no; 41 | 42 | roots ( ); 43 | 44 | 45 | // ************************************************************************* // 46 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/system/funkySetFieldsDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object funkySetFieldsDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | expressions 19 | ( 20 | TGV_U 21 | { 22 | field U; 23 | expression "vector(4*sin(pos().x/0.001)*cos(pos().y/0.001)*cos(pos().z/0.001),-4*cos(pos().x/0.001)*sin(pos().y/0.001)*cos(pos().z/0.001),0)"; 24 | keepPatches 1; 25 | } 26 | ); 27 | 28 | 29 | // ************************************************************************* // 30 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/threeD_reactingTGV/H2/torchSolver/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | ddtSchemes 19 | { 20 | default Euler; 21 | } 22 | 23 | gradSchemes 24 | { 25 | default Gauss linear; 26 | } 27 | 28 | divSchemes 29 | { 30 | default none; 31 | 32 | div(phi,U) Gauss linear; 33 | div(phi,Yi) Gauss limitedLinear01 1; 34 | div(phi,h) Gauss limitedLinear 1; 35 | div(phi,ha) Gauss limitedLinear 1; 36 | div(phi,K) Gauss limitedLinear 1; 37 | div(phid,p) Gauss limitedLinear 1; 38 | div(phi,epsilon) Gauss limitedLinear 1; 39 | div(phi,Yi_h) Gauss limitedLinear01 1; 40 | div(phi,k) Gauss limitedLinear 1; 41 | div(hDiffCorrFlux) Gauss cubic; 42 | div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; 43 | } 44 | 45 | laplacianSchemes 46 | { 47 | default Gauss linear orthogonal; 48 | } 49 | 50 | interpolationSchemes 51 | { 52 | default linear; 53 | } 54 | 55 | snGradSchemes 56 | { 57 | default orthogonal; 58 | } 59 | 60 | 61 | // ************************************************************************* // 62 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/H2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/H2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/N2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/N2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/O2.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/O2.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/T.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/T.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/U.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/U.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/Ydefault.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/Ydefault.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/p.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/deepflameCFD/deepflame-dev/29529093a73717fcac676f1f1ceed24c0cc932c7/examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/0/p.gz -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning log.*" 5 | rm log.* 6 | echo "Cleaning processor*" 7 | rm -r processor* 8 | echo "Cleaning polyMesh/" 9 | rm -r constant/polyMesh 10 | echo "Cleaning dynamicCode/" 11 | rm -r dynamicCode 12 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=dfLowMachFoam 8 | 9 | runApplication blockMesh 10 | runApplication decomposePar 11 | runApplication mpirun -np 32 $application -parallel 12 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/constant/CanteraTorchProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object chemistryProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | 19 | chemistry on; 20 | CanteraMechanismFile "ES80_H2-7-16.yaml"; 21 | transportModel "Mix"; 22 | odeCoeffs 23 | { 24 | "relTol" 1e-6; 25 | "absTol" 1e-10; 26 | } 27 | inertSpecie "N2"; 28 | zeroDReactor 29 | { 30 | //cvorcp "UV"; 31 | } 32 | // ************************************************************************* // 33 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | // ************************************************************************* // 19 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType laminar; 19 | 20 | 21 | // ************************************************************************* // 22 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | application dfLowMachFoam; 19 | 20 | startFrom startTime; 21 | 22 | startTime 0; 23 | 24 | stopAt endTime; 25 | 26 | endTime 1e-5; 27 | 28 | deltaT 1e-6; 29 | 30 | maxDeltaT 1e-04; 31 | 32 | adjustTimeStep off; 33 | 34 | writeControl adjustableRunTime; 35 | 36 | writeInterval 0.0001; 37 | 38 | purgeWrite 0; 39 | 40 | writeFormat ascii; 41 | 42 | // writePrecision 6; 43 | 44 | writeCompression on; 45 | 46 | timeFormat general; 47 | 48 | timePrecision 6; 49 | 50 | runTimeModifiable true; 51 | 52 | // adjustTimeStep yes; 53 | 54 | // maxCo 0.8; 55 | 56 | // maxDeltaT 1e-4; 57 | 58 | 59 | // ************************************************************************* // 60 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/system/decomposeParDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object decomposeParDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | numberOfSubdomains 32; 19 | 20 | method scotch; 21 | 22 | simpleCoeffs 23 | { 24 | n (4 1 1); 25 | delta 0.001; 26 | } 27 | 28 | hierarchicalCoeffs 29 | { 30 | n (1 1 1); 31 | delta 0.001; 32 | order xyz; 33 | } 34 | 35 | manualCoeffs 36 | { 37 | dataFile ""; 38 | } 39 | 40 | distributed no; 41 | 42 | roots ( ); 43 | 44 | 45 | // ************************************************************************* // 46 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/system/funkySetBoundaryDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object funkySetBoundaryDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | velocities { 19 | field U; 20 | expressions 21 | ( 22 | { 23 | target value; 24 | patchName fuelInlet; 25 | expression "vector(5,0,0)*1.128*pow(mag(0.004-(mag(pos().y-0.015)))/0.004,1/7)"; 26 | } 27 | ); 28 | } 29 | 30 | // ************************************************************************* // 31 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/cvodeSolver/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | ddtSchemes 19 | { 20 | default backward; 21 | } 22 | 23 | gradSchemes 24 | { 25 | default Gauss linear; 26 | } 27 | 28 | divSchemes 29 | { 30 | default none; 31 | 32 | div(phi,U) Gauss linear; 33 | div(phi,Yi) Gauss limitedLinear01 1; 34 | div(phi,h) Gauss limitedLinear 1; 35 | div(phi,ha) Gauss limitedLinear 1; 36 | div(phi,K) Gauss limitedLinear 1; 37 | div(phid,p) Gauss limitedLinear 1; 38 | div(phi,epsilon) Gauss limitedLinear 1; 39 | div(phi,Yi_h) Gauss limitedLinear01 1; 40 | div(phi,k) Gauss limitedLinear 1; 41 | div(hDiffCorrFlux) Gauss cubic; 42 | div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; 43 | } 44 | 45 | laplacianSchemes 46 | { 47 | default Gauss linear orthogonal; 48 | } 49 | 50 | interpolationSchemes 51 | { 52 | default linear; 53 | } 54 | 55 | snGradSchemes 56 | { 57 | default orthogonal; 58 | } 59 | 60 | 61 | // ************************************************************************* // 62 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/0/Ydefault: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class volScalarField; 13 | location "0"; 14 | object Ydefault; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | dimensions [0 0 0 0 0 0 0]; 19 | 20 | internalField uniform 0; 21 | 22 | boundaryField 23 | { 24 | up 25 | { 26 | type cyclic; 27 | } 28 | down 29 | { 30 | type cyclic; 31 | } 32 | fuelInlet 33 | { 34 | type zeroGradient; 35 | } 36 | airInlet 37 | { 38 | type zeroGradient; 39 | } 40 | outlet 41 | { 42 | type zeroGradient; 43 | } 44 | defaultFaces 45 | { 46 | type empty; 47 | } 48 | } 49 | 50 | 51 | // ************************************************************************* // 52 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/0/p: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class volScalarField; 13 | location "0"; 14 | object p; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | dimensions [1 -1 -2 0 0 0 0]; 19 | 20 | internalField uniform 1.01325e+05; 21 | 22 | boundaryField 23 | { 24 | up 25 | { 26 | type cyclic; 27 | } 28 | down 29 | { 30 | type cyclic; 31 | } 32 | fuelInlet 33 | { 34 | type zeroGradient; 35 | } 36 | airInlet 37 | { 38 | type zeroGradient; 39 | } 40 | outlet 41 | { 42 | type waveTransmissive; 43 | gamma 1.4; 44 | } 45 | defaultFaces 46 | { 47 | type empty; 48 | } 49 | } 50 | 51 | // ************************************************************************* // 52 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning log.*" 5 | rm log.* 6 | echo "Cleaning processor*" 7 | rm -r processor* 8 | echo "Cleaning polyMesh/" 9 | rm -r constant/polyMesh 10 | echo "Cleaning dynamicCode/" 11 | rm -r dynamicCode 12 | echo "Cleaning torch *.pt" 13 | rm *.pt -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=dfLowMachFoam 8 | 9 | runApplication blockMesh 10 | runApplication decomposePar 11 | runApplication mpirun -np 32 $application -parallel 12 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | // ************************************************************************* // 19 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType laminar; 19 | 20 | 21 | // ************************************************************************* // 22 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | application dfLowMachFoam; 19 | 20 | startFrom startTime; 21 | 22 | startTime 0; 23 | 24 | stopAt endTime; 25 | 26 | endTime 1e-5; 27 | 28 | deltaT 1e-6; 29 | 30 | maxDeltaT 1e-04; 31 | 32 | adjustTimeStep off; 33 | 34 | writeControl adjustableRunTime; 35 | 36 | writeInterval 0.0001; 37 | 38 | purgeWrite 0; 39 | 40 | writeFormat ascii; 41 | 42 | // writePrecision 6; 43 | 44 | writeCompression on; 45 | 46 | timeFormat general; 47 | 48 | timePrecision 6; 49 | 50 | runTimeModifiable true; 51 | 52 | // adjustTimeStep yes; 53 | 54 | // maxCo 0.8; 55 | 56 | // maxDeltaT 1e-4; 57 | 58 | 59 | // ************************************************************************* // 60 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/system/decomposeParDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object decomposeParDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | numberOfSubdomains 32; 19 | 20 | method scotch; 21 | 22 | simpleCoeffs 23 | { 24 | n (4 1 1); 25 | delta 0.001; 26 | } 27 | 28 | hierarchicalCoeffs 29 | { 30 | n (1 1 1); 31 | delta 0.001; 32 | order xyz; 33 | } 34 | 35 | manualCoeffs 36 | { 37 | dataFile ""; 38 | } 39 | 40 | distributed no; 41 | 42 | roots ( ); 43 | 44 | 45 | // ************************************************************************* // 46 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/system/funkySetBoundaryDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object funkySetBoundaryDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | velocities { 19 | field U; 20 | expressions 21 | ( 22 | { 23 | target value; 24 | patchName fuelInlet; 25 | expression "vector(5,0,0)*1.128*pow(mag(0.004-(mag(pos().y-0.015)))/0.004,1/7)"; 26 | } 27 | ); 28 | } 29 | 30 | // ************************************************************************* // 31 | -------------------------------------------------------------------------------- /examples/dfLowMachFoam/twoD_tripleFlame/H2/torchSolver/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | ddtSchemes 19 | { 20 | default backward; 21 | } 22 | 23 | gradSchemes 24 | { 25 | default Gauss linear; 26 | } 27 | 28 | divSchemes 29 | { 30 | default none; 31 | 32 | div(phi,U) Gauss linear; 33 | div(phi,Yi) Gauss limitedLinear01 1; 34 | div(phi,h) Gauss limitedLinear 1; 35 | div(phi,ha) Gauss limitedLinear 1; 36 | div(phi,K) Gauss limitedLinear 1; 37 | div(phid,p) Gauss limitedLinear 1; 38 | div(phi,epsilon) Gauss limitedLinear 1; 39 | div(phi,Yi_h) Gauss limitedLinear01 1; 40 | div(phi,k) Gauss limitedLinear 1; 41 | div(hDiffCorrFlux) Gauss cubic; 42 | div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; 43 | } 44 | 45 | laplacianSchemes 46 | { 47 | default Gauss linear orthogonal; 48 | } 49 | 50 | interpolationSchemes 51 | { 52 | default linear; 53 | } 54 | 55 | snGradSchemes 56 | { 57 | default orthogonal; 58 | } 59 | 60 | 61 | // ************************************************************************* // 62 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/N2: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class volScalarField; 13 | object N2; 14 | } 15 | // ************************************************************************* // 16 | 17 | dimensions [0 0 0 0 0 0 0]; 18 | 19 | internalField uniform 0.766; 20 | 21 | boundaryField 22 | { 23 | walls 24 | { 25 | type zeroGradient; 26 | } 27 | } 28 | 29 | // ************************************************************************* // 30 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/O2: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class volScalarField; 13 | object O2; 14 | } 15 | // ************************************************************************* // 16 | 17 | dimensions [0 0 0 0 0 0 0]; 18 | 19 | internalField uniform 0.234; 20 | 21 | boundaryField 22 | { 23 | walls 24 | { 25 | type zeroGradient; 26 | } 27 | } 28 | 29 | // ************************************************************************* // 30 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/T: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class volScalarField; 13 | object T; 14 | } 15 | // ************************************************************************* // 16 | 17 | dimensions [0 0 0 1 0 0 0]; 18 | 19 | internalField uniform 800; 20 | 21 | boundaryField 22 | { 23 | walls 24 | { 25 | type zeroGradient; 26 | } 27 | } 28 | 29 | // ************************************************************************* // 30 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/U: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class volVectorField; 13 | object U; 14 | } 15 | // ************************************************************************* // 16 | 17 | dimensions [0 1 -1 0 0 0 0]; 18 | 19 | internalField uniform (0 0 0); 20 | 21 | boundaryField 22 | { 23 | walls 24 | { 25 | type fixedValue; 26 | value uniform (0 0 0); 27 | } 28 | } 29 | 30 | // ************************************************************************* // 31 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/Ydefault: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class volScalarField; 13 | object Ydefault; 14 | } 15 | // ************************************************************************* // 16 | 17 | dimensions [0 0 0 0 0 0 0]; 18 | 19 | internalField uniform 0; 20 | 21 | boundaryField 22 | { 23 | walls 24 | { 25 | type zeroGradient; 26 | } 27 | } 28 | 29 | // ************************************************************************* // 30 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/alphat: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format binary; 12 | class volScalarField; 13 | location "0"; 14 | object alphat; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | dimensions [1 -1 -1 0 0 0 0]; 19 | 20 | internalField uniform 0; 21 | 22 | boundaryField 23 | { 24 | walls 25 | { 26 | type compressible::alphatWallFunction; 27 | value uniform 0; 28 | } 29 | } 30 | 31 | 32 | // ************************************************************************* // 33 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/epsilon: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format binary; 12 | class volScalarField; 13 | location "0"; 14 | object epsilon; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | dimensions [0 2 -3 0 0 0 0]; 19 | 20 | internalField uniform 90; 21 | 22 | boundaryField 23 | { 24 | walls 25 | { 26 | type epsilonWallFunction; 27 | value uniform 90; 28 | } 29 | } 30 | 31 | 32 | // ************************************************************************* // 33 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/k: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format binary; 12 | class volScalarField; 13 | location "0"; 14 | object k; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | dimensions [0 2 -2 0 0 0 0]; 19 | 20 | internalField uniform 1; 21 | 22 | boundaryField 23 | { 24 | walls 25 | { 26 | type kqRWallFunction; 27 | value uniform 1; 28 | } 29 | } 30 | 31 | 32 | // ************************************************************************* // 33 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/nut: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format binary; 12 | class volScalarField; 13 | location "0"; 14 | object nut; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | dimensions [0 2 -1 0 0 0 0]; 19 | 20 | internalField uniform 0; 21 | 22 | boundaryField 23 | { 24 | walls 25 | { 26 | type nutkWallFunction; 27 | value uniform 0; 28 | } 29 | } 30 | 31 | 32 | // ************************************************************************* // 33 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/0/p: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class volScalarField; 13 | object p; 14 | } 15 | // ************************************************************************* // 16 | 17 | dimensions [1 -1 -2 0 0 0 0]; 18 | 19 | internalField uniform 5e+06; 20 | 21 | boundaryField 22 | { 23 | walls 24 | { 25 | type zeroGradient; 26 | } 27 | } 28 | 29 | // ************************************************************************* // 30 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/Allclean: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | echo "Cleaning log.*" 5 | rm log.* 6 | echo "Cleaning processor*" 7 | rm -r processor* 8 | echo "Cleaning polyMesh/" 9 | rm -r constant/polyMesh 10 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/Allrun: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Source tutorial run functions 5 | . $WM_PROJECT_DIR/bin/tools/RunFunctions 6 | 7 | application=dfSprayFoam 8 | 9 | runApplication blockMesh 10 | runApplication decomposePar 11 | runApplication mpirun -np 32 $application -parallel 12 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/constant/CanteraTorchProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object chemistryProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | 19 | chemistry off; 20 | CanteraMechanismFile "C7_oneStep.yaml"; 21 | transportModel "UnityLewis"; 22 | odeCoeffs 23 | { 24 | "relTol" 1e-6; 25 | "absTol" 1e-10; 26 | } 27 | inertSpecie "N2"; 28 | 29 | zeroDReactor 30 | { 31 | //cvorcp "UV"; 32 | } 33 | // ************************************************************************* // 34 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/constant/g: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format binary; 12 | class uniformDimensionedVectorField; 13 | location "constant"; 14 | object g; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | dimensions [0 1 -2 0 0 0 0]; 19 | value (0 -9.81 0); 20 | 21 | 22 | // ************************************************************************* // 23 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/constant/thermophysicalProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: 2.4.0 | 5 | | \\ / A nd | Web: www.OpenFOAM.org | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "constant"; 14 | object thermophysicalProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | liquids 18 | { 19 | C7H16; 20 | } 21 | 22 | solids 23 | {} 24 | // ************************************************************************* // 25 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/constant/turbulenceProperties: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format binary; 12 | class dictionary; 13 | location "constant"; 14 | object turbulenceProperties; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | simulationType RAS; 19 | 20 | RAS 21 | { 22 | RASModel kEpsilon; 23 | 24 | turbulence on; 25 | 26 | printCoeffs on; 27 | } 28 | 29 | 30 | // ************************************************************************* // 31 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/system/blockMeshDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | object blockMeshDict; 14 | } 15 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 16 | 17 | convertToMeters 0.001; 18 | 19 | vertices 20 | ( 21 | (-10 0 -10) 22 | (-10 0 10) 23 | (10 0 10) 24 | (10 0 -10) 25 | (-10 100 -10) 26 | (-10 100 10) 27 | (10 100 10) 28 | (10 100 -10) 29 | ); 30 | 31 | blocks 32 | ( 33 | hex (0 1 2 3 4 5 6 7) (41 41 100) simpleGrading (1 1 1) 34 | ); 35 | 36 | edges 37 | ( 38 | ); 39 | 40 | patches 41 | ( 42 | wall walls 43 | ( 44 | (2 6 5 1) 45 | (0 4 7 3) 46 | (0 1 5 4) 47 | (4 5 6 7) 48 | (7 6 2 3) 49 | (3 2 1 0) 50 | ) 51 | ); 52 | 53 | mergePatchPairs 54 | ( 55 | ); 56 | 57 | // ************************************************************************* // 58 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/system/controlDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object controlDict; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | application sprayFoam; 19 | 20 | startFrom startTime; 21 | 22 | startTime 0; 23 | 24 | stopAt endTime; 25 | 26 | endTime 1e-4; 27 | 28 | deltaT 2.5e-06; 29 | 30 | writeControl adjustableRunTime; 31 | 32 | writeInterval 1e-03; 33 | 34 | purgeWrite 0; 35 | 36 | writeFormat ascii; 37 | 38 | writePrecision 6; 39 | 40 | writeCompression on; 41 | 42 | timeFormat general; 43 | 44 | timePrecision 6; 45 | 46 | adjustTimeStep yes; 47 | 48 | maxCo 0.1; 49 | 50 | runTimeModifiable yes; 51 | 52 | 53 | // ************************************************************************* // 54 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/system/decomposeParDict: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | | ========= | | 3 | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | 4 | | \\ / O peration | Version: v2106 | 5 | | \\ / A nd | Website: www.openfoam.com | 6 | | \\/ M anipulation | | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | object decomposeParDict; 14 | } 15 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 16 | 17 | numberOfSubdomains 32; 18 | 19 | method scotch; 20 | 21 | 22 | // ************************************************************************* // 23 | -------------------------------------------------------------------------------- /examples/dfSprayFoam/aachenBomb/system/fvSchemes: -------------------------------------------------------------------------------- 1 | /*--------------------------------*- C++ -*----------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Version: 7 6 | \\/ M anipulation | 7 | \*---------------------------------------------------------------------------*/ 8 | FoamFile 9 | { 10 | version 2.0; 11 | format ascii; 12 | class dictionary; 13 | location "system"; 14 | object fvSchemes; 15 | } 16 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 17 | 18 | ddtSchemes 19 | { 20 | default Euler; 21 | } 22 | 23 | gradSchemes 24 | { 25 | default Gauss linear; 26 | } 27 | 28 | divSchemes 29 | { 30 | default none; 31 | 32 | div(phi,U) Gauss upwind; 33 | div(phid,p) Gauss upwind; 34 | div(phi,K) Gauss linear; 35 | div(phi,k) Gauss upwind; 36 | div(phi,epsilon) Gauss upwind; 37 | div(U) Gauss linear; 38 | div(((rho*nuEff)*dev2(T(grad(U))))) Gauss linear; 39 | div(phi,Yi_h) Gauss upwind; 40 | } 41 | 42 | laplacianSchemes 43 | { 44 | default Gauss linear orthogonal; 45 | } 46 | 47 | interpolationSchemes 48 | { 49 | default linear; 50 | } 51 | 52 | snGradSchemes 53 | { 54 | default orthogonal; 55 | } 56 | 57 | 58 | // ************************************************************************* // 59 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ -e libtorch-cxx11-abi-shared-with-deps-1.11.0+cpu.zip ] 3 | then 4 | echo "libtorch.zip exist." 5 | else 6 | wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.11.0%2Bcpu.zip 7 | fi 8 | if [ -d "thirdParty/libtorch" ]; then 9 | echo "libtorch exist." 10 | else 11 | unzip libtorch-cxx11-abi-shared-with-deps-1.11.0+cpu.zip -d thirdParty 12 | fi 13 | 14 | 15 | cp bashrc.raw bashrc 16 | sed -i s#pwd#$PWD#g ./bashrc 17 | sed -i s#CONDA_PREFIX#$CONDA_PREFIX#g ./bashrc 18 | TORCH_DIR=$PWD/thirdParty/libtorch 19 | sed -i s#TORCH_DIR#$TORCH_DIR#g ./bashrc 20 | 21 | 22 | 23 | if [ -d "src_orig" ]; then 24 | echo "src_orig exist." 25 | else 26 | mkdir -p src_orig/TurbulenceModels 27 | mkdir -p src_orig/thermophysicalModels 28 | mkdir -p src_orig/lagrangian 29 | mkdir -p src_orig/regionModels 30 | cp -r $FOAM_SRC/TurbulenceModels/compressible src_orig/TurbulenceModels 31 | cp -r $FOAM_SRC/thermophysicalModels/basic src_orig/thermophysicalModels 32 | cp -r $FOAM_SRC/thermophysicalModels/thermophysicalProperties src_orig/thermophysicalModels 33 | cp -r $FOAM_SRC/lagrangian/intermediate src_orig/lagrangian 34 | cp -r $FOAM_SRC/lagrangian/turbulence src_orig/lagrangian 35 | cp -r $FOAM_SRC/regionModels/surfaceFilmModels src_orig/regionModels 36 | fi 37 | 38 | 39 | source ./bashrc 40 | ./Allwmake -j -------------------------------------------------------------------------------- /src/CanteraMixture/Make/files: -------------------------------------------------------------------------------- 1 | CanteraMixture.C 2 | makeThermos.C 3 | 4 | 5 | 6 | 7 | LIB = $(FOAM_USER_LIBBIN)/libCanteraMixture 8 | -------------------------------------------------------------------------------- /src/CanteraMixture/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = \ 2 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 3 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 4 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 5 | -I$(LIB_SRC)/meshTools/lnInclude \ 6 | -I$(CANTERA_ROOT)/include 7 | 8 | LIB_LIBS = \ 9 | -lfiniteVolume \ 10 | -lmeshTools \ 11 | $(CANTERA_ROOT)/lib/libcantera.so 12 | -------------------------------------------------------------------------------- /src/TurbulenceModels/compressible/Make/files: -------------------------------------------------------------------------------- 1 | workDir = $(SRC_ORIG)/TurbulenceModels/compressible/ 2 | 3 | $(workDir)/compressibleTurbulenceModel.C 4 | $(workDir)/turbulentFluidThermoModels/turbulentFluidThermoModels.C 5 | 6 | BCs = $(workDir)/turbulentFluidThermoModels/derivedFvPatchFields 7 | /*$(BCs)/temperatureCoupledBase/temperatureCoupledBase.C*/ 8 | /*$(BCs)/turbulentTemperatureCoupledBaffleMixed/turbulentTemperatureCoupledBaffleMixedFvPatchScalarField.C*/ 9 | /*$(BCs)/thermalBaffle1D/thermalBaffle1DFvPatchScalarFields.C*/ 10 | /*$(BCs)/totalFlowRateAdvectiveDiffusive/totalFlowRateAdvectiveDiffusiveFvPatchScalarField.C*/ 11 | /*$(BCs)/turbulentTemperatureRadCoupledMixed/turbulentTemperatureRadCoupledMixedFvPatchScalarField.C*/ 12 | /*$(BCs)/externalWallHeatFluxTemperature/externalWallHeatFluxTemperatureFvPatchScalarField.C*/ 13 | /*$(BCs)/wallHeatTransfer/wallHeatTransferFvPatchScalarField.C*/ 14 | /*$(BCs)/externalCoupledTemperatureMixed/externalCoupledTemperatureMixedFvPatchScalarField.C*/ 15 | /*$(BCs)/convectiveHeatTransfer/convectiveHeatTransferFvPatchScalarField.C*/ 16 | 17 | $(workDir)turbulentFluidThermoModels/derivedFvPatchFields/wallFunctions/alphatWallFunctions/alphatWallFunction/alphatWallFunctionFvPatchScalarField.C 18 | /*turbulentFluidThermoModels/derivedFvPatchFields/wallFunctions/alphatWallFunctions/alphatJayatillekeWallFunction/alphatJayatillekeWallFunctionFvPatchScalarField.C*/ 19 | 20 | LIB = $(FOAM_USER_LIBBIN)/libdfCompressibleTurbulenceModels 21 | -------------------------------------------------------------------------------- /src/TurbulenceModels/compressible/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = \ 2 | -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ 3 | -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ 4 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 5 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 6 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 7 | -I$(LIB_SRC)/meshTools/lnInclude 8 | 9 | LIB_LIBS = \ 10 | -lcompressibleTransportModels \ 11 | -L$(FOAM_USER_LIBBIN) \ 12 | -ldfFluidThermophysicalModels \ 13 | -lturbulenceModels \ 14 | -lfiniteVolume \ 15 | -lmeshTools 16 | -------------------------------------------------------------------------------- /src/dfChemistryModel/Make/files: -------------------------------------------------------------------------------- 1 | loadBalancing/ChemistryProblem.C 2 | loadBalancing/ChemistrySolution.C 3 | loadBalancing/ChemistryLoad.C 4 | loadBalancing/LoadBalancerBase.C 5 | loadBalancing/SendBuffer.C 6 | loadBalancing/RecvBuffer.C 7 | loadBalancing/algorithms_DLB.C 8 | loadBalancing/runtime_assert.C 9 | loadBalancing/LoadBalancer.C 10 | 11 | makeDfChemistryModels.C 12 | 13 | LIB = $(FOAM_USER_LIBBIN)/libdfChemistryModel -------------------------------------------------------------------------------- /src/dfChemistryModel/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = -std=c++14 \ 2 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 3 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 4 | -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ 5 | -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ 6 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 7 | -I$(DF_SRC)/CanteraMixture/lnInclude \ 8 | -I$(CANTERA_ROOT)/include \ 9 | -I$(TORCH_ROOT)/include \ 10 | -I$(TORCH_ROOT)/include/torch/csrc/api/include 11 | 12 | EXE_LIBS = \ 13 | -lcompressibleTransportModels \ 14 | -lturbulenceModels \ 15 | -L$(FOAM_USER_LIBBIN) \ 16 | -ldfFluidThermophysicalModels \ 17 | -ldfCompressibleTurbulenceModels \ 18 | -lCanteraMixture \ 19 | $(CANTERA_ROOT)/lib/libcantera.so \ 20 | $(TORCH_ROOT)/lib/libtorch.so \ 21 | $(TORCH_ROOT)/lib/libc10.so \ 22 | -rdynamic \ 23 | -lpthread 24 | -------------------------------------------------------------------------------- /src/dfChemistryModel/loadBalancing/ChemistryLoad.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | DLBFoam: Dynamic Load Balancing 4 | \\ / O peration | for fast reactive simulations 5 | \\ / A nd | 6 | \\/ M anipulation | 2020, Aalto University, Finland 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of DLBFoam library, derived from OpenFOAM. 10 | 11 | https://github.com/blttkgl/DLBFoam 12 | 13 | OpenFOAM is free software: you can redistribute it and/or modify it 14 | under the terms of the GNU General Public License as published by 15 | the Free Software Foundation, either version 3 of the License, or 16 | (at your option) any later version. 17 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 18 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 20 | for more details. 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "ChemistryLoad.H" 27 | namespace Foam{ 28 | 29 | } -------------------------------------------------------------------------------- /src/dfChemistryModel/loadBalancing/ChemistryProblem.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | DLBFoam: Dynamic Load Balancing 4 | \\ / O peration | for fast reactive simulations 5 | \\ / A nd | 6 | \\/ M anipulation | 2020, Aalto University, Finland 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of DLBFoam library, derived from OpenFOAM. 10 | 11 | https://github.com/blttkgl/DLBFoam 12 | 13 | OpenFOAM is free software: you can redistribute it and/or modify it 14 | under the terms of the GNU General Public License as published by 15 | the Free Software Foundation, either version 3 of the License, or 16 | (at your option) any later version. 17 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 18 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 20 | for more details. 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "ChemistryProblem.H" 27 | namespace Foam{ 28 | 29 | } -------------------------------------------------------------------------------- /src/dfChemistryModel/loadBalancing/ChemistrySolution.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | DLBFoam: Dynamic Load Balancing 4 | \\ / O peration | for fast reactive simulations 5 | \\ / A nd | 6 | \\/ M anipulation | 2020, Aalto University, Finland 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of DLBFoam library, derived from OpenFOAM. 10 | 11 | https://github.com/blttkgl/DLBFoam 12 | 13 | OpenFOAM is free software: you can redistribute it and/or modify it 14 | under the terms of the GNU General Public License as published by 15 | the Free Software Foundation, either version 3 of the License, or 16 | (at your option) any later version. 17 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 18 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 20 | for more details. 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "ChemistrySolution.H" 27 | namespace Foam{ 28 | 29 | } -------------------------------------------------------------------------------- /src/dfChemistryModel/loadBalancing/RecvBuffer.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | DLBFoam: Dynamic Load Balancing 4 | \\ / O peration | for fast reactive simulations 5 | \\ / A nd | 6 | \\/ M anipulation | 2020, Aalto University, Finland 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of DLBFoam library, derived from OpenFOAM. 10 | 11 | https://github.com/blttkgl/DLBFoam 12 | 13 | OpenFOAM is free software: you can redistribute it and/or modify it 14 | under the terms of the GNU General Public License as published by 15 | the Free Software Foundation, either version 3 of the License, or 16 | (at your option) any later version. 17 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 18 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 20 | for more details. 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | #include "RecvBuffer.H" 26 | namespace Foam{ 27 | 28 | } -------------------------------------------------------------------------------- /src/dfChemistryModel/loadBalancing/RecvBuffer.H: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | DLBFoam: Dynamic Load Balancing 4 | \\ / O peration | for fast reactive simulations 5 | \\ / A nd | 6 | \\/ M anipulation | 2020, Aalto University, Finland 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of DLBFoam library, derived from OpenFOAM. 10 | 11 | https://github.com/blttkgl/DLBFoam 12 | 13 | OpenFOAM is free software: you can redistribute it and/or modify it 14 | under the terms of the GNU General Public License as published by 15 | the Free Software Foundation, either version 3 of the License, or 16 | (at your option) any later version. 17 | 18 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 19 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 20 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 21 | for more details. 22 | 23 | You should have received a copy of the GNU General Public License 24 | along with OpenFOAM. If not, see . 25 | 26 | Class 27 | Foam::RecvBuffer 28 | 29 | Description 30 | Currently just a typedef to DynamicList. Could possibly be made 31 | constant size at some point to avoid allocations during runtime. 32 | 33 | \*---------------------------------------------------------------------------*/ 34 | 35 | #ifndef RecvBuffer_H 36 | #define RecvBuffer_H 37 | 38 | #include "DynamicList.H" 39 | 40 | namespace Foam 41 | { 42 | 43 | template 44 | using RecvBuffer = DynamicList>; 45 | 46 | } 47 | 48 | #endif -------------------------------------------------------------------------------- /src/dfChemistryModel/loadBalancing/SendBuffer.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | DLBFoam: Dynamic Load Balancing 4 | \\ / O peration | for fast reactive simulations 5 | \\ / A nd | 6 | \\/ M anipulation | 2020, Aalto University, Finland 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of DLBFoam library, derived from OpenFOAM. 10 | 11 | https://github.com/blttkgl/DLBFoam 12 | 13 | OpenFOAM is free software: you can redistribute it and/or modify it 14 | under the terms of the GNU General Public License as published by 15 | the Free Software Foundation, either version 3 of the License, or 16 | (at your option) any later version. 17 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 18 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 20 | for more details. 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "SendBuffer.H" 27 | namespace Foam{ 28 | 29 | } -------------------------------------------------------------------------------- /src/dfChemistryModel/loadBalancing/algorithms_DLB.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | DLBFoam: Dynamic Load Balancing 4 | \\ / O peration | for fast reactive simulations 5 | \\ / A nd | 6 | \\/ M anipulation | 2020, Aalto University, Finland 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of DLBFoam library, derived from OpenFOAM. 10 | 11 | https://github.com/blttkgl/DLBFoam 12 | 13 | OpenFOAM is free software: you can redistribute it and/or modify it 14 | under the terms of the GNU General Public License as published by 15 | the Free Software Foundation, either version 3 of the License, or 16 | (at your option) any later version. 17 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 18 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 20 | for more details. 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "algorithms_DLB.H" 27 | namespace Foam{ 28 | 29 | } -------------------------------------------------------------------------------- /src/dfChemistryModel/loadBalancing/runtime_assert.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | DLBFoam: Dynamic Load Balancing 4 | \\ / O peration | for fast reactive simulations 5 | \\ / A nd | 6 | \\/ M anipulation | 2020, Aalto University, Finland 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of DLBFoam library, derived from OpenFOAM. 10 | 11 | https://github.com/blttkgl/DLBFoam 12 | 13 | OpenFOAM is free software: you can redistribute it and/or modify it 14 | under the terms of the GNU General Public License as published by 15 | the Free Software Foundation, either version 3 of the License, or 16 | (at your option) any later version. 17 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 18 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 20 | for more details. 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "runtime_assert.H" 27 | 28 | namespace Foam{ 29 | 30 | } -------------------------------------------------------------------------------- /src/lagrangian/Allwmake: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | cd ${0%/*} || exit 1 # Run from this directory 3 | 4 | # Parse arguments for library compilation 5 | . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments 6 | 7 | wmake $targetType intermediate 8 | wmake $targetType turbulence 9 | wmake $targetType spray 10 | 11 | #------------------------------------------------------------------------------ 12 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = \ 2 | -I$(LIB_SRC)/lagrangian/basic/lnInclude \ 3 | -I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \ 4 | -I$(DF_SRC)/lagrangian/intermediate/lnInclude \ 5 | -I$(LIB_SRC)/lagrangian/intermediate/lnInclude \ 6 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 7 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 8 | -I$(DF_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 9 | -I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 10 | -I$(DF_SRC)/thermophysicalModels/SLGThermo/lnInclude \ 11 | -I$(CANTERA_ROOT)/include \ 12 | -I$(DF_SRC)/CanteraMixture/lnInclude \ 13 | -I$(LIB_SRC)/transportModels \ 14 | -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ 15 | -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ 16 | -I$(LIB_SRC)/dynamicFvMesh/lnInclude \ 17 | -I$(LIB_SRC)/sampling/lnInclude \ 18 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 19 | -I$(LIB_SRC)/meshTools/lnInclude 20 | 21 | LIB_LIBS = \ 22 | $(CANTERA_ROOT)/lib/libcantera.so \ 23 | -L$(FOAM_USER_LIBBIN) \ 24 | -lCanteraMixture \ 25 | -llagrangian \ 26 | -ldistributionModels \ 27 | -lcompressibleTransportModels \ 28 | -ldfFluidThermophysicalModels \ 29 | -ldfThermophysicalProperties \ 30 | -ldfSLGThermo \ 31 | -lincompressibleTransportModels \ 32 | -lregionModels \ 33 | -ldfSurfaceFilmModels \ 34 | -ldynamicFvMesh \ 35 | -lsampling \ 36 | -lfiniteVolume \ 37 | -lmeshTools 38 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/clouds/baseClasses/kinematicCloud/kinematicCloud.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "kinematicCloud.H" 27 | 28 | // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // 29 | 30 | namespace Foam 31 | { 32 | defineTypeNameAndDebug(kinematicCloud, 0); 33 | } 34 | 35 | 36 | // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // 37 | 38 | Foam::kinematicCloud::kinematicCloud() 39 | {} 40 | 41 | 42 | // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * // 43 | 44 | Foam::kinematicCloud::~kinematicCloud() 45 | {} 46 | 47 | 48 | // ************************************************************************* // 49 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/clouds/baseClasses/reactingCloud/reactingCloud.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "reactingCloud.H" 27 | 28 | // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // 29 | 30 | namespace Foam 31 | { 32 | defineTypeNameAndDebug(reactingCloud, 0); 33 | } 34 | 35 | 36 | // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // 37 | 38 | Foam::reactingCloud::reactingCloud() 39 | {} 40 | 41 | 42 | // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * // 43 | 44 | Foam::reactingCloud::~reactingCloud() 45 | {} 46 | 47 | 48 | // ************************************************************************* // 49 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/clouds/baseClasses/thermoCloud/thermoCloud.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "thermoCloud.H" 27 | 28 | // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // 29 | 30 | namespace Foam 31 | { 32 | defineTypeNameAndDebug(thermoCloud, 0); 33 | } 34 | 35 | 36 | // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // 37 | 38 | Foam::thermoCloud::thermoCloud() 39 | {} 40 | 41 | 42 | // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * // 43 | 44 | Foam::thermoCloud::~thermoCloud() 45 | {} 46 | 47 | 48 | // ************************************************************************* // 49 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/parcels/derived/basicKinematicCollidingParcel/defineBasicKinematicCollidingParcel.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "basicKinematicCollidingParcel.H" 27 | #include "Cloud.H" 28 | 29 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 30 | 31 | namespace Foam 32 | { 33 | defineTemplateTypeNameAndDebug(basicKinematicCollidingParcel, 0); 34 | defineTemplateTypeNameAndDebug(Cloud, 0); 35 | } 36 | 37 | 38 | // ************************************************************************* // 39 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/parcels/derived/basicKinematicMPPICParcel/defineBasicKinematicMPPICParcel.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2013-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "basicKinematicMPPICParcel.H" 27 | #include "Cloud.H" 28 | 29 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 30 | 31 | namespace Foam 32 | { 33 | defineTemplateTypeNameAndDebug(basicKinematicMPPICParcel, 0); 34 | defineTemplateTypeNameAndDebug(Cloud, 0); 35 | } 36 | 37 | 38 | // ************************************************************************* // 39 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/parcels/derived/basicKinematicParcel/defineBasicKinematicParcel.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "basicKinematicParcel.H" 27 | #include "Cloud.H" 28 | 29 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 30 | 31 | namespace Foam 32 | { 33 | defineTemplateTypeNameAndDebug(basicKinematicParcel, 0); 34 | defineTemplateTypeNameAndDebug(Cloud, 0); 35 | } 36 | 37 | 38 | // ************************************************************************* // 39 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/parcels/derived/basicReactingMultiphaseParcel/defineBasicReactingMultiphaseParcel.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "basicReactingMultiphaseParcel.H" 27 | #include "Cloud.H" 28 | 29 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 30 | 31 | namespace Foam 32 | { 33 | defineTemplateTypeNameAndDebug(basicReactingMultiphaseParcel, 0); 34 | defineTemplateTypeNameAndDebug(Cloud, 0); 35 | } 36 | 37 | 38 | // ************************************************************************* // 39 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/parcels/derived/basicReactingParcel/defineBasicReactingParcel.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "basicReactingParcel.H" 27 | #include "Cloud.H" 28 | 29 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 30 | 31 | namespace Foam 32 | { 33 | defineTemplateTypeNameAndDebug(basicReactingParcel, 0); 34 | defineTemplateTypeNameAndDebug(Cloud, 0); 35 | } 36 | 37 | 38 | // ************************************************************************* // 39 | -------------------------------------------------------------------------------- /src/lagrangian/intermediate/parcels/derived/basicThermoParcel/defineBasicThermoParcel.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "basicThermoParcel.H" 27 | #include "Cloud.H" 28 | 29 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 30 | 31 | namespace Foam 32 | { 33 | defineTemplateTypeNameAndDebug(basicThermoParcel, 0); 34 | defineTemplateTypeNameAndDebug(Cloud, 0); 35 | } 36 | 37 | // ************************************************************************* // 38 | -------------------------------------------------------------------------------- /src/lagrangian/spray/Make/files: -------------------------------------------------------------------------------- 1 | clouds/baseClasses/sprayCloud/sprayCloud.C 2 | 3 | SPRAYPARCEL=parcels/derived/basicSprayParcel 4 | $(SPRAYPARCEL)/defineBasicSprayParcel.C 5 | $(SPRAYPARCEL)/makeBasicSprayParcelSubmodels.C 6 | 7 | LIB = $(FOAM_USER_LIBBIN)/libdfLagrangianSpray 8 | -------------------------------------------------------------------------------- /src/lagrangian/spray/clouds/baseClasses/sprayCloud/sprayCloud.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "sprayCloud.H" 27 | 28 | // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // 29 | 30 | namespace Foam 31 | { 32 | defineTypeNameAndDebug(sprayCloud, 0); 33 | } 34 | 35 | 36 | // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // 37 | 38 | Foam::sprayCloud::sprayCloud() 39 | {} 40 | 41 | 42 | // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * // 43 | 44 | Foam::sprayCloud::~sprayCloud() 45 | {} 46 | 47 | 48 | // ************************************************************************* // 49 | -------------------------------------------------------------------------------- /src/lagrangian/spray/parcels/derived/basicSprayParcel/defineBasicSprayParcel.C: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | ========= | 3 | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 4 | \\ / O peration | Website: https://openfoam.org 5 | \\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation 6 | \\/ M anipulation | 7 | ------------------------------------------------------------------------------- 8 | License 9 | This file is part of OpenFOAM. 10 | 11 | OpenFOAM is free software: you can redistribute it and/or modify it 12 | under the terms of the GNU General Public License as published by 13 | the Free Software Foundation, either version 3 of the License, or 14 | (at your option) any later version. 15 | 16 | OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 17 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 18 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 19 | for more details. 20 | 21 | You should have received a copy of the GNU General Public License 22 | along with OpenFOAM. If not, see . 23 | 24 | \*---------------------------------------------------------------------------*/ 25 | 26 | #include "basicSprayParcel.H" 27 | #include "Cloud.H" 28 | 29 | // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 30 | 31 | namespace Foam 32 | { 33 | defineTemplateTypeNameAndDebug(basicSprayParcel, 0); 34 | defineTemplateTypeNameAndDebug(Cloud, 0); 35 | }; 36 | 37 | 38 | // ************************************************************************* // 39 | -------------------------------------------------------------------------------- /src/lagrangian/turbulence/Make/files: -------------------------------------------------------------------------------- 1 | DERIVEDPARCELS=$(SRC_ORIG)/lagrangian/turbulence/parcels/derived 2 | 3 | KINEMATICPARCEL=$(DERIVEDPARCELS)/basicKinematicParcel 4 | $(KINEMATICPARCEL)/makeBasicKinematicParcelSubmodels.C 5 | 6 | KINEMATICCOLLIDINGPARCEL=$(DERIVEDPARCELS)/basicKinematicCollidingParcel 7 | $(KINEMATICCOLLIDINGPARCEL)/makeBasicKinematicCollidingParcelSubmodels.C 8 | 9 | THERMOPARCEL=$(DERIVEDPARCELS)/basicThermoParcel 10 | $(THERMOPARCEL)/makeBasicThermoParcelSubmodels.C 11 | 12 | REACTINGPARCEL=$(DERIVEDPARCELS)/basicReactingParcel 13 | $(REACTINGPARCEL)/makeBasicReactingParcelSubmodels.C 14 | 15 | REACTINGMPPARCEL=$(DERIVEDPARCELS)/basicReactingMultiphaseParcel 16 | $(REACTINGMPPARCEL)/makeBasicReactingMultiphaseParcelSubmodels.C 17 | 18 | KINEMATICMPPICPARCEL=$(DERIVEDPARCELS)/basicKinematicMPPICParcel 19 | $(KINEMATICMPPICPARCEL)/makeBasicKinematicMPPICParcelSubmodels.C 20 | 21 | LIB = $(FOAM_USER_LIBBIN)/libdfLagrangianTurbulence 22 | -------------------------------------------------------------------------------- /src/lagrangian/turbulence/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = \ 2 | -I$(LIB_SRC)/lagrangian/basic/lnInclude \ 3 | -I$(DF_SRC)/lagrangian/intermediate/lnInclude \ 4 | -I$(LIB_SRC)/lagrangian/intermediate/lnInclude \ 5 | -I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \ 6 | -I$(LIB_SRC)/lagrangian/turbulence/lnInclude \ 7 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 8 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 9 | -I$(DF_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 10 | -I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 11 | -I$(DF_SRC)/thermophysicalModels/SLGThermo/lnInclude \ 12 | -I$(CANTERA_ROOT)/include \ 13 | -I$(DF_SRC)/CanteraMixture/lnInclude \ 14 | -I$(LIB_SRC)/TurbulenceModels/turbulenceModels/lnInclude \ 15 | -I$(LIB_SRC)/TurbulenceModels/incompressible/lnInclude \ 16 | -I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \ 17 | -I$(LIB_SRC)/transportModels \ 18 | -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ 19 | -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ 20 | -I$(LIB_SRC)/dynamicFvMesh/lnInclude \ 21 | -I$(LIB_SRC)/sampling/lnInclude \ 22 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 23 | -I$(LIB_SRC)/meshTools/lnInclude 24 | 25 | LIB_LIBS = \ 26 | $(CANTERA_ROOT)/lib/libcantera.so \ 27 | -L$(FOAM_USER_LIBBIN) \ 28 | -lCanteraMixture \ 29 | -llagrangian \ 30 | -ldfLagrangianIntermediate \ 31 | -ldistributionModels \ 32 | -lcompressibleTransportModels \ 33 | -ldfFluidThermophysicalModels \ 34 | -ldfThermophysicalProperties \ 35 | -ldfSLGThermo \ 36 | -lturbulenceModels \ 37 | -lincompressibleTurbulenceModels \ 38 | -ldfCompressibleTurbulenceModels \ 39 | -lincompressibleTransportModels \ 40 | -ldynamicFvMesh \ 41 | -lsampling \ 42 | -lfiniteVolume \ 43 | -lmeshTools 44 | -------------------------------------------------------------------------------- /src/regionModels/surfaceFilmModels/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = \ 2 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 3 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 4 | -I$(DF_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 5 | -I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 6 | -I$(DF_SRC)/thermophysicalModels/SLGThermo/lnInclude \ 7 | -I$(CANTERA_ROOT)/include \ 8 | -I$(DF_SRC)/CanteraMixture/lnInclude \ 9 | -I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \ 10 | -I$(LIB_SRC)/regionModels/regionModel/lnInclude \ 11 | -I$(LIB_SRC)/regionModels/surfaceFilmModels/lnInclude \ 12 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 13 | -I$(LIB_SRC)/meshTools/lnInclude 14 | 15 | LIB_LIBS = \ 16 | -L$(FOAM_USER_LIBBIN) \ 17 | -lcompressibleTransportModels \ 18 | -ldfFluidThermophysicalModels \ 19 | -ldfThermophysicalProperties \ 20 | -ldfSLGThermo \ 21 | -ldistributionModels \ 22 | -lregionModels \ 23 | -lfiniteVolume \ 24 | -lmeshTools 25 | -------------------------------------------------------------------------------- /src/thermophysicalModels/SLGThermo/Make/files: -------------------------------------------------------------------------------- 1 | SLGThermo/SLGThermo.C 2 | 3 | LIB = $(FOAM_USER_LIBBIN)/libdfSLGThermo 4 | -------------------------------------------------------------------------------- /src/thermophysicalModels/SLGThermo/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = \ 2 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 3 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 4 | -I$(DF_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 5 | -I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 6 | -I$(CANTERA_ROOT)/include \ 7 | -I$(DF_SRC)/CanteraMixture/lnInclude \ 8 | -I$(LIB_SRC)/finiteVolume/lnInclude 9 | 10 | LIB_LIBS = \ 11 | $(CANTERA_ROOT)/lib/libcantera.so \ 12 | -L$(FOAM_USER_LIBBIN) \ 13 | -lCanteraMixture \ 14 | -lcompressibleTransportModels \ 15 | -lfiniteVolume 16 | -------------------------------------------------------------------------------- /src/thermophysicalModels/basic/Make/files: -------------------------------------------------------------------------------- 1 | workDir = $(SRC_ORIG)/thermophysicalModels/basic/ 2 | $(workDir)/basicThermo/basicThermo.C 3 | $(workDir)/fluidThermo/fluidThermo.C 4 | 5 | $(workDir)/psiThermo/psiThermo.C 6 | /*psiThermo/psiThermos.C*/ 7 | 8 | $(workDir)/rhoThermo/rhoThermo.C 9 | /*rhoThermo/rhoThermos.C*/ 10 | /*rhoThermo/liquidThermo.C*/ 11 | 12 | $(workDir)/derivedFvPatchFields/fixedEnergy/fixedEnergyFvPatchScalarField.C 13 | $(workDir)/derivedFvPatchFields/gradientEnergy/gradientEnergyFvPatchScalarField.C 14 | $(workDir)/derivedFvPatchFields/mixedEnergy/mixedEnergyFvPatchScalarField.C 15 | 16 | $(workDir)/derivedFvPatchFields/energyJump/energyJump/energyJumpFvPatchScalarField.C 17 | $(workDir)/derivedFvPatchFields/energyJump/energyJumpAMI/energyJumpAMIFvPatchScalarField.C 18 | 19 | LIB = $(FOAM_USER_LIBBIN)/libdfFluidThermophysicalModels 20 | -------------------------------------------------------------------------------- /src/thermophysicalModels/basic/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = \ 2 | -I$(LIB_SRC)/transportModels/compressible/lnInclude \ 3 | -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ 4 | -I$(DF_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 5 | -I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude \ 6 | -I$(LIB_SRC)/finiteVolume/lnInclude \ 7 | -I$(LIB_SRC)/meshTools/lnInclude 8 | 9 | LIB_LIBS = \ 10 | -L$(FOAM_USER_LIBBIN) \ 11 | -lcompressibleTransportModels \ 12 | -ldfThermophysicalProperties \ 13 | -lfiniteVolume \ 14 | -lmeshTools 15 | -------------------------------------------------------------------------------- /src/thermophysicalModels/thermophysicalProperties/Make/options: -------------------------------------------------------------------------------- 1 | EXE_INC = \ 2 | -I./lnInclude \ 3 | -I$(LIB_SRC)/thermophysicalModels/thermophysicalProperties/lnInclude 4 | --------------------------------------------------------------------------------