예제 #1
0
# file: plotMaximumCFL.py
# author: Olivier Mesnard ([email protected])
# description: Plot the instantaneous maximum CFL number.
# Run this script from the simulation directory.

from snake.openfoam.simulation import OpenFOAMSimulation

simulation = OpenFOAMSimulation()
simulation.read_maximum_cfl('log.run/log.icoFoam')
simulation.get_mean_maximum_cfl(limits=(60.0, 80.0))
simulation.plot_maximum_cfl(display_extrema=True,
                            order=200,
                            limits=(0.0, 100.0, 0.5, 2.0),
                            save_name='maximumCFL')
예제 #2
0
"""
Plots the maximum CFL number over the course of the simulation.

The maximum CFL values are read from the log file (output) of OpenFOAM.
"""

import os
from snake.openfoam.simulation import OpenFOAMSimulation

simulation = OpenFOAMSimulation()
filepath = os.path.join('log.run', 'log.icoFoam')
simulation.read_maximum_cfl(filepath)
simulation.get_mean_maximum_cfl(limits=(60.0, 80.0))
simulation.plot_maximum_cfl(display_extrema=True,
                            order=200,
                            limits=(0.0, 100.0, 0.5, 2.0),
                            save_name='maximumCFL')
예제 #3
0
"""
Plots the maximum CFL number over the course of the simulation.

The maximum CFL values are read from the log file (output) of OpenFOAM.
"""

import os
from snake.openfoam.simulation import OpenFOAMSimulation


simulation = OpenFOAMSimulation()
filepath = os.path.join('log.run', 'log.icoFoam')
simulation.read_maximum_cfl(filepath)
simulation.get_mean_maximum_cfl(limits=(60.0, 80.0))
simulation.plot_maximum_cfl(display_extrema=True, order=200,
                            limits=(0.0, 100.0, 0.5, 2.0),
                            save_name='maximumCFL')
예제 #4
0
# file: plotMaximumCFL.py
# author: Olivier Mesnard ([email protected])
# description: Plot the instantaneous maximum CFL number.
# Run this script from the simulation directory.


from snake.openfoam.simulation import OpenFOAMSimulation


simulation = OpenFOAMSimulation()
simulation.read_maximum_cfl('log.run/log.icoFoam')
simulation.get_mean_maximum_cfl(limits=(60.0, 80.0))
simulation.plot_maximum_cfl(display_extrema=True, order=200,
                            limits=(0.0, 100.0, 0.5, 2.0),
                            save_name='maximumCFL')