OpenPisco.Unstructured.MeshAdaptationTools module#

OpenPisco.Unstructured.MeshAdaptationTools.CheckIntegrity(GUI=False)[source]#
OpenPisco.Unstructured.MeshAdaptationTools.CheckIntegrity_Freefem_2D()[source]#
OpenPisco.Unstructured.MeshAdaptationTools.CheckIntegrity_Freefem_3D()[source]#
OpenPisco.Unstructured.MeshAdaptationTools.CheckIntegrity_MeshAdaptation()[source]#
OpenPisco.Unstructured.MeshAdaptationTools.ComputeLevelSetMetric(levelset, opts)[source]#

Compute a metric field for level sets using FreeFem++

Parameters
  • levelset (level set) –

  • (float) (hmax) –

  • (float)

Returns

The metric field computed at mesh nodes

Return type

np.ndarray

class OpenPisco.Unstructured.MeshAdaptationTools.FreeFemLevelSetMetricComputation[source]#

Bases: object

Class for a file-exchange-based interface with Freefem for computing a level-set metric field for mesh adaptation.

ComputeLevelSetMetric(levelset)[source]#
GenerateFreeFemScriptAndSetCodeInterface()[source]#
GetMetric()[source]#
SetSupport(support)[source]#
WriteLevelSet(field)[source]#
WriteSupport()[source]#
class OpenPisco.Unstructured.MeshAdaptationTools.IsotropicMeshAdaptation[source]#

Bases: MeshAdaptationBase

Class to compute isotropic size fields used for mesh adaptation

ComputeGlobalErrorEstimator()[source]#
ComputeMetricFromError()[source]#
class OpenPisco.Unstructured.MeshAdaptationTools.MeshAdaptationBase[source]#

Bases: object

Base class to compute size fields used for mesh adaptation

GetGlobalErrorEstimator()[source]#
GetLocalErrorEstimator()[source]#
GetMetric()[source]#
SetLocalErrorEstimator(data)[source]#
SetSupport(support)[source]#
SetTolerance(Tolerance)[source]#
OpenPisco.Unstructured.MeshAdaptationTools.RunIsotropicMeshAdaptation(mesh, error, tol)[source]#

Compute a nodal isotropic size field starting from an error field at mesh elements

Parameters
  • mesh (mesh) –

  • (np.ndarray) (error) –

  • (float) (tol) –

Returns

  • np.ndarray – The metric field computed at mesh nodes

  • float – The global error estimator