SimulationInformation

class sharpy.utils.generate_cases.SimulationInformation[source]

Simulation information needed to build a case

define_num_steps(num_steps)[source]

Set the number of steps in the simulation for all the solvers

Parameters

num_steps (int) – number of steps

define_uinf(unit_vector, norm)[source]

Set the inflow velocity in the simulation for all the solvers

Parameters
  • unit_vector (np.array) – direction of the inflow velocity

  • norm (float) – Norm of the inflow velocity

generate_dyn_file(num_steps)[source]

Generates the dynamic file

Parameters
  • route (string) – path of the case

  • case_name (string) – name of the case

  • num_steps (int) – number of steps

generate_solver_file()[source]

Generates the solver file

Parameters
  • route (string) – path of the case

  • case_name (string) – name of the case

set_default_values()[source]

Set the default values for all the solvers

set_variable_all_dicts(variable, value)[source]

Defines the value of a variable in all the available solvers

Parameters
  • variable (str) – variable name

  • ) (value () – value