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.ExtractInteriorMesh(levelset, userElemTagsToKeep=None)[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]#