uw-comphys / opencmp

OpenCMP is a computational multiphysics software package based on the finite element method. It is primarily intended for physicochemical processes involving significant convective flow.
https://opencmp.io/
GNU Lesser General Public License v2.1
26 stars 15 forks source link

tutorial 7 fails #14

Closed WilkAndy closed 2 years ago

WilkAndy commented 2 years ago

Error is:

importing NGSolve-6.2.2104
Using the default value of False for ERROR ANALYSIS, check_error.
Using the default value of False for CONTROLLER, active.
Traceback (most recent call last):
  File "run.py", line 112, in <module>
    main(sys.argv[1])
  File "run.py", line 62, in main
    solver = solver_class(model_class, config)
  File "C:\Users\asdf\Documents\opencmp-main\solvers\transient_multistep.py", line 38, in __init__
    super().__init__(model_class, config)
  File "C:\Users\asdf\Documents\opencmp-main\solvers\base_solver.py", line 151, in __init__
    self.model = model_class(self.config, self.t_param)
  File "C:\Users\asdf\Documents\opencmp-main\models\base_model.py", line 184, in __init__
    self.ic_functions.set_initial_conditions(self.IC, self.mesh, self.name, self.model_components)
  File "C:\Users\asdf\Documents\opencmp-main\config_functions\initial_conditions.py", line 78, in set_initial_conditions
    val = self._find_rel_path_for_file(val)
  File "C:\Users\asdf\Documents\opencmp-main\config_functions\base_config_functions.py", line 83, in _find_rel_path_for_file
    raise FileNotFoundError('The given file does not exist.')
FileNotFoundError: The given file does not exist.
Alex-Vasile commented 2 years ago

It appears that it's having trouble finding the initial condition. (Failing in initial_conditions.py).

Tutorials 7 and 8 feature two config files, config and config_IC.

config_IC creates the initial condition files used by config for the main solve.

Is this crash happening when you run opencmp with config or with config_IC?

nasserma commented 2 years ago

Following-up on Alex's comment, please see the tutorial instructions,

https://opencmp.io/tutorials/tutorial_7.html

you need to solve for the initial condition first.