mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
OpenFOAM field reading: Automated the handling of <field>.orig files
Now if a <field> file does not exist first the compressed <field>.gz file is searched for and if that also does not exist the <field>.orig file is searched for. This simplifies case setup and run scripts as now setField for example can read the <field>.orig file directly and generate the <field> file from it which is then read by the solver. Additionally the cleanCase function used by foamCleanCase and the Allclean scripts automatically removed <field> files if there is a corresponding <field>.orig file. So now there is no need for the Allrun scripts to copy <field>.orig files into <field> or for the Allclean scripts to explicitly remove them.
This commit is contained in:
@ -33,8 +33,6 @@ rm log.createPatch
|
||||
# create actual patches
|
||||
runApplication createPatch -region filmRegion -overwrite
|
||||
|
||||
cp 0/ph_rgh.orig 0/ph_rgh
|
||||
|
||||
# Run
|
||||
runApplication `getApplication`
|
||||
|
||||
|
||||
@ -26,8 +26,6 @@ runApplication -s fBurner \
|
||||
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
cp 0/ph_rgh.orig 0/ph_rgh
|
||||
|
||||
runApplication -s master \
|
||||
decomposePar -force
|
||||
|
||||
|
||||
@ -8,10 +8,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
runApplication blockMesh
|
||||
runApplication topoSet
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
cp 0/ph_rgh.orig 0/ph_rgh
|
||||
|
||||
# Run
|
||||
runApplication `getApplication`
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -9,12 +9,7 @@ application=`getApplication`
|
||||
runApplication blockMesh
|
||||
runApplication topoSet
|
||||
runApplication createPatch -overwrite
|
||||
|
||||
cp 0/ph_rgh.orig 0/ph_rgh
|
||||
|
||||
runApplication decomposePar -force
|
||||
|
||||
# Run
|
||||
runParallel $application
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -7,9 +7,6 @@ cd ${0%/*} || exit 1 # Run from this directory
|
||||
# Set application name
|
||||
application=`getApplication`
|
||||
|
||||
rm -f 0/T
|
||||
cp 0/T.orig 0/T
|
||||
|
||||
runApplication chemkinToFoam \
|
||||
chemkin/grimech30.dat chemkin/thermo30.dat chemkin/transportProperties \
|
||||
constant/reactionsGRI constant/thermo.compressibleGasGRI
|
||||
|
||||
Reference in New Issue
Block a user