zoomy_core.model.analysis module

zoomy_core.model.analysis module#

Module zoomy_core.model.analysis.

class zoomy_core.model.analysis.ModelAnalyser(model)#

Bases: object

ModelAnalyser. (class).

get_equations()#

Get equations.

print_equations()#

Print equations.

get_time_space()#

Get time space.

get_eps()#

Get eps.

create_functions_from_list(names)#

Create functions from list.

delete_equations(indices)#

Delete equations.

insert_plane_wave_ansatz(functions_to_replace)#

Apply the ansatz to ALL variables passed in the list.

solve_for_dispersion_relation()#

Solve for dispersion relation.

remove_exponential()#

Remove exponential.

linearize_system(q, qaux, source=None, constraints=None)#

Linearize the system given the state vectors q and qaux.

Parameters:
  • q – State vector (prognostic variables)

  • qaux – Auxiliary state vector

  • source – (Optional) The source term vector S. If None, S=0.

  • constraints – (Optional) The constraint vector C. If None, C=empty.

solve_for_constraints(list_of_selected_equations, list_of_variables)#

Manually solve specific equations for specific variables and substitute the results into the remaining system.

Parameters:
  • list_of_selected_equations – Indices of equations to solve (e.g., [3, 4, 7])

  • list_of_variables – Variables to solve for (e.g., [p0, p1, w2])