Warning: Undefined array key 1 in /home/xs256437/ocse2.com/public_html/openfoam.ocse2.com/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-url.php on line 40

Warning: Undefined array key 2 in /home/xs256437/ocse2.com/public_html/openfoam.ocse2.com/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-url.php on line 40

Warning: Trying to access array offset on null in /home/xs256437/ocse2.com/public_html/openfoam.ocse2.com/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-url.php on line 50

Warning: Undefined array key 1 in /home/xs256437/ocse2.com/public_html/openfoam.ocse2.com/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-url.php on line 40

Warning: Undefined array key 2 in /home/xs256437/ocse2.com/public_html/openfoam.ocse2.com/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-url.php on line 40

Warning: Trying to access array offset on null in /home/xs256437/ocse2.com/public_html/openfoam.ocse2.com/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-url.php on line 50

filter


Warning: Undefined array key 1 in /home/xs256437/ocse2.com/public_html/openfoam.ocse2.com/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-url.php on line 40

Warning: Undefined array key 2 in /home/xs256437/ocse2.com/public_html/openfoam.ocse2.com/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-url.php on line 40

Warning: Trying to access array offset on null in /home/xs256437/ocse2.com/public_html/openfoam.ocse2.com/wp-content/plugins/elementor-pro/modules/dynamic-tags/pods/tags/pods-url.php on line 50

#!/bin/sh
cd “${0%/*}” || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#——————————————————————————

fileHandler=”-fileHandler collated”
unset fileHandler
## decompDict5=”-decomposeParDict system/decomposeParDict.5″

# Create mesh
runApplication blockMesh

# Restore 0/ from 0.orig/
restore0Dir

# Create sets
runApplication topoSet

# Create baffles and fields
runApplication createBaffles -overwrite

runApplication $(getApplication)

#- RedistributePar to do decomposition
runParallel redistributePar -decompose -cellDist $fileHandler

#- Continue running for a bit more
runParallel -s parallel $(getApplication) $fileHandler

if :
then
#- Reconstruct all times
runParallel -s reconstruct \r
redistributePar -reconstruct $fileHandler

else
# Not yet entirely working…

#- Send to more ranks
runParallel -s more-ranks $decompDict5 redistributePar $fileHandler

#- Continue running for a bit more
runParallel -s more-ranks $decompDict5 $(getApplication) $fileHandler

#- Reconstruct all times
runParallel -s reconstruct $decompDict5 \r
redistributePar -reconstruct $fileHandler -latestTime
fi

#——————————————————————————

実行年月:08/02/2024