OpenPisco.PhysicalSolvers.PhysicalSolversTools module#

OpenPisco.PhysicalSolvers.PhysicalSolversTools.CellToPointData(support, field, dim=3, weightbyElementSize=True)[source]#
OpenPisco.PhysicalSolvers.PhysicalSolversTools.CellToPointData(support, field, dim=3, weightbyElementSize=True)[source]#

Transport data from elements of a given dimension to node. The data must be constant at elements. By default the routine computes a weighted mean of data at elements (the weights are the volumes of elements). Setting weightbyElementSize=False the routine computes an arithmetic mean.

Parameters
  • support (Mesh) – input mesh

  • field (dict) – dictionary containing pairs (elementname, data)

  • dim (int) – specify the dimension of elements to treat (optional, we treat volumic elements by default)

  • weightbyElementSize (bool) – specify if the mean from elements to nodes should be weighted byelements size or arithmetic

Returns

data transported at mesh nodes

:rtype np.ndarry

OpenPisco.PhysicalSolvers.PhysicalSolversTools.CheckBorderElements(res)[source]#
OpenPisco.PhysicalSolvers.PhysicalSolversTools.CheckIntegrity()[source]#
OpenPisco.PhysicalSolvers.PhysicalSolversTools.ComputeSymMatrixProduct(m1, m2)[source]#
OpenPisco.PhysicalSolvers.PhysicalSolversTools.ExtractInteriorMesh(levelset, userElemTagsToKeep=None)[source]#
OpenPisco.PhysicalSolvers.PhysicalSolversTools.IpToNodesData(IPfield, dim=3)[source]#
OpenPisco.PhysicalSolvers.PhysicalSolversTools.IpToNodesData(IPfield, dim=3)[source]#

Transport data from integration points to mesh nodes. The data to treat are filtered by the dimensionality of the mesh elements supporting the integration points. By default, we treat data at volumic elements (dim=3)

:param IPField IPField : integration points field :param int dim: dimension of mesh elements supporting the integration points (optional) :return: integration points data transported to nodes :rtype np.ndarry

OpenPisco.PhysicalSolvers.PhysicalSolversTools.IpToNodesDataOnSurface(IPfield, surfacicTag)[source]#
OpenPisco.PhysicalSolvers.PhysicalSolversTools.LinToQuadMesh(inputmesh)[source]#
OpenPisco.PhysicalSolvers.PhysicalSolversTools.LinToQuadMesh(inputmesh)[source]#

Convert a linear mesh into a quadratic one.

:param Mesh inputmesh : input linear mesh :return: quadratic mesh built from the linear one :rtype Mesh

OpenPisco.PhysicalSolvers.PhysicalSolversTools.SymMatrixToMandelRepresentation(arg)[source]#