OpenPisco.ExternalTools.FreeFem.FreeFemInterface module#

FreeFemInterface

This interface is specifically designed for the external physical solver FreeFem. Its primary role is to streamline interactions with FreeFem, whether by offering tools to construct the necessary command line for running the solver or by retrieving the fields computed by the 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