FEMParameters

class nrv.fmod.FEM.fenics_utils.FEMParameters(D=3, mesh_file='', data=None)[source]

Class gathering parameters of a FEM FEniCS simulation. It allows to add, modify and store domains, boundaries condition and internal boundaries (thin layers) Can be saved and used to generate FEMsimulation.

Methods

FEMParameters.__init__([D, mesh_file, data])

initialisation of the FEMParameters:

FEMParameters.add_boundary(mesh_domain, btype)

add new boundary or update if mesh_domain already exists

FEMParameters.add_domain(mesh_domain[, ...])

add new domain or update if mesh_domain already exists

FEMParameters.add_inboundary(mesh_domain, ...)

add new internal boundary or update if mesh_domain already exists

FEMParameters.get_mixedspace_domain([...])

TO DO

FEMParameters.get_mixedspace_mat_pty([...])

TO DO

FEMParameters.get_parameters()

Generic method returning all the atributes of an NRV_class instance

FEMParameters.get_space_of_domain(i_domain)

TO DO

FEMParameters.get_spaces_of_ibound(i_ibound)

retrun the surounding spaces of an internal boundary.

FEMParameters.load(data)

Load all FEMParameters properties from a dictionary or a json file

FEMParameters.load_SimParameters([data])

FEMParameters.print_mixedspace_domain()

FEMParameters.print_mixedspace_mat_pty()

FEMParameters.save([save, fname])

Return FEMParameters as dictionary and eventually save it as json file

FEMParameters.save_SimParameters([save, fname])

FEMParameters.set_mesh_file(new_mesh_file)

set a new mesh file name

FEMParameters.set_parameters(**kawrgs)

Generic method to set any attribute of NRV_class instance