COMSOL_model

class nrv.fmod.FEM.COMSOL_model(fname, Ncore=None, handle_server=False)[source]

A class for COMSOL Finite Element Models, inherits from FEM_model.

Methods

COMSOL_model.__init__(fname[, Ncore, ...])

Creates a instance of a COMSOL Finite Element Model object.

COMSOL_model.build_and_mesh()

Build the geometry and perform meshing process

COMSOL_model.clear()

Clear the mesh and result section of the model

COMSOL_model.close()

Close the FEM simulation and the COMSOL link

COMSOL_model.export([path])

Export the figures of the COMSOL results and posprocess (in PNG format)

COMSOL_model.get_meshes()

Get the different meshes implemented in the model

COMSOL_model.get_parameter(p_name)

Get a specific parameter

COMSOL_model.get_parameters()

Get the all the parameters in the model as a python dictionary.

COMSOL_model.get_potentials(x, y, z)

Get the potential on a line to get extracellular potential for axons stimulation.

COMSOL_model.get_timers([verbose])

Returns the timers of each step of the FEM computation

COMSOL_model.load(data[, blacklist])

Generic loading method for NRV_class instance

COMSOL_model.save()

Save the changes to the model file.

COMSOL_model.set_Ncore(N)

Set the number of cores to use for the FEM

COMSOL_model.set_parameter(p_name, p_value)

Set a parameter to a desired value

COMSOL_model.set_parameters(**kawrgs)

Generic method to set any attribute of NRV_class instance

COMSOL_model.solve()

Solve the model