fenics_material

class nrv.fmod.FEM.fenics_utils.fenics_material(mat: any = None)[source]

A class of materials better suited to FEM resolution with fenics. It allows material parameters to be updated dynamically between FEM simulations, which reduces calculation speed and memory consumption.

Parameters:

mat (material) – generate the fenics material from mat attribute

Attributes

fenics_material.sigma

conductivity of the material scaled by UN factor.

fenics_material.sigma_fen

Methods

fenics_material.__init__([mat])

initialisation of the fenics_material

fenics_material.get_fenics_sigma(domain[, ...])

Returns fenicsx compatible sigma

fenics_material.get_parameters()

Generic method returning all the atributes of an NRV_class instance

fenics_material.load(data[, blacklist])

Generic loading method for NRV_class instance

fenics_material.save([save, fname, blacklist])

Return material as dictionary and eventually save it as json file

fenics_material.set_parameters(**kawrgs)

Generic method to set any attribute of NRV_class instance

fenics_material.update_fenics_sigma([...])

Update sigma value of a material in fenics FEM simulation.

fenics_material.update_mat(mat)