OpenPisco.ExternalTools.FreeFem.FreeFemInterface module#

FreefemInterface

This is the dedicated interface for the external physical solver Code_Aster. Its main responsability is to facilitate the interactions with Code_Aster, either by providing features to build the command line required to run the solver or to retrieve field computed by said solver.

OpenPisco.ExternalTools.FreeFem.FreeFemInterface.CheckIntegrity(GUI=False)[source]#
class OpenPisco.ExternalTools.FreeFem.FreeFemInterface.FreeFemInterface[source]#

Bases: AppExecutableBase

class FreeFemInterface#

Interface for the finite element solver Freefem++

DeleteGeneratedFiles()[source]#

Delete specific generated files after run

ExecuteFreefem()[source]#

Run Freefem++ executable

GetNodalField(name: str) ndarray[source]#

Retrieve nodal field

Parameters

name (str) – field name

Returns

nodal field value

Return type

np.ndarray

GetScalar(name: str) float[source]#

Retrieve scalar

Parameters

name (str) – scalar name

Returns

scalar value

Return type

float

GetSolution(i: int = 0) ndarray[source]#

Retrieve solution

Parameters

i (int, optional) – solution index, by default 0

Returns

solution at index i

Return type

np.ndarray