3.1.4.1.3. c3po.mpi.mpiExchangeMethods.MPISharedRemappingMulti1D3D module
Contain the class MPISharedRemappingMulti1D3D.
- class c3po.mpi.mpiExchangeMethods.MPISharedRemappingMulti1D3D.MPIMulti1D3DRemapper(xCoordinates, yCoordinates, indexTable, weights, physics, meshAlignment=False, offset=None, rescaling=1.0, rotation=0.0, outsideCellsScreening=False, reverseTransformations=True)
Bases:
MPIRemapperAllow to share the mesh projection for different
MPISharedRemappingMulti1D3Dobjects by building them with the same instance of this class.- __init__(xCoordinates, yCoordinates, indexTable, weights, physics, meshAlignment=False, offset=None, rescaling=1.0, rotation=0.0, outsideCellsScreening=False, reverseTransformations=True)
Build a
MPIMulti1D3DRemapperobject, the MPI version ofc3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.The constructor has the same form than
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__()with one additional mandatory parameter:physics.Warning
There seems to be a bug in MEDCoupling that may cause wrong results when rescaling is used with a source mesh (
multi1D) of nature IntensiveConservation. In this case, usingreverseTransformations=Falseshould be enough to solve the problem.- Parameters:
xCoordinates – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__().yCoordinates – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__().indexTable – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__().weights – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__().physics (list[PhysicsDriver], MPICollaborativePhysicsDriver) – The list (or a
c3po.mpi.MPICollaborativePhysicsDriver.MPICollaborativePhysicsDriver) of the 1Dc3po.PhysicsDriver.PhysicsDriverinvolved in the coupling. We just use it to identify remote ones.meshAlignment – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper. The source mesh is themulti1Done and the target mesh the 3D one.offset – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__(). The source mesh is themulti1Done and the target mesh the 3D one.rescaling – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__(). The source mesh is themulti1Done and the target mesh the 3D one.rotation – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__(). The source mesh is themulti1Done and the target mesh the 3D one.outsideCellsScreening – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__().reverseTransformations – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.Multi1D3DRemapper.__init__().
- build1DFields(field3D)
INTERNAL
- build3DField(fields1D, defaultValue=0.0)
INTERNAL
- buildInnerField(meshes1D)
INTERNAL
- getInnerField()
INTERNAL
- getNumberOf1DFields()
INTERNAL
- shift1DFields(shiftMap)
- class c3po.mpi.mpiExchangeMethods.MPISharedRemappingMulti1D3D.MPISharedRemappingMulti1D3D(remapper, reverse=False, defaultValue=0.0, linearTransform=(1.0, 0.0))
Bases:
MPISharedRemappingMPISharedRemappingMulti1D3Dis the MPI version ofc3po.exchangeMethods.SharedRemappingMulti1D3D.SharedRemappingMulti1D3D.- __call__(fieldsToGet, fieldsToSet, valuesToGet)
Project the input fields one by one before returning them as outputs, in the same order.
- __init__(remapper, reverse=False, defaultValue=0.0, linearTransform=(1.0, 0.0))
Build a
MPISharedRemappingMulti1D3Dobject, to be given to anc3po.mpi.MPIExchanger.MPIExchanger.Warning
MPISharedRemappingMulti1D3Dis deprecated and will soon by deleted. Please usec3po.mpi.multi1Dpackage instead.- Parameters:
remapper (MPIMulti1D3DRemapper) – A MPIMulti1D3DRemapper object performing the projection. It can thus be shared with other instances of
MPISharedRemappingMulti1D3D(its initialization will always be done only once).reverse – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.SharedRemappingMulti1D3D.__init__(). Direct ismulti1D-> 3D, reverse is 3D ->multi1D.defaultValue – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.SharedRemappingMulti1D3D.__init__().linearTransform – See
c3po.exchangeMethods.SharedRemappingMulti1D3D.SharedRemappingMulti1D3D.__init__().
- clean()
- getPatterns()