/FOAM.jl

OpenFOAM handler with using Julia

Primary LanguageHTML

OpenFOAM handler with using Julia

  • Julia : v1.0.1
  • OpenFOAM : v1806
  • Python : 3.6.4 (anaconda 4.4.10)
pip install PyFoam

julia

using Pkg

Pkg.add("IJulia")
Pkg.add("PyPlot")
#ENV["PYTHON"] = /path/to/python/which/installed/PyFoam
#ENV["PYTHON"] = /home/user/.conda/env/py3/bin/python
#ENV["PYTHON"] = /home/user/Applications/anaconda3/bin/python
Pkg.add("PyCall")
Pkg.add("DataStructures")

exit()

export JULIA_NUM_THREADS=4

jupyter lab

Example

Example

Tasks

  • done read case dir
  • done read OpenFOAM dictFile
  • done read time
    • done time list
    • field
      • done dimensions
      • done internalField
      • ok boundaryField
  • ok read constant
    • ok mesh
      • done checkMesh
    • done read regionProperties
  • ok read system
  • ok boundaryField
  • ok? parallel thread
  • reconstruct and rm reconstructed times of decDir
  • parseDict without pyFoam