doc:user:meshtransfer:datatransferbetweenmeshes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:meshtransfer:datatransferbetweenmeshes [2014/12/03 13:42] – [Méthode de transfert utilisant des volumes finis] bussetta | doc:user:meshtransfer:datatransferbetweenmeshes [2016/03/30 15:23] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 36: | Line 36: | ||
On suppose que '' | On suppose que '' | ||
On souhaite transférer les données de l' | On souhaite transférer les données de l' | ||
+ | Pour utiliser le calcul des transfert de donnée il faut importer '' | ||
+ | from wrap.mtDataTransfer import * | ||
transferOperator = MetaforTransferOperator(oldMetafor, | transferOperator = MetaforTransferOperator(oldMetafor, | ||
transferOperator.setCouplingInteraction(oldInteraction, | transferOperator.setCouplingInteraction(oldInteraction, | ||
Line 99: | Line 101: | ||
La définition de l' '' | La définition de l' '' | ||
- | transferElementProperties = ElementProperties(METMCell) | + | transferElementProperties = ElementProperties(MTMCell) |
transferElementProperties.put (MTMSOLVERTYPE, | transferElementProperties.put (MTMSOLVERTYPE, | ||
transferElementProperties.put (INTPT_NB | transferElementProperties.put (INTPT_NB | ||
Line 117: | Line 119: | ||
* '' | * '' | ||
- | Pour utiliser le calcul exact (nécessite la construction d'un supermaillage) il faut remplacer '' | + | Pour utiliser le calcul exact (nécessite la construction d'un supermaillage) il faut remplacer '' |
from wrap.mtExactDataTransfer_CGAL import * | from wrap.mtExactDataTransfer_CGAL import * | ||
transferElementProperties = ElementProperties(ExactMTMCell) | transferElementProperties = ElementProperties(ExactMTMCell) | ||
Line 147: | Line 149: | ||
* '' | * '' | ||
- | Pour utiliser le calcul exact (nécessite la construction d'un supermaillage) il faut remplacer '' | + | Pour utiliser le calcul exact (nécessite la construction d'un supermaillage) il faut remplacer '' |
from wrap.mtExactDataTransfer_CGAL import * | from wrap.mtExactDataTransfer_CGAL import * | ||
transferElementProperties = ElementProperties(ExactFVTMCell) | transferElementProperties = ElementProperties(ExactFVTMCell) | ||
Line 178: | Line 180: | ||
transferElementProperties = ElementProperties(NeighbourTMCell) | transferElementProperties = ElementProperties(NeighbourTMCell) | ||
transferElementProperties.put (FVCELLTYPE, | transferElementProperties.put (FVCELLTYPE, | ||
+ | |||
+ | ===== Exemple | ||
+ | |||
+ | On souhaite transférer les données de '' | ||
+ | |||
+ | transferElementProperties = ElementProperties(FVTMCell) | ||
+ | transferElementProperties.put (FVCELLTYPE , LINEARRECCELL) | ||
+ | transferElementProperties.put (STENCILTYPE, | ||
+ | transferElementProperties.put (LIMITERTYPE, | ||
+ | transferElementProperties.put (INTPT_NB | ||
+ | |||
+ | transferOperator = MetaforTransferOperator(oldMetafor, | ||
+ | transferOperator.setCouplingInteraction(oldInteraction1, | ||
+ | transferOperator.setCouplingInteraction(oldInteraction2, | ||
+ | |||
+ | region1 = transferOperator.get(oldInteraction1) # optionnelle | ||
+ | region1.add(transferElementProperties) # optionnelle | ||
+ | |||
+ | region2 = transferOperator.get(oldInteraction2) # optionnelle | ||
+ | region2.add(transferElementProperties) # optionnelle | ||
+ | |||
+ | transferOperator.execute() | ||
===== Extracteur de valeurs ===== | ===== Extracteur de valeurs ===== |
doc/user/meshtransfer/datatransferbetweenmeshes.1417610522.txt.gz · Last modified: 2016/03/30 15:22 (external edit)