Closed speth closed 2 months ago
Hi @speth, thanks for the thorough message. I will have a PR to address these issues up shortly, in the meantime I shall comment on them here:
run
call failiing. I have improved that and this has been fixed.Hi @speth, please let me know if #44 addresses your issues.
With a new checkout of commit 51fe6ab, I now get the following error while trying to run analysis.py
in this example:
Using the default value of 5 for SETUP, num_cores.
Using the default value of False for SETUP, DEBUG.
Using the default value of ./ for SETUP, working_directory.
Using the default value of output_ccm/ for SETUP, output_folder_path.
Using the default value of cache/ for SETUP, tmp_folder_path.
Using the default value of log/ for SETUP, log_folder_path.
Using the default value of 1e-15 for COMPARTMENT MODELLING, flow_threshold.
Using the default value of 1e-15 for COMPARTMENT MODELLING, flow_threshold_facet.
Using the default value of 0.05 for COMPARTMENT MODELLING, dist_threshold.
Using the default value of 0.01 for COMPARTMENT MODELLING, atol_opt.
Using the default value of 0.0001 for SIMULATION, first_timestep.
Using the default value of LSODA for SIMULATION, solver.
Using the default value of None for SIMULATION, reactions_file_path.
Using the default value of 1e-06 for SIMULATION, rtol.
Using the default value of 1e-06 for SIMULATION, atol.
Using the default value of all for SIMULATION, t_eval.
Using the default value of True for POST-PROCESSING, save_to_file.
Using the default value of False for POST-PROCESSING, network_diagram.
Using the default value of 0 for POST-PROCESSING, subdivisions.
Using the default value of 1 for POST-PROCESSING, interpolant_order.
Using the default value of compartment_pfr_vtu/ for POST-PROCESSING, vtu_dir.
End COMPARTMENTALIZE
Creating CSTR network
Traceback (most recent call last):
File "/Users/speth/src/openccm/examples/OpenCMP/pipe_with_recirc_2d/analysis.py", line 202, in <module>
data_pfr, data_cstr = rtd_cm()
^^^^^^^^
File "/Users/speth/src/openccm/examples/OpenCMP/pipe_with_recirc_2d/analysis.py", line 150, in rtd_cm
run(config_parser)
File "/Users/speth/src/openccm/openccm/run.py", line 169, in run
model_network = create_model_network(model, compartments_post, compartment_network, c_mesh, dir_vec, flows_and_upwind, config_parser)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/speth/src/openccm/openccm/compartment_models/__init__.py", line 43, in create_model_network
return create_cstr_network(compartments, compartment_network, mesh, flows_and_upwind, dir_vec, config_parser)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/speth/src/openccm/openccm/compartment_models/cstr.py", line 224, in create_cstr_network
assert len(outlets) > 0
^^^^^^^^^^^^^^^^
AssertionError
I just retried it and it's working on two of my machines, let's see if we can figure out what's different.
Based on the output, it looks like it's using the cache. Can you try deleting cache/
and output_ccm/
before re-running analysis.py
.
The example is working for me now.
I was not able to run the
pipe_with_recirc_2d
example.The first step,
run_opencmp.py
seems to work. But executinganalysis.py
fails with the following output:Besides the fatal error regarding the missing NumPy import, the multiple warnings from OpenCCM seem a bit surprising to see in the example.
I also noticed that running
analysis.py
again fails, as it seems to move or delete some of its own input data. On subsequent runs, I get the error:This was found in the context of the review for JOSS (https://github.com/openjournals/joss-reviews/issues/6963).
Here is a list of the package versions I have installed in my Conda environment: env.txt