Commit 43b5cdbb authored by Markus Holzer's avatar Markus Holzer
Browse files

Hopefully final version

parent 13135a11
Pipeline #39760 canceled with stages
in 8 minutes and 37 seconds
......@@ -130,13 +130,7 @@ minimal-windows:
- pip install git+https://gitlab-ci-token:${CI_JOB_TOKEN}@i10git.cs.fau.de/pycodegen/pystencils.git@master#egg=pystencils
- python -c "import numpy"
- pip install sympy==1.9
- pip install numpy --upgrade
- pip install appdirs --upgrade
- pip install joblib --upgrade
- env
- pip list
- pwd
- py.test -v -m "not longrun" lbmpy_tests/test_quicktests.py
- py.test -v -m "not (notebook or longrun)"
minimal-sympy-master:
stage: test
......
......@@ -4,6 +4,8 @@ import tempfile
import runpy
import sys
import warnings
import platform
import nbformat
from nbconvert import PythonExporter
import sympy
......@@ -60,6 +62,9 @@ except ImportError:
os.path.join(SCRIPT_FOLDER,
"lbmpy_tests/full_scenarios/kida_vortex_flow/scenario_kida_vortex_flow.py")]
if platform.system().lower() == 'windows':
collect_ignore += [os.path.join(SCRIPT_FOLDER, "lbmpy_tests/test_quicktests.py.py")]
sver = sympy.__version__.split(".")
if int(sver[0]) == 1 and int(sver[1]) < 2:
add_path_to_ignore('lbmpy_tests/phasefield')
......
......@@ -13,30 +13,28 @@ def test_poiseuille_channel_quicktest():
def test_entropic_methods():
sc_kbc = create_lid_driven_cavity((40, 40), method=Method.TRT_KBC_N4,
relaxation_rates=[1.8, sp.Symbol("omega_free")],
lid_velocity=0.005,
sc_kbc = create_lid_driven_cavity((20, 20), method=Method.TRT_KBC_N4,
relaxation_rates=[1.9999, sp.Symbol("omega_free")],
entropic_newton_iterations=3, entropic=True, compressible=True,
zero_centered=False)
zero_centered=False, force=(-1e-10, 0), force_model=ForceModel.LUO)
sc_entropic = create_lid_driven_cavity((40, 40), method=Method.ENTROPIC_SRT, relaxation_rate=1.99,
lid_velocity=0.005, compressible=True, zero_centered=False,
force=(-1e-10, 0), force_model=ForceModel.LUO)
ps.show_code(sc_kbc.ast)
print(sc_kbc.velocity[:, :])
sc_srt = create_lid_driven_cavity((40, 40), relaxation_rate=1.9999, lid_velocity=0.05, compressible=True,
zero_centered=False, force=(-1e-10, 0), force_model=ForceModel.LUO)
sc_kbc.run(100)
sc_entropic.run(100)
sc_entropic = create_lid_driven_cavity((40, 40), method=Method.ENTROPIC_SRT, relaxation_rate=1.9999,
lid_velocity=0.05, compressible=True, zero_centered=False,
force=(-1e-10, 0), force_model=ForceModel.LUO)
print("++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++")
print(sc_kbc.velocity[:, :])
sc_srt.run(1000)
sc_kbc.run(1000)
sc_entropic.run(1000)
assert np.isnan(np.max(sc_srt.velocity[:, :]))
assert np.isfinite(np.max(sc_kbc.velocity[:, :]))
assert np.isfinite(np.max(sc_entropic.velocity[:, :]))
def test_cumulant_ldc():
sc_cumulant = create_lid_driven_cavity((40, 40), method=Method.CUMULANT, relaxation_rate=1.999999,
sc_cumulant = create_lid_driven_cavity((20, 20), method=Method.CUMULANT, relaxation_rate=1.999999,
compressible=True, force=(-1e-10, 0))
sc_cumulant.run(100)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment