MeshSolution (class)

File generated according to Generator/ClassesRef/Mesh/MeshSolution.csv WARNING! All changes made in this file will be lost!

class MeshSolution(name='', mesh=[], solution=[], is_same_mesh=True, init_dict=None)[source]

Bases: pyleecan.Classes._frozen.FrozenClass

To associate a Mesh with one or several solutions

VERSION = 1
get_mesh(j_t0=0)

Return the mesh corresponding to a time step.

Parameters:
  • self (MeshSolution) – an MeshSolution object
  • j_t0 (int) – a time step
Returns:

mesh – a Mesh object

Return type:

Mesh

get_solution(j_t0=0)

Return the solution corresponding to a time step.

Parameters:
  • self (MeshSolution) – an MeshSolution object
  • j_t0 (int) – a time step
Returns:

solution – a Solution object

Return type:

Solution

save(save_path='')

Save the object to the save_path

Parameters:
  • self – A pyleecan object
  • save_path (str) – path to the folder to save the object
get_logger()

Get the object logger or its parent’s one

Parameters:obj – A pyleecan object
Returns:logger – Pyleecan object dedicated logger
Return type:logging.Logger
as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

name

(Optional) Descriptive name of the mesh

mesh

A Mesh object.

solution

A Solution object which are defined with respect to the mesh attribute.

is_same_mesh

1 if the mesh is the same at each time step