FEMResults

class nrv.fmod.FEM.fenics_utils.FEMResults(mesh_file='', domain=None, elem=('Lagrange', 1), V=None, vout=None, comm=<mpi4py.MPI.Intracomm object>)[source]

Result of a FEMSimulation. Store the resulting function space giving the possibility to apply basic mathematical operations on multiple results

Attributes

FEMResults.vector

Raw coefficient vector of the stored FEM function.

Methods

FEMResults.__init__([mesh_file, domain, ...])

initialisation of the FEMParameters:

FEMResults.aline_V(res2)

Change the function space of the result to aline with the result of another FEMResults

FEMResults.clone_res()

Create an empty FEMResults shell sharing the same mesh/function-space metadata.

FEMResults.eval(X[, is_multi_proc])

Eval the result field at X position

FEMResults.get_parameters()

Generic method returning all the atributes of an NRV_class instance

FEMResults.load(file)

Load a FEM result from the legacy .sres format.

FEMResults.load_sim_result([data])

Deprecated alias of load().

FEMResults.save(file[, ftype, overwrite, t])

Save the FEM result to disk.

FEMResults.save_sim_result(file[, ftype, ...])

Deprecated alias of save().

FEMResults.set_parameters(**kawrgs)

Generic method to set any attribute of NRV_class instance

FEMResults.set_sim_result([mesh_file, ...])

Update the FEM result metadata and underlying function objects.