-
Notifications
You must be signed in to change notification settings - Fork 3
Running the Solver from MATLAB
Jimbles edited this page Jun 19, 2018
·
2 revisions
To facilitate the use of the solver, two functions are provided that allow Matlab users to define the solver settings and run the solver directly from Matlab code. The function PEITS_root/PEITS/dune-peits/matlab/set_forward_default_values.m returns a struct with default settings for the solver, which are documented in the code. Once the forward_settings struct is set up and adjusted, the solver can be called with the function dune-peits/matlab/run_forward_solver.m:
forward_settings = set_forward_default_values();
[v,J,output] = run_forward_solver(forward_settings, processes);
The electrode voltages are written to v, J is the Jacobian matrix, output contains the run time output of the solver and processes depends on how many parallel processes the solver should be run.