Skip to content

Commit

Permalink
export/field: resimulate fmu
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Dec 4, 2023
1 parent ce6daf2 commit 7b1a865
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ def test_export_fmu_field(fmuType):
fe.export_fmu(path_fmu, fmuType=fmuType, mode="pythonfmu", verbose=True)
assert os.path.isfile(path_fmu), f"fmu not created in {path_fmu}"

summary = fmpy.dump(path_fmu)
print(summary)
start_values = {"x0": 4.0, "x1": 5.0}
result = fmpy.simulate_fmu(path_fmu, start_values=start_values)
print(result)

# simulate with OMSimulator
have_omsimulator = True
try:
Expand Down

0 comments on commit 7b1a865

Please sign in to comment.