COMSOL_model.__init__

COMSOL_model.__init__(fname, Ncore=None, handle_server=False)[source]

Creates a instance of a COMSOL Finite Element Model object.

Parameters:
  • fname (str) – path to the COMSOL (.mph) model file

  • Ncore (int) – number of COMSOL cores for computation. If None is specified, this number is taken from the NRV2.ini configuration file. Byu default set to None

  • handle_server (bool) – if True, the instantiation creates the server, else a external server is used. Usefull for multiple cells sharing the same model