Skip to content

Commit

Permalink
modify examples for dfHighSpeedFoam and provide new examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pkuLmq committed Aug 21, 2024
1 parent 99c81ce commit fee7a4a
Show file tree
Hide file tree
Showing 191 changed files with 2,849,065 additions and 11 deletions.
39 changes: 39 additions & 0 deletions examples/dfHighSpeedFoam/oneD_detC7H16Mist/0_orig/C7H16
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object C7H16;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0.06220;

boundaryField
{
Left
{
type symmetryPlane;
}
Right
{
type symmetryPlane;
}
empty
{
type empty;
}
}


// ************************************************************************* //
39 changes: 39 additions & 0 deletions examples/dfHighSpeedFoam/oneD_detC7H16Mist/0_orig/N2
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object N2;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0.71929;

boundaryField
{
Left
{
type symmetryPlane;
}
Right
{
type symmetryPlane;
}
empty
{
type empty;
}
}


// ************************************************************************* //
39 changes: 39 additions & 0 deletions examples/dfHighSpeedFoam/oneD_detC7H16Mist/0_orig/O2
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object O2;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0.21851;

boundaryField
{
Left
{
type symmetryPlane;
}
Right
{
type symmetryPlane;
}
empty
{
type empty;
}
}


// ************************************************************************* //
39 changes: 39 additions & 0 deletions examples/dfHighSpeedFoam/oneD_detC7H16Mist/0_orig/T
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 0 0 1 0 0 0];

internalField uniform 300;

boundaryField
{
Left
{
type symmetryPlane;
}
Right
{
type symmetryPlane;
}
empty
{
type empty;
}
}


// ************************************************************************* //
39 changes: 39 additions & 0 deletions examples/dfHighSpeedFoam/oneD_detC7H16Mist/0_orig/U
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
Left
{
type symmetryPlane;
}
Right
{
type symmetryPlane;
}
empty
{
type empty;
}
}


// ************************************************************************* //
39 changes: 39 additions & 0 deletions examples/dfHighSpeedFoam/oneD_detC7H16Mist/0_orig/Ydefault
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object Ydefault;
}
// ************************************************************************* //

dimensions [0 0 0 0 0 0 0];

internalField uniform 0;

boundaryField
{
Left
{
type symmetryPlane;
}

Right
{
type symmetryPlane;
}

empty
{
type empty;
}
}

// ************************************************************************* //
39 changes: 39 additions & 0 deletions examples/dfHighSpeedFoam/oneD_detC7H16Mist/0_orig/p
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 -1 -2 0 0 0 0];

internalField uniform 100000;

boundaryField
{
Left
{
type symmetryPlane;
}
Right
{
type symmetryPlane;
}
empty
{
type empty;
}
}


// ************************************************************************* //
16 changes: 16 additions & 0 deletions examples/dfHighSpeedFoam/oneD_detC7H16Mist/Allclean
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

echo "Cleaning log*"
rm log*
echo "Cleaning timestep*"
rm -rf 0.*
rm -rf *e-0*
echo "Cleaning initial timestep*"
rm -rf 0/
echo "Cleaning processor*"
rm -r processor*
echo "Cleaning polyMesh/"
rm -r constant/polyMesh
echo "Cleaning VTK/"
rm -r VTK/
17 changes: 17 additions & 0 deletions examples/dfHighSpeedFoam/oneD_detC7H16Mist/Allrun
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory

# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions

application=dfHighSpeedFoam

cp -r 0_orig/ 0/
runApplication blockMesh
runApplication setFields
runApplication decomposePar
runApplication mpirun -np 50 --allow-run-as-root $application -parallel

# To convert position file of droplet, use this commend:
# reconstructPar
# dfHighSpeedFoam -postProcess -dict system/positionConvertDict
Loading

0 comments on commit fee7a4a

Please sign in to comment.