This slide is about multiphaseEulerFoam which is a CFD solver of OpenFOAM and can analyze multiphase flows. The theory and differences with multiphaseInterFoam are explained.
This slide is about multiphaseEulerFoam which is a CFD solver of OpenFOAM and can analyze multiphase flows. The theory and differences with multiphaseInterFoam are explained.
This slide is describing how to set up the OpenFOAM simulations including rotating geometries.
The SRF (Single Rotating Frame) is covered and MRF (Multiple Reference Frame).will be covered in it.
This slide is describing how to set up the OpenFOAM simulations including rotating geometries.
The SRF (Single Rotating Frame) is covered and MRF (Multiple Reference Frame).will be covered in it.
25. Cavity tutorial(11)
2013/9/21 第25回オープンCAE勉強会@関西 25
自動化の練習(つづき)
from PyFoam.RunDictionary.SolutionDirectory import
SolutionDirectory
from PyFoam.Basics.TemplateFile import TemplateFile
from PyFoam.Basics.DataStructures import Vector
from PyFoam.RunDictionary.ParsedParameterFile import
ParsedParameterFile
from PyFoam.Execution.BasicRunner import BasicRunner
from PyFoam.Error import error
autoRun.py (つづき)
…
26. Cavity tutorial(12)
2013/9/21 第25回オープンCAE勉強会@関西 26
自動化の練習(つづき)
def main():
#cavity case set
cavityCase=SolutionDirectory("./cavity")
#result list
results=[]
#blockMeshTemplate
bMDictTemp=TemplateFile(cavityCase.blockMesh() +
".template",expressionDelimiter="$")
#0/U
U=ParsedParameterFile(cavityCase.initialDir() + "/U")
autoRun.py (つづき)
…
27. Cavity tutorial(13)
2013/9/21 第25回オープンCAE勉強会@関西 27
自動化の練習(つづき)
for blockL in [1,2]:
for blockH in [1,2]:
for Uwall in [0.5, 1.0]:
#clear case
cavityCase.clear()
autoRun.py (つづき)
…
#edit files
bMDictTemp.writeToFile(cavityCase.blockMesh(),{"L":blockL,"H"
:blockH})
U['boundaryField']['movingWall']['value'].setUniform(Vector(Uw
all,0,0))
U.writeFile()
(インデント4つ)
28. Cavity tutorial(14)
2013/9/21 第25回オープンCAE勉強会@関西 28
自動化の練習(つづき)
#blockMesh
args=shlex.split("blockMesh -case " + cavityCase.name)
block=BasicRunner(args,silent=True)
block.start()
if not block.runOK():
error("There was a problem with blockMesh")
sys.exit(1)
autoRun.py (つづき)
…
(4つインデントを入れて)
29. Cavity tutorial(15)
2013/9/21 第25回オープンCAE勉強会@関西 29
自動化の練習(つづき)
#icoFoam
args=shlex.split("icoFoam -case " + cavityCase.name)
ico=BasicRunner(args,silent=True)
ico.start()
if not ico.runOK():
error("There was a problem with icoFoam")
sys.exit(1)
autoRun.py (つづき)
…
(4つインデントを入れて)