Solution (class)

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

class Solution(nodal={}, edge={}, face={}, volume={}, init_dict=None)[source]

Bases: pyleecan.Classes._frozen.FrozenClass

Define a solution related to a Mesh object.

VERSION = 1
get_field(field_name)

Get the value of variables stored in Solution.

Parameters:
  • self (Solution) – an Solution object
  • field_name (str) – name of the field to return
Returns:

field – an array of field values

Return type:

array

set_field(field_value, field_name, field_type)

Set the value of variables stored in Solution.

self : Solution
an Solution object
field_value : array
an array of field value
field_value : str
the name of the variable corresponding to field_value
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__)

nodal

A solution related to nodes

edge

A solution related to edges

face

A solution related to faces

volume

A solution related to volumes