From 84a0cb3363a15d7707f7c48415f247abf56ce1bb Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 15 May 2018 13:26:46 +0300 Subject: [PATCH] medcoupling documentation modification --- CMakeLists.txt | 2 + doc/CMakeLists.txt | 3 +- doc/developer/CMakeLists.txt | 20 + .../doxygen/BuildPyExamplesFromCPP.py | 0 .../doxygen/CMakeLists.txt | 45 +- .../doxygen/Doxyfile_med_dev.in} | 11 +- .../doxygen/doxfiles/appendix/appendix.dox | 0 .../doxygen/doxfiles/appendix/glossary.dox | 0 .../doxygen/doxfiles/appendix/install.dox | 0 .../doxfiles/appendix/interpkernel.dox | 0 .../doxygen/doxfiles/appendix/med-file.dox | 0 .../doxygen/doxfiles/appendix/porting.dox | 0 .../doxygen/doxfiles/appendix/references.dox | 0 .../doxygen/doxfiles/examples/examples.dox | 0 .../examples/medcouplingexamplesarrays.doxy | 0 .../examples/medcouplingexamplesfields.doxy | 0 .../examples/medcouplingexamplesfooter.doxy | 0 .../examples/medcouplingexamplesheader.doxy | 0 .../examples/medcouplingexamplesmeshes.doxy | 0 .../examples/medcouplingexamplesother.doxy | 0 .../doxygen/doxfiles/faq.dox | 0 .../doxygen/doxfiles/index.dox | 0 .../doxfiles/reference/arrays/arrays.dox | 0 .../doxfiles/reference/arrays/numbering.dox | 0 .../reference/cpp/MEDCouplingTimeLabel.dox | 0 .../doxygen/doxfiles/reference/cpp/cpp.dox | 0 .../reference/distrib/corba-distrib.dox | 0 .../doxfiles/reference/distrib/distrib.dox | 0 .../doxfiles/reference/distrib/parallel.dox | 0 .../reference/fields/MEDCouplingFields.dox | 0 .../reference/fields/discretization.dox | 0 .../doxfiles/reference/fields/fields.dox | 0 .../reference/interpolation/Geometric2D.dox | 0 .../reference/interpolation/NatureOfField.dox | 0 .../reference/interpolation/barycoords.dox | 0 .../reference/interpolation/interpolation.dox | 0 .../reference/interpolation/interptheory.dox | 0 .../interpolation/intersec-specifics.dox | 0 .../reference/interpolation/intersectors.dox | 0 .../reference/interpolation/intro-interp.dox | 0 .../reference/interpolation/mapped_bary.dox | 0 .../reference/interpolation/remapper.dox | 0 .../doxfiles/reference/medcoupling.dox | 0 .../reference/medloader/MEDLoader.dox | 0 .../medloader/MEDLoaderAdvancedAPI.dox | 0 .../reference/medloader/MEDLoaderBasicAPI.dox | 0 .../reference/medloader/intro-medloader.dox | 0 .../reference/medloader/medloader1.dox | 0 .../reference/meshes/MEDCouplingCMesh.dox | 0 .../reference/meshes/MEDCouplingExtruded.dox | 0 .../reference/meshes/MEDCouplingPointSet.dox | 0 .../reference/meshes/MEDCouplingUMesh.dox | 0 .../doxfiles/reference/meshes/meshes.dox | 0 .../misc/MEDCouplingFieldTemplates.dox | 0 .../doxygen/doxfiles/reference/misc/icoco.dox | 0 .../doxygen/doxfiles/reference/misc/misc.dox | 0 .../doxygen/doxfiles/reference/misc/tools.dox | 0 .../doxygen/doxfiles/reference/reference.dox | 0 .../doxfiles/start/functionalities.dox | 0 .../doxygen/doxfiles/start/intro-start.dox | 0 .../doxygen/doxfiles/start/library.dox | 0 .../doxygen/doxfiles/start/python-api.dox | 0 .../doxygen/doxfiles/start/start.dox | 0 .../doxygen/doxfiles/start/terminology.dox | 0 .../doxygen/doxfiles/tutorial.dox | 0 .../doxygen/doxy2swig/MEDCoupling_doc.i.in | 0 .../doxygen/doxy2swig/MEDLoader_doc.i.in | 0 .../doxygen/doxy2swig/doxy2swig.cmake | 5 +- .../doxygen/doxy2swig/doxy2swig.py | 0 .../doxygen/fakesources/MEDCouplingField.C | 0 .../fakesources/MEDCouplingFieldDouble.C | 0 .../doxygen/fakesources/MEDCouplingMemArray.C | 0 .../doxygen/fakesources/MEDCouplingMesh.C | 0 .../doxygen/fakesources/MEDCouplingPointSet.C | 0 .../doxygen/fakesources/MEDCouplingUMesh.C | 0 .../doxygen/fakesources/MEDFileField.C | 0 .../doxygen/fakesources/MEDFileMesh.C | 0 .../doxygen/fakesources/namespaces.C | 0 .../doxygen/figures/IndirectIndex.jpg | Bin .../doxygen/figures/MED.png | Bin .../doxygen/figures/MEDCouplingUMeshConn.eps | 0 .../doxygen/figures/MEDCouplingUMeshConn.fig | 0 .../doxygen/figures/MEDCouplingUMeshConn.png | Bin .../doxygen/figures/MEDFileConcepts.fig | 0 .../doxygen/figures/MEDFileConcepts.png | Bin .../doxygen/figures/MED_small.eps | 0 .../doxygen/figures/MED_small.png | Bin .../figures/MedCoupling_Architecture.png | Bin .../doxygen/figures/NonCoincident.png | Bin .../doxygen/figures/NonCoincident_small.eps | 0 .../doxygen/figures/NonCoincident_small.png | Bin .../doxygen/figures/NonOverlapping.fig | 0 .../doxygen/figures/NonOverlapping.png | Bin .../doxygen/figures/OverlapDEC1.fig | 0 .../doxygen/figures/OverlapDEC1.png | Bin .../doxygen/figures/SampGeo2D1.eps | 0 .../doxygen/figures/SampGeo2D1.png | Bin .../doxygen/figures/SampGeo2D2.eps | 0 .../doxygen/figures/SampGeo2D2.png | Bin .../doxygen/figures/SampGeo2D3.eps | 0 .../doxygen/figures/SampGeo2D3.png | Bin .../doxygen/figures/SampGeo2D4.eps | 0 .../doxygen/figures/SampGeo2D4.png | Bin .../doxygen/figures/UML-0.png | Bin .../doxygen/figures/UML-1.png | Bin .../doxygen/figures/UML-2.png | Bin .../doxygen/figures/UML-3.png | Bin .../doxygen/figures/UML-4.png | Bin .../doxygen/figures/UML-5.png | Bin .../doxygen/figures/UML-6.png | Bin .../doxygen/figures/UML-7.png | Bin .../doxygen/figures/UML-8.png | Bin .../doxygen/figures/UML.png | Bin .../doxygen/figures/UML_light.png | Bin .../doxygen/figures/UML_small.png | Bin .../doxygen/figures/connectivity_arrays.eps | 0 .../doxygen/figures/connectivity_arrays.png | Bin .../figures/connectivity_arrays_small.eps | 0 .../figures/connectivity_arrays_small.png | Bin .../doxygen/figures/connectivity_example.png | Bin .../figures/connectivity_example_small.png | Bin .../doxygen/figures/fine_mesh.png | Bin .../doxygen/figures/geom.png | Bin .../doxygen/figures/grid_example.png | Bin .../doxygen/figures/interpolationimage.png | Bin .../doxygen/figures/med-file-uml.png | Bin .../figures/med-loader-adv-classes.png | Bin .../doxygen/figures/medlayers.png | Bin .../doxygen/figures/medlayers_70pc.png | Bin .../doxygen/figures/mesh_splitted.png | Bin .../doxygen/figures/mesh_unsplitted.png | Bin .../doxygen/figures/polygon_connectivity.png | Bin .../figures/polygon_connectivity_small.eps | 0 .../figures/polygon_connectivity_small.png | Bin .../figures/polyhedron_connectivity.png | Bin .../figures/polyhedron_connectivity_small.eps | 0 .../figures/polyhedron_connectivity_small.png | Bin .../doxygen/figures/projectionHQ.png | Bin .../doxygen/figures/projectionHQ_600.png | Bin .../doxygen/figures/source_field.png | Bin .../doxygen/figures/source_mesh.png | Bin .../doxygen/figures/target_field.png | Bin .../doxygen/figures/target_mesh.png | Bin .../figures/tetra_simplexize_24_48.jpg | Bin .../doxygen/figures/tetra_simplexize_5_6.jpg | Bin .../doxygen/images/head.png | Bin .../doxygen/static/footer.html | 0 .../doxygen/static/header.html.in | 0 .../doxygen/static/medcoupling_extra.css | 0 doc/tutorial/CMakeLists.txt | 2 +- doc/user/CMakeLists.txt | 25 +- doc/user/conf.py.in | 194 ++++ doc/user/images/cartesian.png | Bin 0 -> 788 bytes doc/user/images/cartesian.py | 113 +++ doc/user/images/convert2quadratic.png | Bin 0 -> 386 bytes doc/user/images/convert2quadratic.py | 144 +++ doc/user/images/curvelinear.png | Bin 0 -> 463 bytes doc/user/images/curvelinear.py | 111 +++ doc/user/images/explodeIntoEdges.png | Bin 0 -> 433 bytes doc/user/images/explodeIntoEdges.py | 123 +++ doc/user/images/extractSlice3D.png | Bin 0 -> 7258 bytes doc/user/images/extractSlice3D.py | 140 +++ doc/user/images/extract_feilds.py | 162 ++++ doc/user/images/extract_fields.png | Bin 0 -> 20844 bytes .../images/extract_mesh_fetched_nodes.png | Bin 0 -> 4096 bytes doc/user/images/extract_mesh_fetched_nodes.py | 114 +++ doc/user/images/extract_mesh_ids.png | Bin 0 -> 2214 bytes doc/user/images/extract_mesh_ids.py | 124 +++ doc/user/images/extrusion.png | Bin 0 -> 6150 bytes doc/user/images/extrusion.py | 173 ++++ doc/user/images/intersect_2d1d.png | Bin 0 -> 2184 bytes doc/user/images/intersect_2d1d.py | 177 ++++ doc/user/images/intersect_2d2d.png | Bin 0 -> 1507 bytes doc/user/images/intersect_2d2d.py | 140 +++ doc/user/images/measure_field.png | Bin 0 -> 11540 bytes doc/user/images/measure_field.py | 101 +++ doc/user/images/medrenumber.png | Bin 0 -> 10782 bytes doc/user/images/medrenumber.py | 148 +++ doc/user/images/orderConsecutiveCells1D.png | Bin 0 -> 1139 bytes doc/user/images/orderConsecutiveCells1D.py | 131 +++ doc/user/images/orient_2d.png | Bin 0 -> 2882 bytes doc/user/images/orient_2d.py | 115 +++ doc/user/images/ortho_field.png | Bin 0 -> 39629 bytes doc/user/images/ortho_field.py | 142 +++ doc/user/images/partition.png | Bin 0 -> 364 bytes doc/user/images/partition.py | 138 +++ doc/user/images/partition_with_layer.png | Bin 0 -> 290 bytes doc/user/images/partition_with_layer.py | 155 ++++ doc/user/images/pointe_fieldnodeint.png | Bin 0 -> 14601 bytes doc/user/images/pointe_fieldnodeint.py | 88 ++ doc/user/images/projection_P0P1_dual.png | Bin 0 -> 642 bytes doc/user/images/projection_P0P1_dual.py | 130 +++ doc/user/images/projection_P0P1_meshes.png | Bin 0 -> 581 bytes doc/user/images/projection_P0P1_meshes.py | 127 +++ doc/user/images/projection_P1P0_dual.png | Bin 0 -> 890 bytes doc/user/images/projection_P1P0_dual.py | 131 +++ doc/user/images/projection_bnd_box.png | Bin 0 -> 1988 bytes doc/user/images/projection_bnd_box.py | 140 +++ ...ojection_setMaxDistance3DSurfIntersect.png | Bin 0 -> 2161 bytes ...rojection_setMaxDistance3DSurfIntersect.py | 126 +++ doc/user/images/renumber_nodes.png | Bin 0 -> 1265 bytes doc/user/images/renumber_nodes.py | 122 +++ doc/user/images/simplexize.png | Bin 0 -> 7000 bytes doc/user/images/simplexize.py | 129 +++ doc/user/images/skin.png | Bin 0 -> 460 bytes doc/user/images/skin.py | 123 +++ doc/user/images/zones.png | Bin 0 -> 216 bytes doc/user/images/zones.py | 107 +++ doc/user/input/basic_concepts.rst | 89 ++ doc/user/input/data_analysis.rst | 561 ++++++++++++ doc/user/input/data_conversion.rst | 246 +++++ doc/user/input/data_movement.rst | 502 +++++++++++ doc/user/input/data_optimization.rst | 49 + doc/user/input/index.rst | 30 + .../locale/fr/LC_MESSAGES/basic_concepts.po | 202 +++++ .../locale/fr/LC_MESSAGES/data_analysis.po | 842 ++++++++++++++++++ .../locale/fr/LC_MESSAGES/data_conversion.po | 476 ++++++++++ .../locale/fr/LC_MESSAGES/data_movement.po | 823 +++++++++++++++++ .../fr/LC_MESSAGES/data_optimization.po | 94 ++ doc/user/locale/fr/LC_MESSAGES/index.po | 80 ++ doc/user/static/switchers.js.in | 72 ++ doc/user/templates/layout.html | 30 + src/MEDCoupling/MEDCouplingFieldDouble.cxx | 4 +- .../MEDCouplingExamplesTest.py | 4 +- .../UsersGuideExamplesTest.py | 616 +++++++++++++ .../UsersGuideExamplesTest_numpy.py | 33 + src/MEDCoupling_Swig/tests.set | 2 + src/MEDLoader/Swig/UsersGuideExamplesTest.py | 186 ++++ src/MEDLoader/Swig/tests.set | 1 + 229 files changed, 8892 insertions(+), 31 deletions(-) create mode 100644 doc/developer/CMakeLists.txt rename doc/{user => developer}/doxygen/BuildPyExamplesFromCPP.py (100%) rename doc/{user => developer}/doxygen/CMakeLists.txt (73%) rename doc/{user/doxygen/Doxyfile_med_user.in => developer/doxygen/Doxyfile_med_dev.in} (98%) rename doc/{user => developer}/doxygen/doxfiles/appendix/appendix.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/appendix/glossary.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/appendix/install.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/appendix/interpkernel.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/appendix/med-file.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/appendix/porting.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/appendix/references.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/examples/examples.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/examples/medcouplingexamplesarrays.doxy (100%) rename doc/{user => developer}/doxygen/doxfiles/examples/medcouplingexamplesfields.doxy (100%) rename doc/{user => developer}/doxygen/doxfiles/examples/medcouplingexamplesfooter.doxy (100%) rename doc/{user => developer}/doxygen/doxfiles/examples/medcouplingexamplesheader.doxy (100%) rename doc/{user => developer}/doxygen/doxfiles/examples/medcouplingexamplesmeshes.doxy (100%) rename doc/{user => developer}/doxygen/doxfiles/examples/medcouplingexamplesother.doxy (100%) rename doc/{user => developer}/doxygen/doxfiles/faq.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/index.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/arrays/arrays.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/arrays/numbering.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/cpp/MEDCouplingTimeLabel.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/cpp/cpp.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/distrib/corba-distrib.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/distrib/distrib.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/distrib/parallel.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/fields/MEDCouplingFields.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/fields/discretization.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/fields/fields.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/Geometric2D.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/NatureOfField.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/barycoords.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/interpolation.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/interptheory.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/intersec-specifics.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/intersectors.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/intro-interp.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/mapped_bary.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/interpolation/remapper.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/medcoupling.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/medloader/MEDLoader.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/medloader/MEDLoaderAdvancedAPI.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/medloader/MEDLoaderBasicAPI.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/medloader/intro-medloader.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/medloader/medloader1.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/meshes/MEDCouplingCMesh.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/meshes/MEDCouplingExtruded.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/meshes/MEDCouplingPointSet.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/meshes/MEDCouplingUMesh.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/meshes/meshes.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/misc/MEDCouplingFieldTemplates.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/misc/icoco.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/misc/misc.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/misc/tools.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/reference/reference.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/start/functionalities.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/start/intro-start.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/start/library.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/start/python-api.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/start/start.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/start/terminology.dox (100%) rename doc/{user => developer}/doxygen/doxfiles/tutorial.dox (100%) rename doc/{user => developer}/doxygen/doxy2swig/MEDCoupling_doc.i.in (100%) rename doc/{user => developer}/doxygen/doxy2swig/MEDLoader_doc.i.in (100%) rename doc/{user => developer}/doxygen/doxy2swig/doxy2swig.cmake (97%) rename doc/{user => developer}/doxygen/doxy2swig/doxy2swig.py (100%) rename doc/{user => developer}/doxygen/fakesources/MEDCouplingField.C (100%) rename doc/{user => developer}/doxygen/fakesources/MEDCouplingFieldDouble.C (100%) rename doc/{user => developer}/doxygen/fakesources/MEDCouplingMemArray.C (100%) rename doc/{user => developer}/doxygen/fakesources/MEDCouplingMesh.C (100%) rename doc/{user => developer}/doxygen/fakesources/MEDCouplingPointSet.C (100%) rename doc/{user => developer}/doxygen/fakesources/MEDCouplingUMesh.C (100%) rename doc/{user => developer}/doxygen/fakesources/MEDFileField.C (100%) rename doc/{user => developer}/doxygen/fakesources/MEDFileMesh.C (100%) rename doc/{user => developer}/doxygen/fakesources/namespaces.C (100%) rename doc/{user => developer}/doxygen/figures/IndirectIndex.jpg (100%) rename doc/{user => developer}/doxygen/figures/MED.png (100%) rename doc/{user => developer}/doxygen/figures/MEDCouplingUMeshConn.eps (100%) rename doc/{user => developer}/doxygen/figures/MEDCouplingUMeshConn.fig (100%) rename doc/{user => developer}/doxygen/figures/MEDCouplingUMeshConn.png (100%) rename doc/{user => developer}/doxygen/figures/MEDFileConcepts.fig (100%) rename doc/{user => developer}/doxygen/figures/MEDFileConcepts.png (100%) rename doc/{user => developer}/doxygen/figures/MED_small.eps (100%) rename doc/{user => developer}/doxygen/figures/MED_small.png (100%) rename doc/{user => developer}/doxygen/figures/MedCoupling_Architecture.png (100%) rename doc/{user => developer}/doxygen/figures/NonCoincident.png (100%) rename doc/{user => developer}/doxygen/figures/NonCoincident_small.eps (100%) rename doc/{user => developer}/doxygen/figures/NonCoincident_small.png (100%) rename doc/{user => developer}/doxygen/figures/NonOverlapping.fig (100%) rename doc/{user => developer}/doxygen/figures/NonOverlapping.png (100%) rename doc/{user => developer}/doxygen/figures/OverlapDEC1.fig (100%) rename doc/{user => developer}/doxygen/figures/OverlapDEC1.png (100%) rename doc/{user => developer}/doxygen/figures/SampGeo2D1.eps (100%) rename doc/{user => developer}/doxygen/figures/SampGeo2D1.png (100%) rename doc/{user => developer}/doxygen/figures/SampGeo2D2.eps (100%) rename doc/{user => developer}/doxygen/figures/SampGeo2D2.png (100%) rename doc/{user => developer}/doxygen/figures/SampGeo2D3.eps (100%) rename doc/{user => developer}/doxygen/figures/SampGeo2D3.png (100%) rename doc/{user => developer}/doxygen/figures/SampGeo2D4.eps (100%) rename doc/{user => developer}/doxygen/figures/SampGeo2D4.png (100%) rename doc/{user => developer}/doxygen/figures/UML-0.png (100%) rename doc/{user => developer}/doxygen/figures/UML-1.png (100%) rename doc/{user => developer}/doxygen/figures/UML-2.png (100%) rename doc/{user => developer}/doxygen/figures/UML-3.png (100%) rename doc/{user => developer}/doxygen/figures/UML-4.png (100%) rename doc/{user => developer}/doxygen/figures/UML-5.png (100%) rename doc/{user => developer}/doxygen/figures/UML-6.png (100%) rename doc/{user => developer}/doxygen/figures/UML-7.png (100%) rename doc/{user => developer}/doxygen/figures/UML-8.png (100%) rename doc/{user => developer}/doxygen/figures/UML.png (100%) rename doc/{user => developer}/doxygen/figures/UML_light.png (100%) rename doc/{user => developer}/doxygen/figures/UML_small.png (100%) rename doc/{user => developer}/doxygen/figures/connectivity_arrays.eps (100%) rename doc/{user => developer}/doxygen/figures/connectivity_arrays.png (100%) rename doc/{user => developer}/doxygen/figures/connectivity_arrays_small.eps (100%) rename doc/{user => developer}/doxygen/figures/connectivity_arrays_small.png (100%) rename doc/{user => developer}/doxygen/figures/connectivity_example.png (100%) rename doc/{user => developer}/doxygen/figures/connectivity_example_small.png (100%) rename doc/{user => developer}/doxygen/figures/fine_mesh.png (100%) rename doc/{user => developer}/doxygen/figures/geom.png (100%) rename doc/{user => developer}/doxygen/figures/grid_example.png (100%) rename doc/{user => developer}/doxygen/figures/interpolationimage.png (100%) rename doc/{user => developer}/doxygen/figures/med-file-uml.png (100%) rename doc/{user => developer}/doxygen/figures/med-loader-adv-classes.png (100%) rename doc/{user => developer}/doxygen/figures/medlayers.png (100%) rename doc/{user => developer}/doxygen/figures/medlayers_70pc.png (100%) rename doc/{user => developer}/doxygen/figures/mesh_splitted.png (100%) rename doc/{user => developer}/doxygen/figures/mesh_unsplitted.png (100%) rename doc/{user => developer}/doxygen/figures/polygon_connectivity.png (100%) rename doc/{user => developer}/doxygen/figures/polygon_connectivity_small.eps (100%) rename doc/{user => developer}/doxygen/figures/polygon_connectivity_small.png (100%) rename doc/{user => developer}/doxygen/figures/polyhedron_connectivity.png (100%) rename doc/{user => developer}/doxygen/figures/polyhedron_connectivity_small.eps (100%) rename doc/{user => developer}/doxygen/figures/polyhedron_connectivity_small.png (100%) rename doc/{user => developer}/doxygen/figures/projectionHQ.png (100%) rename doc/{user => developer}/doxygen/figures/projectionHQ_600.png (100%) rename doc/{user => developer}/doxygen/figures/source_field.png (100%) rename doc/{user => developer}/doxygen/figures/source_mesh.png (100%) rename doc/{user => developer}/doxygen/figures/target_field.png (100%) rename doc/{user => developer}/doxygen/figures/target_mesh.png (100%) rename doc/{user => developer}/doxygen/figures/tetra_simplexize_24_48.jpg (100%) rename doc/{user => developer}/doxygen/figures/tetra_simplexize_5_6.jpg (100%) rename doc/{user => developer}/doxygen/images/head.png (100%) rename doc/{user => developer}/doxygen/static/footer.html (100%) rename doc/{user => developer}/doxygen/static/header.html.in (100%) rename doc/{user => developer}/doxygen/static/medcoupling_extra.css (100%) create mode 100644 doc/user/conf.py.in create mode 100644 doc/user/images/cartesian.png create mode 100644 doc/user/images/cartesian.py create mode 100644 doc/user/images/convert2quadratic.png create mode 100644 doc/user/images/convert2quadratic.py create mode 100644 doc/user/images/curvelinear.png create mode 100644 doc/user/images/curvelinear.py create mode 100644 doc/user/images/explodeIntoEdges.png create mode 100644 doc/user/images/explodeIntoEdges.py create mode 100644 doc/user/images/extractSlice3D.png create mode 100644 doc/user/images/extractSlice3D.py create mode 100644 doc/user/images/extract_feilds.py create mode 100644 doc/user/images/extract_fields.png create mode 100644 doc/user/images/extract_mesh_fetched_nodes.png create mode 100644 doc/user/images/extract_mesh_fetched_nodes.py create mode 100644 doc/user/images/extract_mesh_ids.png create mode 100644 doc/user/images/extract_mesh_ids.py create mode 100644 doc/user/images/extrusion.png create mode 100644 doc/user/images/extrusion.py create mode 100644 doc/user/images/intersect_2d1d.png create mode 100644 doc/user/images/intersect_2d1d.py create mode 100644 doc/user/images/intersect_2d2d.png create mode 100644 doc/user/images/intersect_2d2d.py create mode 100644 doc/user/images/measure_field.png create mode 100644 doc/user/images/measure_field.py create mode 100644 doc/user/images/medrenumber.png create mode 100644 doc/user/images/medrenumber.py create mode 100644 doc/user/images/orderConsecutiveCells1D.png create mode 100644 doc/user/images/orderConsecutiveCells1D.py create mode 100644 doc/user/images/orient_2d.png create mode 100644 doc/user/images/orient_2d.py create mode 100644 doc/user/images/ortho_field.png create mode 100644 doc/user/images/ortho_field.py create mode 100644 doc/user/images/partition.png create mode 100644 doc/user/images/partition.py create mode 100644 doc/user/images/partition_with_layer.png create mode 100644 doc/user/images/partition_with_layer.py create mode 100644 doc/user/images/pointe_fieldnodeint.png create mode 100644 doc/user/images/pointe_fieldnodeint.py create mode 100644 doc/user/images/projection_P0P1_dual.png create mode 100644 doc/user/images/projection_P0P1_dual.py create mode 100644 doc/user/images/projection_P0P1_meshes.png create mode 100644 doc/user/images/projection_P0P1_meshes.py create mode 100644 doc/user/images/projection_P1P0_dual.png create mode 100644 doc/user/images/projection_P1P0_dual.py create mode 100644 doc/user/images/projection_bnd_box.png create mode 100644 doc/user/images/projection_bnd_box.py create mode 100644 doc/user/images/projection_setMaxDistance3DSurfIntersect.png create mode 100644 doc/user/images/projection_setMaxDistance3DSurfIntersect.py create mode 100644 doc/user/images/renumber_nodes.png create mode 100644 doc/user/images/renumber_nodes.py create mode 100644 doc/user/images/simplexize.png create mode 100644 doc/user/images/simplexize.py create mode 100644 doc/user/images/skin.png create mode 100644 doc/user/images/skin.py create mode 100644 doc/user/images/zones.png create mode 100644 doc/user/images/zones.py create mode 100644 doc/user/input/basic_concepts.rst create mode 100644 doc/user/input/data_analysis.rst create mode 100644 doc/user/input/data_conversion.rst create mode 100644 doc/user/input/data_movement.rst create mode 100644 doc/user/input/data_optimization.rst create mode 100644 doc/user/input/index.rst create mode 100644 doc/user/locale/fr/LC_MESSAGES/basic_concepts.po create mode 100644 doc/user/locale/fr/LC_MESSAGES/data_analysis.po create mode 100644 doc/user/locale/fr/LC_MESSAGES/data_conversion.po create mode 100644 doc/user/locale/fr/LC_MESSAGES/data_movement.po create mode 100644 doc/user/locale/fr/LC_MESSAGES/data_optimization.po create mode 100644 doc/user/locale/fr/LC_MESSAGES/index.po create mode 100644 doc/user/static/switchers.js.in create mode 100644 doc/user/templates/layout.html create mode 100644 src/MEDCoupling_Swig/UsersGuideExamplesTest.py create mode 100644 src/MEDCoupling_Swig/UsersGuideExamplesTest_numpy.py create mode 100644 src/MEDLoader/Swig/UsersGuideExamplesTest.py diff --git a/CMakeLists.txt b/CMakeLists.txt index d5f992d71..efc4e3ba2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,8 @@ IF(WIN32) SET(XDR_DEFAULT_OPTION OFF) ENDIF() CMAKE_DEPENDENT_OPTION(MEDCOUPLING_MEDLOADER_USE_XDR "Enable use of XDR for SauvReader." ${XDR_DEFAULT_OPTION} "NOT MEDCOUPLING_MICROMED" OFF) +CMAKE_DEPENDENT_OPTION(MEDCOUPLING_BUILD_FRENCH_DOC "Generate MEDCOUPLING French documentation" OFF + "MEDCOUPLING_BUILD_DOC" OFF) IF(MEDCOUPLING_BUILD_STATIC) SET(BUILD_SHARED_LIBS 0) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 0747aef11..f496840c2 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -17,5 +17,6 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -ADD_SUBDIRECTORY(user) +ADD_SUBDIRECTORY(developer) ADD_SUBDIRECTORY(tutorial) +ADD_SUBDIRECTORY(user) diff --git a/doc/developer/CMakeLists.txt b/doc/developer/CMakeLists.txt new file mode 100644 index 000000000..186e64694 --- /dev/null +++ b/doc/developer/CMakeLists.txt @@ -0,0 +1,20 @@ +# Copyright (C) 2012-2016 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +ADD_SUBDIRECTORY(doxygen) diff --git a/doc/user/doxygen/BuildPyExamplesFromCPP.py b/doc/developer/doxygen/BuildPyExamplesFromCPP.py similarity index 100% rename from doc/user/doxygen/BuildPyExamplesFromCPP.py rename to doc/developer/doxygen/BuildPyExamplesFromCPP.py diff --git a/doc/user/doxygen/CMakeLists.txt b/doc/developer/doxygen/CMakeLists.txt similarity index 73% rename from doc/user/doxygen/CMakeLists.txt rename to doc/developer/doxygen/CMakeLists.txt index c141a32c5..3d1b2dede 100644 --- a/doc/user/doxygen/CMakeLists.txt +++ b/doc/developer/doxygen/CMakeLists.txt @@ -17,7 +17,16 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -SALOME_CONFIGURE_FILE(Doxyfile_med_user.in Doxyfile_med_user) +# Set MEDCOUPLING_SERVER_BASED_SEARCH=ON when building docs for putting on www.salome-platform.org +# MEDCOUPLING_SERVER_BASED_SEARCH is used in Doxyfile_med_dev +# +IF(MEDCOUPLING_SERVER_BASED_SEARCH) + SET(MEDCOUPLING_SERVER_BASED_SEARCH "YES") +ELSE() + SET(MEDCOUPLING_SERVER_BASED_SEARCH "NO") +ENDIF() + +SALOME_CONFIGURE_FILE(Doxyfile_med_dev.in Doxyfile_med_dev) SALOME_CONFIGURE_FILE(static/header.html.in static/header.html) @@ -39,7 +48,7 @@ IF(MEDCOUPLING_ENABLE_PYTHON) doxfiles/examples/medcouplingexamplesarrays.doxy doxfiles/examples/medcouplingexamplesother.doxy doxfiles/examples/medcouplingexamplesfooter.doxy - ) + ) # This function adds IN_FILE contents to the end of OUT_FILE FUNCTION(concat IN_FILE OUT_FILE) @@ -57,28 +66,28 @@ IF(MEDCOUPLING_ENABLE_PYTHON) # gets updated if its content has changed. # Here is the "standard" procedure, as if ${input} was hand-written. - ADD_CUSTOM_TARGET(usr_docs ALL + ADD_CUSTOM_TARGET(dev_docs ALL COMMAND ${PYTHON_EXECUTABLE} ${pythondocexamplesgenerator} ${input} ${output} - COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile_med_user + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile_med_dev VERBATIM WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) # Create dummy target gathering the generation of all .i files: ADD_CUSTOM_TARGET(swig_ready) - ADD_DEPENDENCIES(swig_ready usr_docs) + ADD_DEPENDENCIES(swig_ready dev_docs) - MEDCOUPLING_SWIG_DOCSTRING_CONFIGURE(usr_docs swig_ready MEDCoupling) - MEDCOUPLING_SWIG_DOCSTRING_CONFIGURE(usr_docs swig_ready MEDLoader) + MEDCOUPLING_SWIG_DOCSTRING_CONFIGURE(dev_docs swig_ready MEDCoupling) + MEDCOUPLING_SWIG_DOCSTRING_CONFIGURE(dev_docs swig_ready MEDLoader) - SET(doxyfile_med_user ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile_med_user) - FILE(STRINGS ${doxyfile_med_user} enabled_sections REGEX "ENABLED_SECTIONS") + SET(doxyfile_med_dev ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile_med_dev) + FILE(STRINGS ${doxyfile_med_dev} enabled_sections REGEX "ENABLED_SECTIONS") IF(enabled_sections) - FILE(READ ${doxyfile_med_user} doxy_file) + FILE(READ ${doxyfile_med_dev} doxy_file) STRING(REPLACE ${enabled_sections} "${enabled_sections} ENABLE_EXAMPLES" new_doxy_file ${doxy_file}) - FILE(WRITE ${doxyfile_med_user} ${new_doxy_file}) + FILE(WRITE ${doxyfile_med_dev} ${new_doxy_file}) ELSE() - FILE(APPEND ${doxyfile_med_user} + FILE(APPEND ${doxyfile_med_dev} "#Temporary variable to enable python documentation sections\nENABLED_SECTIONS = ENABLE_EXAMPLES") ENDIF() @@ -86,16 +95,16 @@ IF(MEDCOUPLING_ENABLE_PYTHON) INCLUDE(doxy2swig/doxy2swig.cmake) ELSE() - ADD_CUSTOM_TARGET(usr_docs ALL - COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile_med_user + ADD_CUSTOM_TARGET(dev_docs ALL + COMMAND ${DOXYGEN_EXECUTABLE} Doxyfile_med_dev VERBATIM WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) ENDIF() -#INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target usr_docs)") -INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc_ref_user/html/ DESTINATION ${MEDCOUPLING_INSTALL_DOC}) -INSTALL(FILES images/head.png DESTINATION ${MEDCOUPLING_INSTALL_DOC}) +#INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target dev_docs)") +INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc_ref_dev/html/ DESTINATION ${MEDCOUPLING_INSTALL_DOC}/developer) +INSTALL(FILES images/head.png DESTINATION ${MEDCOUPLING_INSTALL_DOC}/developer) -SET(MAKE_CLEAN_FILES doc_ref_user tmp) +SET(MAKE_CLEAN_FILES doc_ref_dev tmp) SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${MAKE_CLEAN_FILES}") diff --git a/doc/user/doxygen/Doxyfile_med_user.in b/doc/developer/doxygen/Doxyfile_med_dev.in similarity index 98% rename from doc/user/doxygen/Doxyfile_med_user.in rename to doc/developer/doxygen/Doxyfile_med_dev.in index bb32a09fc..6965a18e2 100644 --- a/doc/user/doxygen/Doxyfile_med_user.in +++ b/doc/developer/doxygen/Doxyfile_med_dev.in @@ -22,9 +22,9 @@ # General configuration options #--------------------------------------------------------------------------- # -PROJECT_NAME = "MEDCoupling Users' Guide" +PROJECT_NAME = "MEDCoupling Developers' Guide" PROJECT_NUMBER = -OUTPUT_DIRECTORY = doc_ref_user +OUTPUT_DIRECTORY = doc_ref_dev OUTPUT_LANGUAGE = English EXTRACT_ALL = YES EXTRACT_PRIVATE = NO @@ -66,7 +66,7 @@ QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_FORMAT = "$file:$line: $text" -WARN_LOGFILE = log_user +WARN_LOGFILE = log_dev #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- @@ -109,7 +109,6 @@ FILE_PATTERNS = InterpKernelDEC.*xx \ ExplicitCoincidentDEC.*xx \ NonCoincidentDEC.*xx \ CommInterface.*xx \ - ICoCo*.*xx \ NormalizedGeometricTypes \ NormalizedUnstructuredMesh.*xx \ Interpolation2D.*xx \ @@ -153,7 +152,6 @@ FILE_PATTERNS = InterpKernelDEC.*xx \ MEDCouplingCartesianAMRMesh.*xx \ MEDCouplingTimeLabel.*xx \ MEDCouplingRefCountObject.*xx \ - MCAuto.*xx \ MEDCouplingMemArray.*xx \ MEDCouplingGaussLocalization.*xx \ MEDCouplingRemapper.*xx \ @@ -172,6 +170,7 @@ FILE_PATTERNS = InterpKernelDEC.*xx \ RECURSIVE = YES EXCLUDE = CVS EXCLUDE_PATTERNS = *~ +EXCLUDE_SYMBOLS = ICoCo EXAMPLE_PATH = @PROJECT_SOURCE_DIR@/src/ParaMEDMEM \ @PROJECT_SOURCE_DIR@/src/MEDCoupling/Test \ @PROJECT_SOURCE_DIR@/src/MEDCoupling_Swig \ @@ -290,3 +289,5 @@ DOT_CLEANUP = YES # Configuration::additions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = YES +SERVER_BASED_SEARCH = @MEDCOUPLING_SERVER_BASED_SEARCH@ +EXTERNAL_SEARCH = NO diff --git a/doc/user/doxygen/doxfiles/appendix/appendix.dox b/doc/developer/doxygen/doxfiles/appendix/appendix.dox similarity index 100% rename from doc/user/doxygen/doxfiles/appendix/appendix.dox rename to doc/developer/doxygen/doxfiles/appendix/appendix.dox diff --git a/doc/user/doxygen/doxfiles/appendix/glossary.dox b/doc/developer/doxygen/doxfiles/appendix/glossary.dox similarity index 100% rename from doc/user/doxygen/doxfiles/appendix/glossary.dox rename to doc/developer/doxygen/doxfiles/appendix/glossary.dox diff --git a/doc/user/doxygen/doxfiles/appendix/install.dox b/doc/developer/doxygen/doxfiles/appendix/install.dox similarity index 100% rename from doc/user/doxygen/doxfiles/appendix/install.dox rename to doc/developer/doxygen/doxfiles/appendix/install.dox diff --git a/doc/user/doxygen/doxfiles/appendix/interpkernel.dox b/doc/developer/doxygen/doxfiles/appendix/interpkernel.dox similarity index 100% rename from doc/user/doxygen/doxfiles/appendix/interpkernel.dox rename to doc/developer/doxygen/doxfiles/appendix/interpkernel.dox diff --git a/doc/user/doxygen/doxfiles/appendix/med-file.dox b/doc/developer/doxygen/doxfiles/appendix/med-file.dox similarity index 100% rename from doc/user/doxygen/doxfiles/appendix/med-file.dox rename to doc/developer/doxygen/doxfiles/appendix/med-file.dox diff --git a/doc/user/doxygen/doxfiles/appendix/porting.dox b/doc/developer/doxygen/doxfiles/appendix/porting.dox similarity index 100% rename from doc/user/doxygen/doxfiles/appendix/porting.dox rename to doc/developer/doxygen/doxfiles/appendix/porting.dox diff --git a/doc/user/doxygen/doxfiles/appendix/references.dox b/doc/developer/doxygen/doxfiles/appendix/references.dox similarity index 100% rename from doc/user/doxygen/doxfiles/appendix/references.dox rename to doc/developer/doxygen/doxfiles/appendix/references.dox diff --git a/doc/user/doxygen/doxfiles/examples/examples.dox b/doc/developer/doxygen/doxfiles/examples/examples.dox similarity index 100% rename from doc/user/doxygen/doxfiles/examples/examples.dox rename to doc/developer/doxygen/doxfiles/examples/examples.dox diff --git a/doc/user/doxygen/doxfiles/examples/medcouplingexamplesarrays.doxy b/doc/developer/doxygen/doxfiles/examples/medcouplingexamplesarrays.doxy similarity index 100% rename from doc/user/doxygen/doxfiles/examples/medcouplingexamplesarrays.doxy rename to doc/developer/doxygen/doxfiles/examples/medcouplingexamplesarrays.doxy diff --git a/doc/user/doxygen/doxfiles/examples/medcouplingexamplesfields.doxy b/doc/developer/doxygen/doxfiles/examples/medcouplingexamplesfields.doxy similarity index 100% rename from doc/user/doxygen/doxfiles/examples/medcouplingexamplesfields.doxy rename to doc/developer/doxygen/doxfiles/examples/medcouplingexamplesfields.doxy diff --git a/doc/user/doxygen/doxfiles/examples/medcouplingexamplesfooter.doxy b/doc/developer/doxygen/doxfiles/examples/medcouplingexamplesfooter.doxy similarity index 100% rename from doc/user/doxygen/doxfiles/examples/medcouplingexamplesfooter.doxy rename to doc/developer/doxygen/doxfiles/examples/medcouplingexamplesfooter.doxy diff --git a/doc/user/doxygen/doxfiles/examples/medcouplingexamplesheader.doxy b/doc/developer/doxygen/doxfiles/examples/medcouplingexamplesheader.doxy similarity index 100% rename from doc/user/doxygen/doxfiles/examples/medcouplingexamplesheader.doxy rename to doc/developer/doxygen/doxfiles/examples/medcouplingexamplesheader.doxy diff --git a/doc/user/doxygen/doxfiles/examples/medcouplingexamplesmeshes.doxy b/doc/developer/doxygen/doxfiles/examples/medcouplingexamplesmeshes.doxy similarity index 100% rename from doc/user/doxygen/doxfiles/examples/medcouplingexamplesmeshes.doxy rename to doc/developer/doxygen/doxfiles/examples/medcouplingexamplesmeshes.doxy diff --git a/doc/user/doxygen/doxfiles/examples/medcouplingexamplesother.doxy b/doc/developer/doxygen/doxfiles/examples/medcouplingexamplesother.doxy similarity index 100% rename from doc/user/doxygen/doxfiles/examples/medcouplingexamplesother.doxy rename to doc/developer/doxygen/doxfiles/examples/medcouplingexamplesother.doxy diff --git a/doc/user/doxygen/doxfiles/faq.dox b/doc/developer/doxygen/doxfiles/faq.dox similarity index 100% rename from doc/user/doxygen/doxfiles/faq.dox rename to doc/developer/doxygen/doxfiles/faq.dox diff --git a/doc/user/doxygen/doxfiles/index.dox b/doc/developer/doxygen/doxfiles/index.dox similarity index 100% rename from doc/user/doxygen/doxfiles/index.dox rename to doc/developer/doxygen/doxfiles/index.dox diff --git a/doc/user/doxygen/doxfiles/reference/arrays/arrays.dox b/doc/developer/doxygen/doxfiles/reference/arrays/arrays.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/arrays/arrays.dox rename to doc/developer/doxygen/doxfiles/reference/arrays/arrays.dox diff --git a/doc/user/doxygen/doxfiles/reference/arrays/numbering.dox b/doc/developer/doxygen/doxfiles/reference/arrays/numbering.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/arrays/numbering.dox rename to doc/developer/doxygen/doxfiles/reference/arrays/numbering.dox diff --git a/doc/user/doxygen/doxfiles/reference/cpp/MEDCouplingTimeLabel.dox b/doc/developer/doxygen/doxfiles/reference/cpp/MEDCouplingTimeLabel.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/cpp/MEDCouplingTimeLabel.dox rename to doc/developer/doxygen/doxfiles/reference/cpp/MEDCouplingTimeLabel.dox diff --git a/doc/user/doxygen/doxfiles/reference/cpp/cpp.dox b/doc/developer/doxygen/doxfiles/reference/cpp/cpp.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/cpp/cpp.dox rename to doc/developer/doxygen/doxfiles/reference/cpp/cpp.dox diff --git a/doc/user/doxygen/doxfiles/reference/distrib/corba-distrib.dox b/doc/developer/doxygen/doxfiles/reference/distrib/corba-distrib.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/distrib/corba-distrib.dox rename to doc/developer/doxygen/doxfiles/reference/distrib/corba-distrib.dox diff --git a/doc/user/doxygen/doxfiles/reference/distrib/distrib.dox b/doc/developer/doxygen/doxfiles/reference/distrib/distrib.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/distrib/distrib.dox rename to doc/developer/doxygen/doxfiles/reference/distrib/distrib.dox diff --git a/doc/user/doxygen/doxfiles/reference/distrib/parallel.dox b/doc/developer/doxygen/doxfiles/reference/distrib/parallel.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/distrib/parallel.dox rename to doc/developer/doxygen/doxfiles/reference/distrib/parallel.dox diff --git a/doc/user/doxygen/doxfiles/reference/fields/MEDCouplingFields.dox b/doc/developer/doxygen/doxfiles/reference/fields/MEDCouplingFields.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/fields/MEDCouplingFields.dox rename to doc/developer/doxygen/doxfiles/reference/fields/MEDCouplingFields.dox diff --git a/doc/user/doxygen/doxfiles/reference/fields/discretization.dox b/doc/developer/doxygen/doxfiles/reference/fields/discretization.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/fields/discretization.dox rename to doc/developer/doxygen/doxfiles/reference/fields/discretization.dox diff --git a/doc/user/doxygen/doxfiles/reference/fields/fields.dox b/doc/developer/doxygen/doxfiles/reference/fields/fields.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/fields/fields.dox rename to doc/developer/doxygen/doxfiles/reference/fields/fields.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/Geometric2D.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/Geometric2D.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/Geometric2D.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/Geometric2D.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/NatureOfField.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/NatureOfField.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/NatureOfField.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/NatureOfField.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/barycoords.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/barycoords.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/barycoords.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/barycoords.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/interpolation.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/interpolation.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/interpolation.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/interpolation.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/interptheory.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/interptheory.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/interptheory.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/interptheory.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/intersec-specifics.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/intersec-specifics.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/intersec-specifics.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/intersec-specifics.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/intersectors.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/intersectors.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/intersectors.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/intersectors.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/intro-interp.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/intro-interp.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/intro-interp.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/intro-interp.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/mapped_bary.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/mapped_bary.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/mapped_bary.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/mapped_bary.dox diff --git a/doc/user/doxygen/doxfiles/reference/interpolation/remapper.dox b/doc/developer/doxygen/doxfiles/reference/interpolation/remapper.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/interpolation/remapper.dox rename to doc/developer/doxygen/doxfiles/reference/interpolation/remapper.dox diff --git a/doc/user/doxygen/doxfiles/reference/medcoupling.dox b/doc/developer/doxygen/doxfiles/reference/medcoupling.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/medcoupling.dox rename to doc/developer/doxygen/doxfiles/reference/medcoupling.dox diff --git a/doc/user/doxygen/doxfiles/reference/medloader/MEDLoader.dox b/doc/developer/doxygen/doxfiles/reference/medloader/MEDLoader.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/medloader/MEDLoader.dox rename to doc/developer/doxygen/doxfiles/reference/medloader/MEDLoader.dox diff --git a/doc/user/doxygen/doxfiles/reference/medloader/MEDLoaderAdvancedAPI.dox b/doc/developer/doxygen/doxfiles/reference/medloader/MEDLoaderAdvancedAPI.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/medloader/MEDLoaderAdvancedAPI.dox rename to doc/developer/doxygen/doxfiles/reference/medloader/MEDLoaderAdvancedAPI.dox diff --git a/doc/user/doxygen/doxfiles/reference/medloader/MEDLoaderBasicAPI.dox b/doc/developer/doxygen/doxfiles/reference/medloader/MEDLoaderBasicAPI.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/medloader/MEDLoaderBasicAPI.dox rename to doc/developer/doxygen/doxfiles/reference/medloader/MEDLoaderBasicAPI.dox diff --git a/doc/user/doxygen/doxfiles/reference/medloader/intro-medloader.dox b/doc/developer/doxygen/doxfiles/reference/medloader/intro-medloader.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/medloader/intro-medloader.dox rename to doc/developer/doxygen/doxfiles/reference/medloader/intro-medloader.dox diff --git a/doc/user/doxygen/doxfiles/reference/medloader/medloader1.dox b/doc/developer/doxygen/doxfiles/reference/medloader/medloader1.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/medloader/medloader1.dox rename to doc/developer/doxygen/doxfiles/reference/medloader/medloader1.dox diff --git a/doc/user/doxygen/doxfiles/reference/meshes/MEDCouplingCMesh.dox b/doc/developer/doxygen/doxfiles/reference/meshes/MEDCouplingCMesh.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/meshes/MEDCouplingCMesh.dox rename to doc/developer/doxygen/doxfiles/reference/meshes/MEDCouplingCMesh.dox diff --git a/doc/user/doxygen/doxfiles/reference/meshes/MEDCouplingExtruded.dox b/doc/developer/doxygen/doxfiles/reference/meshes/MEDCouplingExtruded.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/meshes/MEDCouplingExtruded.dox rename to doc/developer/doxygen/doxfiles/reference/meshes/MEDCouplingExtruded.dox diff --git a/doc/user/doxygen/doxfiles/reference/meshes/MEDCouplingPointSet.dox b/doc/developer/doxygen/doxfiles/reference/meshes/MEDCouplingPointSet.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/meshes/MEDCouplingPointSet.dox rename to doc/developer/doxygen/doxfiles/reference/meshes/MEDCouplingPointSet.dox diff --git a/doc/user/doxygen/doxfiles/reference/meshes/MEDCouplingUMesh.dox b/doc/developer/doxygen/doxfiles/reference/meshes/MEDCouplingUMesh.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/meshes/MEDCouplingUMesh.dox rename to doc/developer/doxygen/doxfiles/reference/meshes/MEDCouplingUMesh.dox diff --git a/doc/user/doxygen/doxfiles/reference/meshes/meshes.dox b/doc/developer/doxygen/doxfiles/reference/meshes/meshes.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/meshes/meshes.dox rename to doc/developer/doxygen/doxfiles/reference/meshes/meshes.dox diff --git a/doc/user/doxygen/doxfiles/reference/misc/MEDCouplingFieldTemplates.dox b/doc/developer/doxygen/doxfiles/reference/misc/MEDCouplingFieldTemplates.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/misc/MEDCouplingFieldTemplates.dox rename to doc/developer/doxygen/doxfiles/reference/misc/MEDCouplingFieldTemplates.dox diff --git a/doc/user/doxygen/doxfiles/reference/misc/icoco.dox b/doc/developer/doxygen/doxfiles/reference/misc/icoco.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/misc/icoco.dox rename to doc/developer/doxygen/doxfiles/reference/misc/icoco.dox diff --git a/doc/user/doxygen/doxfiles/reference/misc/misc.dox b/doc/developer/doxygen/doxfiles/reference/misc/misc.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/misc/misc.dox rename to doc/developer/doxygen/doxfiles/reference/misc/misc.dox diff --git a/doc/user/doxygen/doxfiles/reference/misc/tools.dox b/doc/developer/doxygen/doxfiles/reference/misc/tools.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/misc/tools.dox rename to doc/developer/doxygen/doxfiles/reference/misc/tools.dox diff --git a/doc/user/doxygen/doxfiles/reference/reference.dox b/doc/developer/doxygen/doxfiles/reference/reference.dox similarity index 100% rename from doc/user/doxygen/doxfiles/reference/reference.dox rename to doc/developer/doxygen/doxfiles/reference/reference.dox diff --git a/doc/user/doxygen/doxfiles/start/functionalities.dox b/doc/developer/doxygen/doxfiles/start/functionalities.dox similarity index 100% rename from doc/user/doxygen/doxfiles/start/functionalities.dox rename to doc/developer/doxygen/doxfiles/start/functionalities.dox diff --git a/doc/user/doxygen/doxfiles/start/intro-start.dox b/doc/developer/doxygen/doxfiles/start/intro-start.dox similarity index 100% rename from doc/user/doxygen/doxfiles/start/intro-start.dox rename to doc/developer/doxygen/doxfiles/start/intro-start.dox diff --git a/doc/user/doxygen/doxfiles/start/library.dox b/doc/developer/doxygen/doxfiles/start/library.dox similarity index 100% rename from doc/user/doxygen/doxfiles/start/library.dox rename to doc/developer/doxygen/doxfiles/start/library.dox diff --git a/doc/user/doxygen/doxfiles/start/python-api.dox b/doc/developer/doxygen/doxfiles/start/python-api.dox similarity index 100% rename from doc/user/doxygen/doxfiles/start/python-api.dox rename to doc/developer/doxygen/doxfiles/start/python-api.dox diff --git a/doc/user/doxygen/doxfiles/start/start.dox b/doc/developer/doxygen/doxfiles/start/start.dox similarity index 100% rename from doc/user/doxygen/doxfiles/start/start.dox rename to doc/developer/doxygen/doxfiles/start/start.dox diff --git a/doc/user/doxygen/doxfiles/start/terminology.dox b/doc/developer/doxygen/doxfiles/start/terminology.dox similarity index 100% rename from doc/user/doxygen/doxfiles/start/terminology.dox rename to doc/developer/doxygen/doxfiles/start/terminology.dox diff --git a/doc/user/doxygen/doxfiles/tutorial.dox b/doc/developer/doxygen/doxfiles/tutorial.dox similarity index 100% rename from doc/user/doxygen/doxfiles/tutorial.dox rename to doc/developer/doxygen/doxfiles/tutorial.dox diff --git a/doc/user/doxygen/doxy2swig/MEDCoupling_doc.i.in b/doc/developer/doxygen/doxy2swig/MEDCoupling_doc.i.in similarity index 100% rename from doc/user/doxygen/doxy2swig/MEDCoupling_doc.i.in rename to doc/developer/doxygen/doxy2swig/MEDCoupling_doc.i.in diff --git a/doc/user/doxygen/doxy2swig/MEDLoader_doc.i.in b/doc/developer/doxygen/doxy2swig/MEDLoader_doc.i.in similarity index 100% rename from doc/user/doxygen/doxy2swig/MEDLoader_doc.i.in rename to doc/developer/doxygen/doxy2swig/MEDLoader_doc.i.in diff --git a/doc/user/doxygen/doxy2swig/doxy2swig.cmake b/doc/developer/doxygen/doxy2swig/doxy2swig.cmake similarity index 97% rename from doc/user/doxygen/doxy2swig/doxy2swig.cmake rename to doc/developer/doxygen/doxy2swig/doxy2swig.cmake index 2be193083..7ff999da3 100644 --- a/doc/user/doxygen/doxy2swig/doxy2swig.cmake +++ b/doc/developer/doxygen/doxy2swig/doxy2swig.cmake @@ -22,7 +22,8 @@ ## the docstrings built from the C++ doxygen documentation. ## -SET(_DOXY2SWIG ${PROJECT_SOURCE_DIR}/doc/user/doxygen/doxy2swig/doxy2swig.py) +SET(_DOXY2SWIG ${PROJECT_SOURCE_DIR}/doc/developer/doxygen/doxy2swig/doxy2swig.py) + SET(_SWIG_DOC_SUFFIX "doc_class_") # @@ -61,7 +62,7 @@ MACRO(MEDCOUPLING_SWIG_DOCSTRING_GENERATE target_doc target_swig cls_list swig_m # List of generated SWIG files (.i) for doc purposes only: SET(${swig_files}) FOREACH(_cls IN LISTS ${cls_list}) - SET(_xml_file "${CMAKE_CURRENT_BINARY_DIR}/../doxygen/doc_ref_user/xml/class${_cls}.xml") + SET(_xml_file "${CMAKE_CURRENT_BINARY_DIR}/../doxygen/doc_ref_dev/xml/class${_cls}.xml") SET(_swig_file_base "${_SWIG_DOC_SUFFIX}${_cls}.i") SET(_swig_file "${PROJECT_BINARY_DIR}/doc/${_swig_file_base}" ) diff --git a/doc/user/doxygen/doxy2swig/doxy2swig.py b/doc/developer/doxygen/doxy2swig/doxy2swig.py similarity index 100% rename from doc/user/doxygen/doxy2swig/doxy2swig.py rename to doc/developer/doxygen/doxy2swig/doxy2swig.py diff --git a/doc/user/doxygen/fakesources/MEDCouplingField.C b/doc/developer/doxygen/fakesources/MEDCouplingField.C similarity index 100% rename from doc/user/doxygen/fakesources/MEDCouplingField.C rename to doc/developer/doxygen/fakesources/MEDCouplingField.C diff --git a/doc/user/doxygen/fakesources/MEDCouplingFieldDouble.C b/doc/developer/doxygen/fakesources/MEDCouplingFieldDouble.C similarity index 100% rename from doc/user/doxygen/fakesources/MEDCouplingFieldDouble.C rename to doc/developer/doxygen/fakesources/MEDCouplingFieldDouble.C diff --git a/doc/user/doxygen/fakesources/MEDCouplingMemArray.C b/doc/developer/doxygen/fakesources/MEDCouplingMemArray.C similarity index 100% rename from doc/user/doxygen/fakesources/MEDCouplingMemArray.C rename to doc/developer/doxygen/fakesources/MEDCouplingMemArray.C diff --git a/doc/user/doxygen/fakesources/MEDCouplingMesh.C b/doc/developer/doxygen/fakesources/MEDCouplingMesh.C similarity index 100% rename from doc/user/doxygen/fakesources/MEDCouplingMesh.C rename to doc/developer/doxygen/fakesources/MEDCouplingMesh.C diff --git a/doc/user/doxygen/fakesources/MEDCouplingPointSet.C b/doc/developer/doxygen/fakesources/MEDCouplingPointSet.C similarity index 100% rename from doc/user/doxygen/fakesources/MEDCouplingPointSet.C rename to doc/developer/doxygen/fakesources/MEDCouplingPointSet.C diff --git a/doc/user/doxygen/fakesources/MEDCouplingUMesh.C b/doc/developer/doxygen/fakesources/MEDCouplingUMesh.C similarity index 100% rename from doc/user/doxygen/fakesources/MEDCouplingUMesh.C rename to doc/developer/doxygen/fakesources/MEDCouplingUMesh.C diff --git a/doc/user/doxygen/fakesources/MEDFileField.C b/doc/developer/doxygen/fakesources/MEDFileField.C similarity index 100% rename from doc/user/doxygen/fakesources/MEDFileField.C rename to doc/developer/doxygen/fakesources/MEDFileField.C diff --git a/doc/user/doxygen/fakesources/MEDFileMesh.C b/doc/developer/doxygen/fakesources/MEDFileMesh.C similarity index 100% rename from doc/user/doxygen/fakesources/MEDFileMesh.C rename to doc/developer/doxygen/fakesources/MEDFileMesh.C diff --git a/doc/user/doxygen/fakesources/namespaces.C b/doc/developer/doxygen/fakesources/namespaces.C similarity index 100% rename from doc/user/doxygen/fakesources/namespaces.C rename to doc/developer/doxygen/fakesources/namespaces.C diff --git a/doc/user/doxygen/figures/IndirectIndex.jpg b/doc/developer/doxygen/figures/IndirectIndex.jpg similarity index 100% rename from doc/user/doxygen/figures/IndirectIndex.jpg rename to doc/developer/doxygen/figures/IndirectIndex.jpg diff --git a/doc/user/doxygen/figures/MED.png b/doc/developer/doxygen/figures/MED.png similarity index 100% rename from doc/user/doxygen/figures/MED.png rename to doc/developer/doxygen/figures/MED.png diff --git a/doc/user/doxygen/figures/MEDCouplingUMeshConn.eps b/doc/developer/doxygen/figures/MEDCouplingUMeshConn.eps similarity index 100% rename from doc/user/doxygen/figures/MEDCouplingUMeshConn.eps rename to doc/developer/doxygen/figures/MEDCouplingUMeshConn.eps diff --git a/doc/user/doxygen/figures/MEDCouplingUMeshConn.fig b/doc/developer/doxygen/figures/MEDCouplingUMeshConn.fig similarity index 100% rename from doc/user/doxygen/figures/MEDCouplingUMeshConn.fig rename to doc/developer/doxygen/figures/MEDCouplingUMeshConn.fig diff --git a/doc/user/doxygen/figures/MEDCouplingUMeshConn.png b/doc/developer/doxygen/figures/MEDCouplingUMeshConn.png similarity index 100% rename from doc/user/doxygen/figures/MEDCouplingUMeshConn.png rename to doc/developer/doxygen/figures/MEDCouplingUMeshConn.png diff --git a/doc/user/doxygen/figures/MEDFileConcepts.fig b/doc/developer/doxygen/figures/MEDFileConcepts.fig similarity index 100% rename from doc/user/doxygen/figures/MEDFileConcepts.fig rename to doc/developer/doxygen/figures/MEDFileConcepts.fig diff --git a/doc/user/doxygen/figures/MEDFileConcepts.png b/doc/developer/doxygen/figures/MEDFileConcepts.png similarity index 100% rename from doc/user/doxygen/figures/MEDFileConcepts.png rename to doc/developer/doxygen/figures/MEDFileConcepts.png diff --git a/doc/user/doxygen/figures/MED_small.eps b/doc/developer/doxygen/figures/MED_small.eps similarity index 100% rename from doc/user/doxygen/figures/MED_small.eps rename to doc/developer/doxygen/figures/MED_small.eps diff --git a/doc/user/doxygen/figures/MED_small.png b/doc/developer/doxygen/figures/MED_small.png similarity index 100% rename from doc/user/doxygen/figures/MED_small.png rename to doc/developer/doxygen/figures/MED_small.png diff --git a/doc/user/doxygen/figures/MedCoupling_Architecture.png b/doc/developer/doxygen/figures/MedCoupling_Architecture.png similarity index 100% rename from doc/user/doxygen/figures/MedCoupling_Architecture.png rename to doc/developer/doxygen/figures/MedCoupling_Architecture.png diff --git a/doc/user/doxygen/figures/NonCoincident.png b/doc/developer/doxygen/figures/NonCoincident.png similarity index 100% rename from doc/user/doxygen/figures/NonCoincident.png rename to doc/developer/doxygen/figures/NonCoincident.png diff --git a/doc/user/doxygen/figures/NonCoincident_small.eps b/doc/developer/doxygen/figures/NonCoincident_small.eps similarity index 100% rename from doc/user/doxygen/figures/NonCoincident_small.eps rename to doc/developer/doxygen/figures/NonCoincident_small.eps diff --git a/doc/user/doxygen/figures/NonCoincident_small.png b/doc/developer/doxygen/figures/NonCoincident_small.png similarity index 100% rename from doc/user/doxygen/figures/NonCoincident_small.png rename to doc/developer/doxygen/figures/NonCoincident_small.png diff --git a/doc/user/doxygen/figures/NonOverlapping.fig b/doc/developer/doxygen/figures/NonOverlapping.fig similarity index 100% rename from doc/user/doxygen/figures/NonOverlapping.fig rename to doc/developer/doxygen/figures/NonOverlapping.fig diff --git a/doc/user/doxygen/figures/NonOverlapping.png b/doc/developer/doxygen/figures/NonOverlapping.png similarity index 100% rename from doc/user/doxygen/figures/NonOverlapping.png rename to doc/developer/doxygen/figures/NonOverlapping.png diff --git a/doc/user/doxygen/figures/OverlapDEC1.fig b/doc/developer/doxygen/figures/OverlapDEC1.fig similarity index 100% rename from doc/user/doxygen/figures/OverlapDEC1.fig rename to doc/developer/doxygen/figures/OverlapDEC1.fig diff --git a/doc/user/doxygen/figures/OverlapDEC1.png b/doc/developer/doxygen/figures/OverlapDEC1.png similarity index 100% rename from doc/user/doxygen/figures/OverlapDEC1.png rename to doc/developer/doxygen/figures/OverlapDEC1.png diff --git a/doc/user/doxygen/figures/SampGeo2D1.eps b/doc/developer/doxygen/figures/SampGeo2D1.eps similarity index 100% rename from doc/user/doxygen/figures/SampGeo2D1.eps rename to doc/developer/doxygen/figures/SampGeo2D1.eps diff --git a/doc/user/doxygen/figures/SampGeo2D1.png b/doc/developer/doxygen/figures/SampGeo2D1.png similarity index 100% rename from doc/user/doxygen/figures/SampGeo2D1.png rename to doc/developer/doxygen/figures/SampGeo2D1.png diff --git a/doc/user/doxygen/figures/SampGeo2D2.eps b/doc/developer/doxygen/figures/SampGeo2D2.eps similarity index 100% rename from doc/user/doxygen/figures/SampGeo2D2.eps rename to doc/developer/doxygen/figures/SampGeo2D2.eps diff --git a/doc/user/doxygen/figures/SampGeo2D2.png b/doc/developer/doxygen/figures/SampGeo2D2.png similarity index 100% rename from doc/user/doxygen/figures/SampGeo2D2.png rename to doc/developer/doxygen/figures/SampGeo2D2.png diff --git a/doc/user/doxygen/figures/SampGeo2D3.eps b/doc/developer/doxygen/figures/SampGeo2D3.eps similarity index 100% rename from doc/user/doxygen/figures/SampGeo2D3.eps rename to doc/developer/doxygen/figures/SampGeo2D3.eps diff --git a/doc/user/doxygen/figures/SampGeo2D3.png b/doc/developer/doxygen/figures/SampGeo2D3.png similarity index 100% rename from doc/user/doxygen/figures/SampGeo2D3.png rename to doc/developer/doxygen/figures/SampGeo2D3.png diff --git a/doc/user/doxygen/figures/SampGeo2D4.eps b/doc/developer/doxygen/figures/SampGeo2D4.eps similarity index 100% rename from doc/user/doxygen/figures/SampGeo2D4.eps rename to doc/developer/doxygen/figures/SampGeo2D4.eps diff --git a/doc/user/doxygen/figures/SampGeo2D4.png b/doc/developer/doxygen/figures/SampGeo2D4.png similarity index 100% rename from doc/user/doxygen/figures/SampGeo2D4.png rename to doc/developer/doxygen/figures/SampGeo2D4.png diff --git a/doc/user/doxygen/figures/UML-0.png b/doc/developer/doxygen/figures/UML-0.png similarity index 100% rename from doc/user/doxygen/figures/UML-0.png rename to doc/developer/doxygen/figures/UML-0.png diff --git a/doc/user/doxygen/figures/UML-1.png b/doc/developer/doxygen/figures/UML-1.png similarity index 100% rename from doc/user/doxygen/figures/UML-1.png rename to doc/developer/doxygen/figures/UML-1.png diff --git a/doc/user/doxygen/figures/UML-2.png b/doc/developer/doxygen/figures/UML-2.png similarity index 100% rename from doc/user/doxygen/figures/UML-2.png rename to doc/developer/doxygen/figures/UML-2.png diff --git a/doc/user/doxygen/figures/UML-3.png b/doc/developer/doxygen/figures/UML-3.png similarity index 100% rename from doc/user/doxygen/figures/UML-3.png rename to doc/developer/doxygen/figures/UML-3.png diff --git a/doc/user/doxygen/figures/UML-4.png b/doc/developer/doxygen/figures/UML-4.png similarity index 100% rename from doc/user/doxygen/figures/UML-4.png rename to doc/developer/doxygen/figures/UML-4.png diff --git a/doc/user/doxygen/figures/UML-5.png b/doc/developer/doxygen/figures/UML-5.png similarity index 100% rename from doc/user/doxygen/figures/UML-5.png rename to doc/developer/doxygen/figures/UML-5.png diff --git a/doc/user/doxygen/figures/UML-6.png b/doc/developer/doxygen/figures/UML-6.png similarity index 100% rename from doc/user/doxygen/figures/UML-6.png rename to doc/developer/doxygen/figures/UML-6.png diff --git a/doc/user/doxygen/figures/UML-7.png b/doc/developer/doxygen/figures/UML-7.png similarity index 100% rename from doc/user/doxygen/figures/UML-7.png rename to doc/developer/doxygen/figures/UML-7.png diff --git a/doc/user/doxygen/figures/UML-8.png b/doc/developer/doxygen/figures/UML-8.png similarity index 100% rename from doc/user/doxygen/figures/UML-8.png rename to doc/developer/doxygen/figures/UML-8.png diff --git a/doc/user/doxygen/figures/UML.png b/doc/developer/doxygen/figures/UML.png similarity index 100% rename from doc/user/doxygen/figures/UML.png rename to doc/developer/doxygen/figures/UML.png diff --git a/doc/user/doxygen/figures/UML_light.png b/doc/developer/doxygen/figures/UML_light.png similarity index 100% rename from doc/user/doxygen/figures/UML_light.png rename to doc/developer/doxygen/figures/UML_light.png diff --git a/doc/user/doxygen/figures/UML_small.png b/doc/developer/doxygen/figures/UML_small.png similarity index 100% rename from doc/user/doxygen/figures/UML_small.png rename to doc/developer/doxygen/figures/UML_small.png diff --git a/doc/user/doxygen/figures/connectivity_arrays.eps b/doc/developer/doxygen/figures/connectivity_arrays.eps similarity index 100% rename from doc/user/doxygen/figures/connectivity_arrays.eps rename to doc/developer/doxygen/figures/connectivity_arrays.eps diff --git a/doc/user/doxygen/figures/connectivity_arrays.png b/doc/developer/doxygen/figures/connectivity_arrays.png similarity index 100% rename from doc/user/doxygen/figures/connectivity_arrays.png rename to doc/developer/doxygen/figures/connectivity_arrays.png diff --git a/doc/user/doxygen/figures/connectivity_arrays_small.eps b/doc/developer/doxygen/figures/connectivity_arrays_small.eps similarity index 100% rename from doc/user/doxygen/figures/connectivity_arrays_small.eps rename to doc/developer/doxygen/figures/connectivity_arrays_small.eps diff --git a/doc/user/doxygen/figures/connectivity_arrays_small.png b/doc/developer/doxygen/figures/connectivity_arrays_small.png similarity index 100% rename from doc/user/doxygen/figures/connectivity_arrays_small.png rename to doc/developer/doxygen/figures/connectivity_arrays_small.png diff --git a/doc/user/doxygen/figures/connectivity_example.png b/doc/developer/doxygen/figures/connectivity_example.png similarity index 100% rename from doc/user/doxygen/figures/connectivity_example.png rename to doc/developer/doxygen/figures/connectivity_example.png diff --git a/doc/user/doxygen/figures/connectivity_example_small.png b/doc/developer/doxygen/figures/connectivity_example_small.png similarity index 100% rename from doc/user/doxygen/figures/connectivity_example_small.png rename to doc/developer/doxygen/figures/connectivity_example_small.png diff --git a/doc/user/doxygen/figures/fine_mesh.png b/doc/developer/doxygen/figures/fine_mesh.png similarity index 100% rename from doc/user/doxygen/figures/fine_mesh.png rename to doc/developer/doxygen/figures/fine_mesh.png diff --git a/doc/user/doxygen/figures/geom.png b/doc/developer/doxygen/figures/geom.png similarity index 100% rename from doc/user/doxygen/figures/geom.png rename to doc/developer/doxygen/figures/geom.png diff --git a/doc/user/doxygen/figures/grid_example.png b/doc/developer/doxygen/figures/grid_example.png similarity index 100% rename from doc/user/doxygen/figures/grid_example.png rename to doc/developer/doxygen/figures/grid_example.png diff --git a/doc/user/doxygen/figures/interpolationimage.png b/doc/developer/doxygen/figures/interpolationimage.png similarity index 100% rename from doc/user/doxygen/figures/interpolationimage.png rename to doc/developer/doxygen/figures/interpolationimage.png diff --git a/doc/user/doxygen/figures/med-file-uml.png b/doc/developer/doxygen/figures/med-file-uml.png similarity index 100% rename from doc/user/doxygen/figures/med-file-uml.png rename to doc/developer/doxygen/figures/med-file-uml.png diff --git a/doc/user/doxygen/figures/med-loader-adv-classes.png b/doc/developer/doxygen/figures/med-loader-adv-classes.png similarity index 100% rename from doc/user/doxygen/figures/med-loader-adv-classes.png rename to doc/developer/doxygen/figures/med-loader-adv-classes.png diff --git a/doc/user/doxygen/figures/medlayers.png b/doc/developer/doxygen/figures/medlayers.png similarity index 100% rename from doc/user/doxygen/figures/medlayers.png rename to doc/developer/doxygen/figures/medlayers.png diff --git a/doc/user/doxygen/figures/medlayers_70pc.png b/doc/developer/doxygen/figures/medlayers_70pc.png similarity index 100% rename from doc/user/doxygen/figures/medlayers_70pc.png rename to doc/developer/doxygen/figures/medlayers_70pc.png diff --git a/doc/user/doxygen/figures/mesh_splitted.png b/doc/developer/doxygen/figures/mesh_splitted.png similarity index 100% rename from doc/user/doxygen/figures/mesh_splitted.png rename to doc/developer/doxygen/figures/mesh_splitted.png diff --git a/doc/user/doxygen/figures/mesh_unsplitted.png b/doc/developer/doxygen/figures/mesh_unsplitted.png similarity index 100% rename from doc/user/doxygen/figures/mesh_unsplitted.png rename to doc/developer/doxygen/figures/mesh_unsplitted.png diff --git a/doc/user/doxygen/figures/polygon_connectivity.png b/doc/developer/doxygen/figures/polygon_connectivity.png similarity index 100% rename from doc/user/doxygen/figures/polygon_connectivity.png rename to doc/developer/doxygen/figures/polygon_connectivity.png diff --git a/doc/user/doxygen/figures/polygon_connectivity_small.eps b/doc/developer/doxygen/figures/polygon_connectivity_small.eps similarity index 100% rename from doc/user/doxygen/figures/polygon_connectivity_small.eps rename to doc/developer/doxygen/figures/polygon_connectivity_small.eps diff --git a/doc/user/doxygen/figures/polygon_connectivity_small.png b/doc/developer/doxygen/figures/polygon_connectivity_small.png similarity index 100% rename from doc/user/doxygen/figures/polygon_connectivity_small.png rename to doc/developer/doxygen/figures/polygon_connectivity_small.png diff --git a/doc/user/doxygen/figures/polyhedron_connectivity.png b/doc/developer/doxygen/figures/polyhedron_connectivity.png similarity index 100% rename from doc/user/doxygen/figures/polyhedron_connectivity.png rename to doc/developer/doxygen/figures/polyhedron_connectivity.png diff --git a/doc/user/doxygen/figures/polyhedron_connectivity_small.eps b/doc/developer/doxygen/figures/polyhedron_connectivity_small.eps similarity index 100% rename from doc/user/doxygen/figures/polyhedron_connectivity_small.eps rename to doc/developer/doxygen/figures/polyhedron_connectivity_small.eps diff --git a/doc/user/doxygen/figures/polyhedron_connectivity_small.png b/doc/developer/doxygen/figures/polyhedron_connectivity_small.png similarity index 100% rename from doc/user/doxygen/figures/polyhedron_connectivity_small.png rename to doc/developer/doxygen/figures/polyhedron_connectivity_small.png diff --git a/doc/user/doxygen/figures/projectionHQ.png b/doc/developer/doxygen/figures/projectionHQ.png similarity index 100% rename from doc/user/doxygen/figures/projectionHQ.png rename to doc/developer/doxygen/figures/projectionHQ.png diff --git a/doc/user/doxygen/figures/projectionHQ_600.png b/doc/developer/doxygen/figures/projectionHQ_600.png similarity index 100% rename from doc/user/doxygen/figures/projectionHQ_600.png rename to doc/developer/doxygen/figures/projectionHQ_600.png diff --git a/doc/user/doxygen/figures/source_field.png b/doc/developer/doxygen/figures/source_field.png similarity index 100% rename from doc/user/doxygen/figures/source_field.png rename to doc/developer/doxygen/figures/source_field.png diff --git a/doc/user/doxygen/figures/source_mesh.png b/doc/developer/doxygen/figures/source_mesh.png similarity index 100% rename from doc/user/doxygen/figures/source_mesh.png rename to doc/developer/doxygen/figures/source_mesh.png diff --git a/doc/user/doxygen/figures/target_field.png b/doc/developer/doxygen/figures/target_field.png similarity index 100% rename from doc/user/doxygen/figures/target_field.png rename to doc/developer/doxygen/figures/target_field.png diff --git a/doc/user/doxygen/figures/target_mesh.png b/doc/developer/doxygen/figures/target_mesh.png similarity index 100% rename from doc/user/doxygen/figures/target_mesh.png rename to doc/developer/doxygen/figures/target_mesh.png diff --git a/doc/user/doxygen/figures/tetra_simplexize_24_48.jpg b/doc/developer/doxygen/figures/tetra_simplexize_24_48.jpg similarity index 100% rename from doc/user/doxygen/figures/tetra_simplexize_24_48.jpg rename to doc/developer/doxygen/figures/tetra_simplexize_24_48.jpg diff --git a/doc/user/doxygen/figures/tetra_simplexize_5_6.jpg b/doc/developer/doxygen/figures/tetra_simplexize_5_6.jpg similarity index 100% rename from doc/user/doxygen/figures/tetra_simplexize_5_6.jpg rename to doc/developer/doxygen/figures/tetra_simplexize_5_6.jpg diff --git a/doc/user/doxygen/images/head.png b/doc/developer/doxygen/images/head.png similarity index 100% rename from doc/user/doxygen/images/head.png rename to doc/developer/doxygen/images/head.png diff --git a/doc/user/doxygen/static/footer.html b/doc/developer/doxygen/static/footer.html similarity index 100% rename from doc/user/doxygen/static/footer.html rename to doc/developer/doxygen/static/footer.html diff --git a/doc/user/doxygen/static/header.html.in b/doc/developer/doxygen/static/header.html.in similarity index 100% rename from doc/user/doxygen/static/header.html.in rename to doc/developer/doxygen/static/header.html.in diff --git a/doc/user/doxygen/static/medcoupling_extra.css b/doc/developer/doxygen/static/medcoupling_extra.css similarity index 100% rename from doc/user/doxygen/static/medcoupling_extra.css rename to doc/developer/doxygen/static/medcoupling_extra.css diff --git a/doc/tutorial/CMakeLists.txt b/doc/tutorial/CMakeLists.txt index cafc00920..ecbf8d00d 100644 --- a/doc/tutorial/CMakeLists.txt +++ b/doc/tutorial/CMakeLists.txt @@ -23,7 +23,7 @@ SET(_cmd_options -c ${CMAKE_CURRENT_BINARY_DIR} -b html -d doctrees -D latex_pap SALOME_GENERATE_ENVIRONMENT_SCRIPT(_cmd env_script "${SPHINX_EXECUTABLE}" "${_cmd_options}") ADD_CUSTOM_TARGET(tutorial_doc COMMAND ${_cmd}) -ADD_DEPENDENCIES(usr_docs tutorial_doc) +ADD_DEPENDENCIES(dev_docs tutorial_doc) #INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target tutorial_doc)") INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html/ DESTINATION ${MEDCOUPLING_INSTALL_DOC}/tutorial) diff --git a/doc/user/CMakeLists.txt b/doc/user/CMakeLists.txt index 186e64694..5c1378a08 100644 --- a/doc/user/CMakeLists.txt +++ b/doc/user/CMakeLists.txt @@ -17,4 +17,27 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -ADD_SUBDIRECTORY(doxygen) +INCLUDE(UseSphinx) + +SALOME_CONFIGURE_FILE(conf.py.in conf.py) + +IF(MEDCOUPLING_BUILD_FRENCH_DOC) + SET(BUILD_LANGUAGE_SWITCHER "true") + SALOME_CONFIGURE_FILE(static/switchers.js.in static/switchers.js) + ADD_MULTI_LANG_DOCUMENTATION(TARGET_NAME usr_doc MODULE html LANGUAGES fr) +ELSE() + SET(BUILD_LANGUAGE_SWITCHER "false") + SALOME_CONFIGURE_FILE(static/switchers.js.in static/switchers.js) + ADD_MULTI_LANG_DOCUMENTATION(TARGET_NAME usr_doc MODULE html) +ENDIF() + +#ADD_DEPENDENCIES(usr_doc dev_docs) + +INSTALL(CODE "EXECUTE_PROCESS(COMMAND \"${CMAKE_COMMAND}\" --build ${PROJECT_BINARY_DIR} --target usr_doc)") +INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION ${MEDCOUPLING_INSTALL_DOC}/user) +IF(MEDCOUPLING_BUILD_FRENCH_DOC) + INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html_fr DESTINATION ${MEDCOUPLING_INSTALL_DOC}/user) +ENDIF() + +SET(make_clean_files html html_fr doctrees locale potfiles static) +SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${make_clean_files}") diff --git a/doc/user/conf.py.in b/doc/user/conf.py.in new file mode 100644 index 000000000..0b143134d --- /dev/null +++ b/doc/user/conf.py.in @@ -0,0 +1,194 @@ +# -*- coding: utf-8 -*- +# +# Code Coupling and Code Integration documentation build configuration file, created by +# sphinx-quickstart on Tue Apr 28 15:28:57 2009. +# +# This file is execfile()d with the current directory set to its containing dir. +# +# The contents of this file are pickled, so don't put values in the namespace +# that aren't pickleable (module imports are okay, they're removed automatically). +# +# All configuration values have a default; values that are commented out +# serve to show the default. + +import sys, os + +# If your extensions are in another directory, add it here. If the directory +# is relative to the documentation root, use os.path.abspath to make it +# absolute, like shown here. +#sys.path.append(os.path.abspath('.')) + +# General configuration +# --------------------- + +# Add any Sphinx extension module names here, as strings. They can be extensions +# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +extensions = ['sphinx.ext.pngmath', 'sphinx.ext.mathjax'] + +# Add any paths that contain templates here, relative to this directory. +#templates_path = ['_templates'] +templates_path = [os.path.join('@CMAKE_CURRENT_SOURCE_DIR@','templates')] + +# The suffix of source filenames. +source_suffix = '.rst' + +# The encoding of source files. +#source_encoding = 'utf-8' + +# The master toctree document. +master_doc = 'index' + +# General information about the project. +project = u"MEDCoupling User's Guide" +copyright = u'2015-2017, Geay, Bruneton' + +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +# +# The short X.Y version. +version = '@MEDCOUPLING_VERSION@' +# The full version, including alpha/beta/rc tags. +release = '@MEDCOUPLING_VERSION@' + +# The language for content autogenerated by Sphinx. Refer to documentation +# for a list of supported languages. +#language = None + +# There are two options for replacing |today|: either, you set today to some +# non-false value, then it is used: +#today = '' +# Else, today_fmt is used as the format for a strftime call. +#today_fmt = '%B %d, %Y' + +# List of documents that shouldn't be included in the build. +#unused_docs = [] + +# List of directories, relative to source directory, that shouldn't be searched +# for source files. +exclude_trees = [] + +# The reST default role (used for this markup: `text`) to use for all documents. +#default_role = None + +# If true, '()' will be appended to :func: etc. cross-reference text. +#add_function_parentheses = True + +# If true, the current module name will be prepended to all description +# unit titles (such as .. function::). +#add_module_names = True + +# If true, sectionauthor and moduleauthor directives will be shown in the +# output. They are ignored by default. +#show_authors = False + +# The name of the Pygments (syntax highlighting) style to use. +pygments_style = 'sphinx' + + +# Options for HTML output +# ----------------------- + +html_theme = '@SPHINX_THEME@' + +# The style sheet to use for HTML and HTML Help pages. A file of that name +# must exist either in Sphinx' static/ path, or in one of the custom paths +# given in html_static_path. +#html_style = 'default.css' + +# The name for this set of Sphinx documents. If None, it defaults to +# " v documentation". +#html_title = None + +# A shorter title for the navigation bar. Default is the same as html_title. +#html_short_title = None + +# The name of an image file (relative to this directory) to place at the top +# of the sidebar. +#html_logo = '' + +# The name of an image file (within the static path) to use as favicon of the +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 +# pixels large. +#html_favicon = None + +# Add any paths that contain custom static files (such as style sheets) here, +# relative to this directory. They are copied after the builtin static files, +# so a file named "default.css" will overwrite the builtin "default.css". +#html_static_path = ['_static'] +html_static_path = [os.path.join('@CMAKE_CURRENT_BINARY_DIR@','static')] + +# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, +# using the given strftime format. +#html_last_updated_fmt = '%b %d, %Y' + +# If true, SmartyPants will be used to convert quotes and dashes to +# typographically correct entities. +#html_use_smartypants = True + +# Custom sidebar templates, maps document names to template names. +#html_sidebars = {} + +# Additional templates that should be rendered to pages, maps page names to +# template names. +#html_additional_pages = {} + +# If false, no module index is generated. +#html_use_modindex = True + +# If false, no index is generated. +#html_use_index = True + +# If true, the index is split into individual pages for each letter. +#html_split_index = False + +# If true, the reST sources are included in the HTML build as _sources/. +#html_copy_source = True + +# If true, an OpenSearch description file will be output, and all pages will +# contain a tag referring to it. The value of this option must be the +# base URL from which the finished HTML is served. +#html_use_opensearch = '' + +# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml"). +#html_file_suffix = '' + +# Output file base name for HTML help builder. +htmlhelp_basename = 'MEDCouplingUsersGuide' + + +# Options for LaTeX output +# ------------------------ + +# The paper size ('letter' or 'a4'). +#latex_paper_size = 'letter' + +# The font size ('10pt', '11pt' or '12pt'). +#latex_font_size = '10pt' + +# Grouping the document tree into LaTeX files. List of tuples +# (source start file, target name, title, author, document class [howto/manual]). +latex_documents = [ + ('index', 'MEDCouplingUserGuide.tex', ur"MEDCoupling User's Guide", + ur'A. Geay, A. Bruneton', 'manual'), +] + +# The name of an image file (relative to this directory) to place at the top of +# the title page. +#latex_logo = '' + +# For "manual" documents, if this is true, then toplevel headings are parts, +# not chapters. +#latex_use_parts = False + +# Additional stuff for the LaTeX preamble. +#latex_preamble = '' + +# Documents to append as an appendix to all manuals. +#latex_appendices = [] + +# If false, no module index is generated. +#latex_use_modindex = True + +locale_dirs = [os.path.join('@CMAKE_CURRENT_BINARY_DIR@','locale')] # path is example but recommended. +gettext_compact = False # optional diff --git a/doc/user/images/cartesian.png b/doc/user/images/cartesian.png new file mode 100644 index 0000000000000000000000000000000000000000..81b0a43d54eaf343edc77deff6cb2e627ed0c4f3 GIT binary patch literal 788 zcmeAS@N?(olHy`uVBq!ia0y~yU{nUO4{5rLBJtq=?mO?JR?8nNPAg;ES$<{P^!Rt*TCTtSvCQu1!Q-DY po^7gXfutcK9a(SQ(1eQ5JzmByYu9Rf_(44$rjF6*2UngB7^Jjeh5 literal 0 HcmV?d00001 diff --git a/doc/user/images/cartesian.py b/doc/user/images/cartesian.py new file mode 100644 index 000000000..7ac1c79d0 --- /dev/null +++ b/doc/user/images/cartesian.py @@ -0,0 +1,113 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000001000000080000001a00560054004b005600690065007700650072005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:2 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * +from MEDLoader import WriteMesh + +XCoords=[-0.3,0.,0.1,0.3,0.45,0.47,0.49,1.,1.22] # 9 values along X +YCoords=[0.,0.1,0.37,0.45,0.47,0.49,1.007] # 7 values along Y +arrX=DataArrayDouble(XCoords) +arrX.setInfoOnComponent(0,"X [m]") +arrY=DataArrayDouble(YCoords) +arrY.setInfoOnComponent(0,"Y [m]") +mesh=MEDCouplingCMesh("My2D_CMesh") +mesh.setCoords(arrX,arrY) +WriteMesh("mesh1.med",mesh,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + +import libSALOME_Swig +gui = libSALOME_Swig.SALOMEGUI_Swig() +gui.AddIObject( salome.ObjectToID( mesh_1.GetMesh() )) diff --git a/doc/user/images/convert2quadratic.png b/doc/user/images/convert2quadratic.png new file mode 100644 index 0000000000000000000000000000000000000000..3e00c4e4c6d6ba42a23df2d06337ceb9b61c9b70 GIT binary patch literal 386 zcmeAS@N?(olHy`uVBq!ia0vp^T|jKZ!2~4D%C<%WDdu7)&kzm{j@u9Y9{{2-%*d=H*UG@asOstB7*a9k?Hxz1Lk0p47bRbcR-ckF%4-qgjolLboBRJ;7fIoL zx?Bg}>}_8WSFZ0+eWrOEPk$62|8?Q-w(g-lpI$jem(4p}R`c$9`pSY3#eZzyKYjW7 zBl_5mJBI>We@K6M);4Yb{_0J0f9u37E(qnnwIG~-R^^2=&1rHbpBKzzKWmfm%+VO9 zkl8%b3`s%Bz3y&vtfRtL6og(~Y<7K3R?*j*IF{fYtJrfd%$5cl_sr0Rt6$NspLnCo zZWW#@u6{1-oD!M<#RsJ$ literal 0 HcmV?d00001 diff --git a/doc/user/images/convert2quadratic.py b/doc/user/images/convert2quadratic.py new file mode 100644 index 000000000..d4cb1d08f --- /dev/null +++ b/doc/user/images/convert2quadratic.py @@ -0,0 +1,144 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000001000000080000001a00560054004b005600690065007700650072005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:2 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * +from MEDLoader import WriteMesh + +arr=DataArrayDouble(range(2)) +mc=MEDCouplingCMesh("m1") +mc.setCoords(arr,arr) +m1=mc.buildUnstructured() +m2=m1.deepCopy() +m2.translate([1.5,0]) +m1.convertLinearCellsToQuadratic(0) +m2.convertLinearCellsToQuadratic(1) +m2.setName("m2") +WriteMesh("mesh1.med",m1,True) +WriteMesh("mesh1.med",m2,False) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1,mesh_2], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +g1 = mesh_1.MakeGroupByIds("all nodes", SMESH.NODE, range(1,10)) +g2 = mesh_2.MakeGroupByIds("all nodes", SMESH.NODE, range(1,10)) + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (m1) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_3:11:1 (all nodes) parameters +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Representation", "0") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0.666667:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (m2) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4:11:1 (all nodes) parameters +ipar.setParameter("SMESH_4:11:1", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4:11:1", "VTKViewer_0_Representation", "0") +ipar.setParameter("SMESH_4:11:1", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4:11:1", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_4:11:1", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0.666667:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4:11:1", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4:11:1", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4:11:1", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4:11:1", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/curvelinear.png b/doc/user/images/curvelinear.png new file mode 100644 index 0000000000000000000000000000000000000000..ce6e6dcbd13c308cb6137b926b49aee3c24b2a68 GIT binary patch literal 463 zcmeAS@N?(olHy`uVBq!ia0vp^2|ygg!2~2#JlswKDdu7)&kzm{j@u9Y9{{2-%*d=H*UG@aSmf#A7*a9k?XAJxJ@#yAK>EEvrk^!%nWs z)6ZB|Ij=kV{l#CrcWjv*&tJ=bpyzw}`TM8K`@}8;C9Yk6{>jA#C6<-DSgc|a7tdyj z_1y60`@H3<0otu0&zVXcH{4}(VAk04`?t@=?{0+>bGO#0^Gb5uVl}x`x3+fWL(V21 zmaEK~Z^A#aB(gPWHM)FTUD0H~>}cws{8oIKo#T(y3#}& zu6$dq;UDlJq+2gw1IvU5b)xXFszWQ9Hd^ww?OHBI}PYu9(jl{_qx97Y05 zIHvsCzL;amDTfJ-3e1jdKv#l$t$! gZgKpaFw0(s*-@J3<=-F521W^kr>mdKI;Vst01gbb2LJ#7 literal 0 HcmV?d00001 diff --git a/doc/user/images/curvelinear.py b/doc/user/images/curvelinear.py new file mode 100644 index 000000000..268a8e844 --- /dev/null +++ b/doc/user/images/curvelinear.py @@ -0,0 +1,111 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000001000000080000001a00560054004b005600690065007700650072005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:2 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * +from MEDLoader import WriteMesh + +m=MEDCouplingCurveLinearMesh("myCurveLinearMesh") +m.setNodeGridStructure([2,3]) +coords=DataArrayDouble([0.,0., 2.,0., 0.,1., 1.9,1.1, 0.3,1.9, 2.2,2.1],6,2) +coords.setInfoOnComponents(["X [m]","Y [m]"]) +m.setCoords(coords) + +WriteMesh("mesh1.med",m,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + +import libSALOME_Swig +gui = libSALOME_Swig.SALOMEGUI_Swig() +gui.AddIObject( salome.ObjectToID( mesh_1.GetMesh() )) diff --git a/doc/user/images/explodeIntoEdges.png b/doc/user/images/explodeIntoEdges.png new file mode 100644 index 0000000000000000000000000000000000000000..0fa941543641c90545207333d26cf4f3ee429a12 GIT binary patch literal 433 zcmeAS@N?(olHy`uVBq!ia0vp^XMs4Jg9%7#D2GV{Ddu7)&kzm{j@u9Y9{{2-%*d=H*UG@a7~<*T7*a9k?d^k^%!UlEj+#rhEom}&88YG3l+8YVW>wN3c&ax# zR`BzS9lpQwnpDA!+gHsGcwdlYof~*Tvi1A!^Ph|3isbixo&1k+*8QjJV>4_2{(PHP z(_?r|`TAk@`If(r9K0&Eo%`Is`OWiYi*t=z9S{7Hcz4pH3oCiBSVP30aJhfQ; V)Ujtl*MWh~;OXk;vd$@?2>_WF$MpaJ literal 0 HcmV?d00001 diff --git a/doc/user/images/explodeIntoEdges.py b/doc/user/images/explodeIntoEdges.py new file mode 100644 index 000000000..0c626eab6 --- /dev/null +++ b/doc/user/images/explodeIntoEdges.py @@ -0,0 +1,123 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000001000000080000001a00560054004b005600690065007700650072005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:2 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +coordsArr=DataArrayDouble(range(5)) +mesh1=MEDCouplingCMesh("mesh") +mesh1.setCoords(coordsArr,coordsArr) +mesh1 = mesh1.buildUnstructured() + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",mesh1,True) + +mesh1d,d,di,r,ri=mesh1.explodeIntoEdges() +WriteMesh("mesh2.med",mesh1d,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([mesh_2], status) = smesh.CreateMeshesFromMED(r'mesh2.med') + +mesh_2.TranslateObject( mesh_2, [6,0,0], False ) + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (mesh) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:1:f:0:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + diff --git a/doc/user/images/extractSlice3D.png b/doc/user/images/extractSlice3D.png new file mode 100644 index 0000000000000000000000000000000000000000..3e039373f2e6c2cd089fae0941a44242cd8014ed GIT binary patch literal 7258 zcmc&Z^;gs3*B{c+LqIx(!2~Jka03(=ju4R$LAtx8l^88Jl$I_L2BRB=O(&pILt0uI z1?hPCe&2uLJ?H)5sq@_D+&=d{_r@FOY0*)0Py+x!htR%f2mmA+SNlE?>D8Qo9*w?Q z$b8iiMj#MqYF_`>)sf0e+syY0TucLC&T)PSyL>a9q~ zO>Gu9nz4ksfB-V2_+dw0N$Mp1(uhQcUF|)Poy7O}{{<{EBaCF~7q8`+`L=CoG;5=l z5jBKVJWQNaJXD-a{47$DWSPX56i>De!jr8ab2WRoKDHD*1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83yNq-8eJ9o{2Z+R1hzQp%)=<)O?JIKwbIH5xMLO~9M)x4sE4IQ8N2WKJtFc7shAKkG>qD+bMcnu( zic6C{SJDEPF6~pKXAoV;|IEt2km%}OWO^mK?DWmKR$0AxiAm9X_BJdPo(Yzv->_lE z8MqGj{@UAE_E$T2k5GFa#@UZ3PWmwaj60A9ReMc|F58s*P+UEWd6(rVDMS^1^#cV1hQ&zS3x?UJnS zD)$1{9J##q;hZ@`0{60g0FIJoz74`Fzj- literal 0 HcmV?d00001 diff --git a/doc/user/images/extract_mesh_fetched_nodes.png b/doc/user/images/extract_mesh_fetched_nodes.png new file mode 100644 index 0000000000000000000000000000000000000000..c35c9eaf974ec6e5f2f065a7fc0b25aa7894164a GIT binary patch literal 4096 zcmY*cbyQSO*uHdwq?E9(fUwlk-Mz%Jba(%dMmnUsl?EvV2?3=+8l(|XktGBKBqb#l z!aqee!|NDKe~nTEQu9@zc@D~b>sd>WI7Wq}Qj zucC$lAt51p4fz9nCGt`?^#zAZ{;OCxP?lH#ps3JLRxk)GIw%S^T*(gQt+QPZ(BH7V5*u8B!%bvIGhGD;R)lf9z;tO$c zoyf@OX!0U&2@@h`3-SV8n)4t1(d+AWE$^opa-+$cnwmmoBeo{Xp^h za1xS}A64({?V&r8N7Ei?>K2t(M@9lTIMJ7vfgKh)MjaQVdNT(D_5Nh~cbY0(@U9JtSCiX?o0e$1>;OXo9hO?l~F zYI{AMG3G!-M5I`zYi%7dQzGLq?77n25qNB;si|piZ_m&Fc5Y5jZ`{z((9Fz?Nz~oN z-Ca8L5*~SVx}8mBtgEkY@9Ns&_5}vl^$s{#RMBk|YHe-Z+S;nGuRlLO=jG)kZ8sSVbff8P#0u>fsT7ea2-v_2$hR5K1K_B{elQ@CgDm zRVb$Kb_J6cxfo5Pehg&Pw?BXWoRN{Sq@*OtG9)Af`10ioZsAK#1Ya(zq@TLA_1)3h zAg<%!;NbRT{^z+lpT9Rj;9|73wOii52No6=UsYCS=;>%`;y`GKC&tHN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^1DE(DAN%N$;m z8~&bTZT)jo?R4=GJa}J{u4)CuB41r1yu}Dw{MLA*+7e0}wqy9^ubM&M9(uj=`YeZl z1~yKA{<32~SH|7BK? bZ0{%zD~Q}s`dF>t9Ujn7(NS(tw2As3`Y_Sj literal 0 HcmV?d00001 diff --git a/doc/user/images/extract_mesh_fetched_nodes.py b/doc/user/images/extract_mesh_fetched_nodes.py new file mode 100644 index 000000000..2a49a353f --- /dev/null +++ b/doc/user/images/extract_mesh_fetched_nodes.py @@ -0,0 +1,114 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import sys +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000002000000080000001a00560054004b005600690065007700650072005f0030005f00300000000202") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:1 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +coordsArr=DataArrayDouble(range(6)) +mesh1=MEDCouplingCMesh("mesh") +mesh1.setCoords(coordsArr,coordsArr[:3]) + +from MEDLoader import WriteMesh + +mesh1.translate( [6.5,0] ) +mesh2 = mesh1.buildUnstructured() +part = mesh2[1,2,4,5,7,8] +WriteMesh("part.med",part,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +([mesh], status) = smesh.CreateMeshesFromMED(r'part.med') + + +## Set names of Mesh objects +smesh.SetName(mesh.GetMesh(), 'mesh') + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/extract_mesh_ids.png b/doc/user/images/extract_mesh_ids.png new file mode 100644 index 0000000000000000000000000000000000000000..6232d32ef870410f598b89513de92265e19e432b GIT binary patch literal 2214 zcmZ`*X*3(!7LK8GSr7STB9wi>v;e;+6A%IC3gA!9jrt^p&26n`KTHfR(jsz{-GUGO5?y3e(>q zxN0IrJqR^VIXMJ6dsqvqF2Tx@BtylL8{dhU%kA|yknsBEkUz%e_McnZjBH#z{hj0R zB=7ddz83Gu^E}3nu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W9=619$8;vFDz2n0sU3}= z9@K=MGm=(fy!vl;ea7+WP$QfaRnN>P^)j(r(`PZ&uMN6;MG4y_iYf1bG&i6VX4yN#{wru%Mz34)Un<9-36OsY zKivS=ExGKe-T$hx0+==xSby##|Dx+Uqa0owzSE?!!(-0^XAaA1cVf{3Pzb7_>_w@p z0$_v7GcVp0YlY8Ce31h!5$oWNO@G#V8L^^zsgpC6Xu`dw!-Ri2%m38mpZo_p)X##s VAwrDPT$n!%fSHjsq{`4G<}cyyRDJ*e literal 0 HcmV?d00001 diff --git a/doc/user/images/extract_mesh_ids.py b/doc/user/images/extract_mesh_ids.py new file mode 100644 index 000000000..c619c055b --- /dev/null +++ b/doc/user/images/extract_mesh_ids.py @@ -0,0 +1,124 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import sys +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000001000000080000001a00560054004b005600690065007700650072005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 1") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:1 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +coordsArr=DataArrayDouble(range(6)) +mesh1=MEDCouplingCMesh("mesh") +mesh1.setCoords(coordsArr,coordsArr[:3]) + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",mesh1,True) + +mesh1.translate( [6.5,0] ) +mesh2 = mesh1.buildUnstructured() +part = mesh2[1,2,4,5,7,8] +WriteMesh("part.med",part,True) + + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([mesh_2], status) = smesh.CreateMeshesFromMED(r'part.med') + + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_4 (mesh) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/extrusion.png b/doc/user/images/extrusion.png new file mode 100644 index 0000000000000000000000000000000000000000..ef4a48949b25f9b12bf10a4b8abab1305409fa08 GIT binary patch literal 6150 zcma)g_dlE8`+v~Xh)oltN(dShsm;q?wMS5~X^hk^r8QcmYOh#9W0Z!zQG`-T>{Tltv3L=cHe1stPvb#O zT2Efy>H`v=N}k7>As!iqtou$xm3%!@*BNU6-SO^+=XycNcvOu;9(5(Rw2xk{)P`RR z3;=*Lfq)nwng-xTg8~5T|9^&dlN~7oTPEx*)W68X+`Ia;@uCy}kKx}8mqNBqmvM3D zbW3(rOgWc4kR$rlxR+D9lMpD#$Ad801yQ`E+ZAk7)N>im2qgj%;scp<61DX*fy!d2 zf78_2rR%csW9~>!J@BHvO<^qSRSzxjqSj22PKc>1wRgSgX8c+VDMqRb>f_5Kd=jB@ zVT~6s=FJ4oY2r=EE0+AUeC;%Dc>`~1bwx@ZY>At@V~gI1(FsY z?a}ZT)qd%J>$oMzFZ7D}Gp$AwN7(6zfXH4&{p@;StIA2-;+ONy^Qb5Cm$s6>5w82( zcxUv_XY|w;?odQ5!!sW3FfJ-QH_fIScV|c2Kdn|tplQN%_Lnj)nN*m&Kkojs$r?pN z1u+>|DvuASu|qsBAz6k?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1k+z-C;RGd%#8F8 z-5B8@$E_Nf#pN#y@e})V^u|w7RFXygnTl#Ob}d;**bmyijGzym=0B9Hq;lHw4$nLv z&aAY1eV>$Y+@f3em>6;J3^2yBg8SA&9dq>qd;{;biM=0+D8-0)s;GE^FsgakdNXo{ zU}NX<(+nJoixRmzjN!%18#|Ivm@)AaJyU^@Py$@_r#dI}2`6fl^5ORi2>X%#C*yg? z%fC5ji*6mT6lw_bQs?#4Ol)F;%8Lp{RtG_-{ZOoEigfM4i9*{&;%o1#vj-HN9H^`) zjm7}qsJ5>ZTT-`~Zp9%*NBS~+_`!Rz+}%b_Wnlw@F&zi0h#ND&jaZ$3vzuT2uR56~ z77bBeZL-Gv`k$t`wz19~-PBOzdZL?0CyT3%^-VtELC6bfg1d3gUjifIn7(dnZn~rG zFF?a&u&XSnIKIinc_`O%y0!R(t=i(~{$ZJOo{31OIvW6Lz-yaLTxps@{JJYjt8sng zJ}v2bY1rk;tFARJrqRgt3$wutY>ZPTc4f+~t){zDQT6AJAR0TX^tfS>Y`8fG+PtpKP z2_0x3)U{WEvz>A)4gkOp(?=q_p@1$s9#uYCz?^j57zqIAQjC!T0HlOK008xJ7SKh# eLju$vYaZNy_>%G=-i~T=nK2>r6 literal 0 HcmV?d00001 diff --git a/doc/user/images/extrusion.py b/doc/user/images/extrusion.py new file mode 100644 index 000000000..73f3334c4 --- /dev/null +++ b/doc/user/images/extrusion.py @@ -0,0 +1,173 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000001000000080000001a00560054004b005600690065007700650072005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:2 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +coordsArr=DataArrayDouble(range(3)) +mesh1=MEDCouplingCMesh("mesh") +mesh1.setCoords(coordsArr,coordsArr,coordsArr[:1]) +mesh1 = mesh1.buildUnstructured() + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",mesh1,True) + +import math +r = 3. +nb = 10 +a = 5. +coords = [] +for i in range( nb ): + x = r * math.cos( math.radians( i*a )) - r + z = r * math.sin( math.radians( i*a )) + coords.extend([ x, 0, z ]) + +m2=MEDCouplingCurveLinearMesh("myCurveLinearMesh") +m2.setNodeGridStructure([1,nb]) +coo=DataArrayDouble(coords,nb,3) +m2.setCoords(coo) +m2 = m2.buildUnstructured() + +WriteMesh("part.med",m2,True) + +m3=mesh1.buildExtrudedMesh(m2,0) +WriteMesh("mesh2.med",m3,True) + +m3=mesh1.buildExtrudedMesh(m2,1) +WriteMesh("mesh3.med",m3,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([mesh_2], status) = smesh.CreateMeshesFromMED(r'part.med') +([mesh_3], status) = smesh.CreateMeshesFromMED(r'mesh2.med') +([mesh_4], status) = smesh.CreateMeshesFromMED(r'mesh3.med') + +mesh_3.TranslateObject( mesh_3, [2.5,0,0], False ) +mesh_4.TranslateObject( mesh_4, [5,0,0], False ) + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (myCurveLinearMesh) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:1:f:0:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_5 (Extruded) parameters +ipar.setParameter("SMESH_5", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_5", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_5", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_5", "VTKViewer_0_Entities", "e:0:f:0:v:1:0d:0:b:0") +ipar.setParameter("SMESH_5", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_5", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_5", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_5", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_5", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_6 (Extruded) parameters +ipar.setParameter("SMESH_6", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_6", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_6", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_6", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_6", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_6", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_6", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_6", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_6", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + +import libSALOME_Swig +gui = libSALOME_Swig.SALOMEGUI_Swig() +gui.AddIObject( salome.ObjectToID( mesh_1.GetMesh() )) +gui.AddIObject( salome.ObjectToID( mesh_3.GetMesh() )) +gui.AddIObject( salome.ObjectToID( mesh_4.GetMesh() )) diff --git a/doc/user/images/intersect_2d1d.png b/doc/user/images/intersect_2d1d.png new file mode 100644 index 0000000000000000000000000000000000000000..46b8c935f3042aa0ddf9d8dd385b263575847de3 GIT binary patch literal 2184 zcmZuzX;70(77d#Ol-(e!LIfiLl+7hkFhC+kF&L5nJ`@sAAQ2J1pdh;}BD)6hA@#8s z7z1Gyd5Sy{!G|WS3dW6LHGph_d9n-4$JEqRP1XG9?sLyMeQ*Ehy4@*fNKQ(MI*KqD zOo?~`?+SxS=|Fe}E)C7ImgY;)BExndQsHoT->}ON6eqj!SQMrA_o_7dr3hC#meWy69N~ zK8C%W8ywgld^)YkRt@!fzIss#7IIso=(sh{2%KO9#AG3*;;kH;PcQaQG;*+Fo+L$YTu@uDyhZCpS4bkqJrug?L-bADZ z!e`=sZ>TIjY46H7RTUv!!=czygFD?wa^z-{Gz`L7G@RKF`kA@Swb*ZRc84$syj(jt z3Yi0e`;fWjb;zcmytrv**xv^IdVP$i*OQg6UGZdg)L|d3ZH=H8+Tu?C0y!5J(2lx4 z*lipM@e@o{39n0d{)VcbtYgZHFT*NZ`H-wNO~2`2dGV!1N#GuQ(wcyIqqIgIQ)z&X zN(Q}<=s*H#mj%tq7T~w~BxMPhy4)6B@lPdg3x9q*zsKdbwfTdRE41Ng71wpUvUOkT zFN;g{hr6=mmsfr?vw5_s+R<^*lmS7^IeCI+ia6G>cuvp1)&6*-&eKLEvLP1e3E7qN zR#Yk=_MTHq6XgmfR8`UtThum&7cwOiAvfAMV@+87?aFvkoDLxU{x)UTsJcbGA;c-d&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Au>p)%36{f=olA%+9;6cb0#QO_|&c zv;b{kFHV0-VVMFg*`pb!j1O}8_M~t|rkGQ*2mJtIos2numR|Ubpv-Gy9(0|jKCg^O z0&7|&K{#&2&@ohy#iguLukifrUZ7E)nQlWib!C>5=#*|wqC#zGUPFVcBr*$TJ?%n0>qBw}j-X@QHLCsEM`s}E%cXw M5eX!Gl> + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +coordsArr=DataArrayDouble(range(6)) +mesh2d=MEDCouplingCMesh("mesh2d") +mesh2d.setCoords(coordsArr,coordsArr[:2]) +mesh2d=mesh2d.buildUnstructured() + +mesh1d=MEDCouplingCMesh("mesh1d") +mesh1d.setCoords(coordsArr,coordsArr[:1]) +mesh1d=mesh1d.buildUnstructured() +mesh1d.rotate( [2.3,0], math.radians( 25 )) +mesh1d.translate( [0.2,0.4] ) + +m2d,m1d,a2d,a1d=MEDCouplingUMesh.Intersect2DMeshWith1DLine( mesh2d, mesh1d, 1e-12 ) +m1d.setName("m1d") + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",mesh2d,True) +WriteMesh("mesh1.med",mesh1d,False) +WriteMesh("mesh1.med",m2d,False) +WriteMesh("mesh1.med",m1d,False) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +([m_1d, m_2d, mesh_1d, mesh_2d], status) = smesh.CreateMeshesFromMED(r'mesh1.med') + +m_1d.TranslateObject( m_1d, [0,2,0], False ) +m_2d.TranslateObject( m_2d, [0,2,0], False ) + +m_1d.MakeGroup ( "nodes", SMESH.NODE, SMESH.FT_NodeConnectivityNumber,">",0) +mesh_1d.MakeGroup( "all nodes", SMESH.NODE, SMESH.FT_RangeOfIds,"=","1-20") + + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_4 (merge) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_3 (m1d) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:1:f:0:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_5 (mesh1d) parameters +ipar.setParameter("SMESH_5", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_5", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_5", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_5", "VTKViewer_0_Entities", "e:1:f:0:v:0:0d:0:b:0") +ipar.setParameter("SMESH_5", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_5", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_5", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_5", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_5", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_6 (mesh2d) parameters +ipar.setParameter("SMESH_6", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_6", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_6", "VTKViewer_0_IsShrunk", "1") +ipar.setParameter("SMESH_6", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_6", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_6", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_6", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_6", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_6", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_3:11:1 (nodes) parameters +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Representation", "0") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0.666667:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3:11:1", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_5:11:1 (all nodes) parameters +ipar.setParameter("SMESH_5:11:1", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_5:11:1", "VTKViewer_0_Representation", "0") +ipar.setParameter("SMESH_5:11:1", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_5:11:1", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_5:11:1", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0.666667:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_5:11:1", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_5:11:1", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_5:11:1", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_5:11:1", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/intersect_2d2d.png b/doc/user/images/intersect_2d2d.png new file mode 100644 index 0000000000000000000000000000000000000000..7d651582e398b194532216335663bc0deac7b4d0 GIT binary patch literal 1507 zcmV<91swW`P)NTQK$oQN%-loWs@8YIxgAhHjFNTOc-8ALPy zB+-3=de9Ep2Q?(o9m6w-Xh3l!(KT^<&<@!LDJ0P;1~=x322@589Y|Axek1#!gCu&% zK7)t`l=b2L0u(*IswBcQ`v7-zq91lWh>`->Ac?+-Tn{qKKE50WDbj1ZZ;_$;Na}tgHl|K4c zi-Klubk%-y)TH;hgh`aRy?y`>A8)jn`K8Xq*kOi0QF87}QnSI7f4*XsG=Qrk?$Add8ZGU2&hXm*-GG<#Y zV-~U#?Ixqb!I}F#SyQPo+h(83GJ_?N!U1V{8lUDqU@SGq%y+#plIZ;bDRqT!6ouia zreN;tjG1~8>Fm_j)a=t-a&Bk#TlBj>D!o6SV4@W)`$E-)7Yw!|D6zHF} zU!dVg@@gm(FIiUNJx@Po)04>Sd(4jiHfe?< z5XLOJiAl7*SeV;(D5Xk!1=YsvDc_h)c|Otle3R#9`99OfzXM)|*6ic4}2{$?jzLd|vj+ zE_sssNpy9m64atvb!jIJ}~>DEO~}&Nz}Ph5#O&W4~Lg( zV^;81&u?dwDChxsdng$WdvW)?bIii6cZP!`8a^EQ?^g_mz2SS#n1%B)iPG%U`H!Ea zS#mfD_M9>6^jMZ<|DVcyd>)4k4j9G^%jeG|GD~aw=KSg>@&*Mc_&z%`J|GoNjh%@P9lYpVt@<+G`T%d-!l6MAVA!Yv$K4)hztTk@ceyeQ?ri@ z0s{GwL^)~^83csm{5xRBW*->@1hr41ptXn$0zz}{M6ECT;(mJ@z}6p06rvVUf`Cl? zJ5jrsePj@jk3qOj`2k^?N zPSpBp5hVz~dviMx83f>rvz@42tVLuHfb+(8A~FcTRU?y#3<7Y^g|oBv`UH&(0??zY z6LDi6z!29uQTwkJQGx&rbf**PKW`sEESEbG01Wrx{Q>}>{R^b~V502h`MLlA002ov JPDHLkV1f}ww=)0$ literal 0 HcmV?d00001 diff --git a/doc/user/images/intersect_2d2d.py b/doc/user/images/intersect_2d2d.py new file mode 100644 index 000000000..37219194c --- /dev/null +++ b/doc/user/images/intersect_2d2d.py @@ -0,0 +1,140 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import sys +import salome +import math + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000000000000080000001a00560054004b005600690065007700650072005f0030005f00300000000002") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:1 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +coordsArr=DataArrayDouble(range(6)) +mesh2d=MEDCouplingCMesh("mesh2") +mesh2d.setCoords(coordsArr,coordsArr[:2]) +mesh2d=mesh2d.buildUnstructured() + +mesh1d=mesh2d.deepCopy() +mesh1d.rotate( [2.3,0], math.radians( 25 )) +#mesh1d.translate( [0.2,0.4] ) +mesh1d.setName("mesh1") + +m2d,a2d,a1d=MEDCouplingUMesh.Intersect2DMeshes( mesh2d, mesh1d, 1e-12 ) + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",mesh2d,True) +WriteMesh("mesh1.med",mesh1d,False) +WriteMesh("mesh1.med",m2d,False) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +([m_2d, mesh_1d, mesh_2d], status) = smesh.CreateMeshesFromMED(r'mesh1.med') + +m_2d.TranslateObject( m_2d, [6,0,0], False ) + + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_4 (mesh1) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_3 (Intersect2D) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_5 (mesh2) parameters +ipar.setParameter("SMESH_5", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_5", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_5", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_5", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_5", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_5", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_5", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_5", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_5", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/measure_field.png b/doc/user/images/measure_field.png new file mode 100644 index 0000000000000000000000000000000000000000..d58dea25ecec9cbef387dc31109ac968722106da GIT binary patch literal 11540 zcmaKS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2wn?9|twwGF~U;q-$K)($<$Du-WzCDhS_GUe>N4`eU=RQ#yp zyg4`i96ADq-atw}j>$8iYwS}=*YB?%fo>sCCY#uP1q<1~>vNOu?ZFin6`ddag>^aO zm-^AG3E*PVoEK6z@LzX7=)Pa~X$w;~tlp?M~D*Jvx@09>A|r&7ZF9_E(Q z738m;>HbKe`)dRkOI33ygu-#f^;2V z!T-(%4{>S+173Xk7s{(m1i{#txV$O&CyqFoObI?%F#I9BZEtKqRA0nuxqmP9O@-Fs zDut2Y+FWw8yt*IpXCYzkY)hIHe0&d4c|=Jmknvu_`7}J$g3`OOZwq1t`Wt$mh;*_k zo0aKbwPI%$=IKI@^60}OUOBQK_l)W4koL^X6lauoS>N@Z6c-dog4{Rn9e!+|rU9Z& zC3;Umx3R}kZemSM-c_LEKRt0riARle6zOvgdCi>Tkx80uM6R9}pZ^qyM!?0~ww$g2 zG%Enx^7Wg`2Arx4NqDE@bS^+w;9m(0n(UG<+Ge{Q*S%l>>;qsy!iL5FAcqm!XaDU* zcJvg@Hf~EiJ)fyI$*)08e-ZGQQt94u>IalzU`ktqXeFQr_gk<{R{VSwK3vf5%MLyjj@a=y#uMaV~DU#*UARb8Y5e^&VY>b`Fw@xi>2=p{#)>e#WiI zZ)iX?_NToLelMxfM{5-ijix&QZDmMEb$&VI*G#!I&}{ANn!W)h*&CDn^`CQbW#9CB zy&R`+II{y4y-(dKDJ38-cUv_x!`P|iuV&RV$es>uRtu%NNGgm5B@_gl;quAC6lRT8 z0#Sk1UyuPuBASX0@_%jue#jG_LLQFg>t8p3daa-ME03}eXdXtAlTwuYCT{5aU$}if A&j0`b literal 0 HcmV?d00001 diff --git a/doc/user/images/measure_field.py b/doc/user/images/measure_field.py new file mode 100644 index 000000000..24cbd6497 --- /dev/null +++ b/doc/user/images/measure_field.py @@ -0,0 +1,101 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() +theStudy = salome.myStudy + +from MEDCoupling import * +from MEDLoader import WriteMesh, WriteFieldUsingAlreadyWrittenMesh + +medfile="mesh1.med" +XCoords=[-0.3,0.,0.1,0.3,0.45,0.47,0.49,1.,1.22] # 9 values along X +YCoords=[0.,0.1,0.37,0.45,0.47,0.49,1.007] # 7 values along Y +arrX=DataArrayDouble(XCoords) +arrX.setInfoOnComponent(0,"X [m]") +arrY=DataArrayDouble(YCoords) +arrY.setInfoOnComponent(0,"Y [m]") +mesh=MEDCouplingCMesh("CMesh") +mesh.setCoords(arrX,arrY) +WriteMesh(medfile,mesh,True) + +f=mesh.getMeasureField(True) +WriteFieldUsingAlreadyWrittenMesh(medfile,f) + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "ParaView_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003b5000000040000000100000001000000080000001800500061007200610056006900650077005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "ParaViS") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 1") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "ParaView_1") +# fill list ParaView_1 +ipar.append("ParaView_1", "ParaView scene:33 - viewer:1") +ipar.append("ParaView_1", "empty") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "ParaViS") + +### +### PARAVIS component +### + +import pvsimple +pvsimple.ShowParaviewView() +#### import the simple module from the paraview +from pvsimple import * +#### disable automatic camera reset on 'Show' +pvsimple._DisableFirstRenderCameraReset() + +# create a new 'MED Reader' +mesh1med = MEDReader(FileName=medfile) + +# Properties modified on mesh1med +mesh1med.AllArrays = ['TS0/CMesh/ComSup0/MeasureOfMesh_CMesh@@][@@P0'] + +# get active view +renderView1 = GetActiveViewOrCreate('RenderView') +# uncomment following to set a specific view size +# renderView1.ViewSize = [935, 531] + +# show data in view +mesh1medDisplay = Show(mesh1med, renderView1) + +# trace defaults for the display properties. +mesh1medDisplay.Representation = 'Surface' + +# update the view to ensure updated data information +renderView1.Update() + +# set scalar coloring +ColorBy(mesh1medDisplay, ('CELLS', 'MeasureOfMesh_CMesh')) + +# rescale color and/or opacity maps used to include current data range +mesh1medDisplay.RescaleTransferFunctionToDataRange(True, False) + +# show color bar/color legend +mesh1medDisplay.SetScalarBarVisibility(renderView1, True) + +# get color transfer function/color map for 'MeasureOfMesh_CMesh' +measureOfMesh_CMeshLUT = GetColorTransferFunction('MeasureOfMesh_CMesh') + +#### saving camera placements for all active views + +# current camera placement for renderView1 +renderView1.InteractionMode = '2D' +renderView1.CameraPosition = [1.7629894333642653, 1.5037968367059755, -3.5223589503586297] +renderView1.CameraFocalPoint = [1.7629894333642653, 1.5037968367059755, 0.0] +renderView1.CameraParallelScale = 1.6150499279094872 + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/medrenumber.png b/doc/user/images/medrenumber.png new file mode 100644 index 0000000000000000000000000000000000000000..edc9fc32563bfb7407ea60441a7c2cc10eee68b4 GIT binary patch literal 10782 zcmZ9SWmFu^+O7u+65Mrg_XN)%K|=^`!7W&DAA;-Pg9Qk#!7T)L26uvl1RvZP+&R4a z+xvXy>>u6LwYpYyt?H8dx$2HoQ&GUdqQn9K062>8WHkT)q|eXKWf;iM_m|9xKc5p6 zH)%yJ3=E8gHPzMUET;22J-6rLV*gx7C=9?b0DumlDEn3moOzh#4JMImdFq7V2gjRX zzHLBFmeY#Kr7H;3J=(dJK}XZ;r`sbTc}pw^!%Y}KYYtqOLTxWOSVxwpV?*{b1SrVH z)4S3q)Zj)Sq2i$SNg;1vDdc3H?^YdERaNa(N$gI%o_LLLZn>>2JNCBoDd!-@g%IH5 z5ipYmzwuMYLSE8CBCxK|r>LmE;FEcX7gDa+2@f6bGY z0KHXitBvJkflpmZNH=5PxvM&Os*kSsmD=OQ5gS? z(Hy8b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f2 --- /dev/null +++ b/doc/user/images/medrenumber.py @@ -0,0 +1,148 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import sys +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import salome_notebook +notebook = salome_notebook.NoteBook(theStudy) +sys.path.insert( 0, r'/misc/dn27/users_Linux/eap/salome/tmp') + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000200000002000000080000001a004f00430043005600690065007700650072005f0030005f00300000000102000000080000001a00560054004b005600690065007700650072005f0030005f00300000000202") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 1") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_2") +# fill list VTKViewer_2 +ipar.append("VTKViewer_2", "VTK scene:1 - viewer:1") +ipar.append("VTKViewer_2", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +### +### GEOM component +### + +import GEOM +from salome.geom import geomBuilder +import math +import SALOMEDS + + +geompy = geomBuilder.New(theStudy) + +Face_1 = geompy.MakeFaceHW(100, 100, 1) +geompy.addToStudy( Face_1, 'Face_1' ) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +Mesh_1 = smesh.Mesh(Face_1) +Regular_1D = Mesh_1.Segment() +Number_of_Segments_1 = Regular_1D.NumberOfSegments(3) +MEFISTO_2D = Mesh_1.Triangle(algo=smeshBuilder.MEFISTO) +isDone = Mesh_1.Compute() +isDone = Mesh_1.RemoveElements( range( 1,13 )) +Mesh_1.ExportMED( r'mesh1.med', overwrite=1 ) + + +#from MEDCoupling import * +from MEDLoader import ReadMeshFromFile, WriteMesh +m = ReadMeshFromFile("mesh1.med") + +from MEDRenumber import RenumberingFactory +ren=RenumberingFactory("BOOST") +a,b=m.computeNeighborsOfCells() +n2o,_=ren.renumber(a,b) +mrenum=m[n2o] +WriteMesh("mesh2.med",mrenum,True) + +([Mesh_renum], status) = smesh.CreateMeshesFromMED(r'mesh2.med') +Mesh_renum.TranslateObject( Mesh_renum, [ 120, 0, 0 ], 0 ) + + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (Mesh_1) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (Mesh_Renum) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/orderConsecutiveCells1D.png b/doc/user/images/orderConsecutiveCells1D.png new file mode 100644 index 0000000000000000000000000000000000000000..4537133a87f5a672ba7511a41573f30ee07664b2 GIT binary patch literal 1139 zcmeAS@N?(olHy`uVBq!ia0vp^8-du2g9%8o|9k%lNHG^Xd4_OsaNK_A{{YD4Ebxdd z1}e7#VMb;pxmE@S7BNp3$B>FSZ}0efCV}L^G1jXj2E{7KeEQtmjt`UxBA~v(%O#Ob)Z+HIl zy;J_y_BHLluMj_f@uBOBURyCeP#2A_WnA#YL5+dWh_PS-XM^&YmizCw*F69J`|Mt| zGgq%py_**w8@tr-&*R6*d3kzLz1OZ?+qQlC{CV>(-DnaB5=pJAvygiB$Z8yG9Q1rC_VgGA>d>-ySL)RayfbV_O`Zr_wH$&wYRtLKmK_7 z^y!Tb4gxI)4?0Fp%hb7b`}XQJYeGbpu3Xu9tfnQvYOb8D?A`nK`(2b42CP`W-al|k zSJ(df+pk?}?BdO4t5(08UtM4S{@uHKckVo~$V*Lay)EMF{2N;(AbmiscU8J$=?mGvC4coT4m5PVvZLdyDY<&LHX`zB=kcv>D)m)Y46G}5r zKQ-|^ono{w;6&Eed-v~8K5MvP^XAJJFD}fSweEGudCu7Dp`lY%I-ggrzyABrAD?`| ztHqDnU%q_lpiod=?*6UhQ1PLxtwl1|Z``mjGFr4M3+S=g$qCunuOB@+^t9;el`A4# zt(~2n875i3#6m;YuV24<)v7}eH)wR-%rTpMa>l;anLr11J$n20?aiAruV$TnTEyb) zVN_UD^r&cO*ZNqksgEl6EnV80(6`Y=>Ej>S6@y;C^Ah5IR6DYEpdopFy zu3fVd{4_g`CbhS>&z(EhZ1&l_?eem+mNI-&-6@fM#~<&E(VOen-`lIJt2=XFQgX8L zOdq8dVCw1aZ#kUUWGS{+<{z{7(jdF}>-X*Zw_5+n{s6g|3_5>5-AweHVHx%R@B7lH zJ6@DWORP!Q%W;mgq4EC#STb$)VUS5-dY~Z8z&?|~;snb9M|cV*TI!I`ltAHr!?e4u zt|8SkCV0*bYPswB^vaRsj>vMsMfVSfq&O|VvcDvLimUMX*qyuaGG+)e5So@`VM%_sl%WKCCqFHQB mAN&v9^?k;J)zG|opW#@2-;Lt$d-H(B27{-opUXO@geCw1z!>WQ literal 0 HcmV?d00001 diff --git a/doc/user/images/orderConsecutiveCells1D.py b/doc/user/images/orderConsecutiveCells1D.py new file mode 100644 index 000000000..4d26fca62 --- /dev/null +++ b/doc/user/images/orderConsecutiveCells1D.py @@ -0,0 +1,131 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import sys +import salome +import math + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000000000000080000001a00560054004b005600690065007700650072005f0030005f00300000000002") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:1 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * +from MEDLoader import WriteMesh + +coordsArr=DataArrayDouble(range(6)) + +m1d=MEDCouplingUMesh("m1d",1) +m1d.setCoords(coordsArr) +m1d.allocateCells(5) +m1d.insertNextCell(NORM_SEG2,[3,4]) +m1d.insertNextCell(NORM_SEG2,[5,4]) +m1d.insertNextCell(NORM_SEG2,[3,2]) +m1d.insertNextCell(NORM_SEG2,[2,1]) +m1d.insertNextCell(NORM_SEG2,[0,1]) +m1d.finishInsertingCells() +WriteMesh("mesh1.med",m1d,True) + +m1d.renumberCells( m1d.orderConsecutiveCells1D().invertArrayN2O2O2N(5), True ) +m1d.setName("renumberCells") +WriteMesh("mesh1.med",m1d,False) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +([m_1d, m_renum], status) = smesh.CreateMeshesFromMED(r'mesh1.med') + +m_renum.TranslateObject( m_renum, [0,-1,0], False ) + + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_4 (m1d) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_3 (renumberCells) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/orient_2d.png b/doc/user/images/orient_2d.png new file mode 100644 index 0000000000000000000000000000000000000000..f28c5d26006306f1d9869b89954d1d561ecdc3cc GIT binary patch literal 2882 zcmZvec{r3^8^9mKOk)^Ec7Eo?J9xqRr zdK?-PZer%W6050f;1(tcL2N|neC=khcqnL;7(`C(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<)n)hg?7FqS*pK=);QJU3V`t#3k`FHMqbFyFJ|w)bCjl!vqL zcz8iRs$+ioWcFgZk&cdz*C!i3YPFh~gtqjZ5aHHi7r$I+kPFz4Xe~hvfh6xDN z|5{kG7FhqSj(Jl}63qP4z+$nctsOMo#X2YI{f})oMY$5@q97h9t+VL@&zvJfxt`b- z5g+t&u0;rVCd74A#>MTaK<`NdSfXrVA4R=L?a_syTTQq?cR1u7hApyV?t8o`3IdD< zv|p*cUHw&3F$vl%Z6{1rbrXwK<(L1Jf-Sl9PNC+!+^l9aPmv-#aw$~j6_vR(K$RhK zcXJ}hE*vL|MwefVLfsngDG!=5b5zb|xihz6jnrvI8*=&ns@7R(SU2LFhsCZ zuzheaeF=p+!a8Fk#1&zQqoGFvs4^7>>-WRt_baBnX!g^aFx>I^}M%O^_3mtJ`}joit8{c9-SE=m=T2hawtDcFq@ zx{Kw!s+PMy^U?E;pv~F`(p5=3wVa6Q!#v4!a}+=nJ$Ux?2-)Tb^{m>XZnx?QXGz!( z4HgqRpk0I&8Nj(Cnhb8lPLtKbZroT@$m~7NUv7vh9fb=^ji1rh1{IRd=6&?2qq4v_ z#2%B?9F;R}i;BxjuL>bzr+cWv$l>yE9D8MgFl%V_R%3@Sf$D z-EK9rv9U2&>S$BvX;dn8@^yrxl1N~>WxmD2*7Dd}*Y(fE zwq=(WY8ebg3_hgn@=jH2tDb;ot;6o_E+}RF{v8qX8SI!gj^_08BaxrIY7Os69e?aH zFZuzywY7EeO=NZ#D}dV3>1iU?DU5&~jEyJI`*upaLuq$<)=W%H^uaibNL;z-c|B|^ zJofT;dw4Ui4DE$+8>J^&Kt?vvhjRCvw}!APZFEg@Am}23f(vjHgBOIw(q9;R3>t}P z{&*NE%d5v=Fn+OjJo#4F*36j9SUvo;Xhc literal 0 HcmV?d00001 diff --git a/doc/user/images/orient_2d.py b/doc/user/images/orient_2d.py new file mode 100644 index 000000000..d6b8409a8 --- /dev/null +++ b/doc/user/images/orient_2d.py @@ -0,0 +1,115 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import sys +import salome +import math + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000000000000080000001a00560054004b005600690065007700650072005f0030005f00300000000002") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:1 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * +from MEDLoader import WriteMesh + +coordsArr=DataArrayDouble(range(6)) +mesh2d=MEDCouplingCMesh("mesh2") +mesh2d.setCoords(coordsArr,coordsArr[:2]) +WriteMesh("mesh1.med",mesh2d,True) + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +([m_2d], status) = smesh.CreateMeshesFromMED(r'mesh1.med') + +m2=m_2d.TranslateObjectMakeMesh( m_2d, [-6,0,0] ) +m2.Reorient([2,4]) + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh2) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.5:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (Mesh_4) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.5:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/ortho_field.png b/doc/user/images/ortho_field.png new file mode 100644 index 0000000000000000000000000000000000000000..d7de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8r;B=T`%0_w_kCjXyA_N;Ktu6<# z?DJ*h(nc7gzz0UkB||&=^7`c2RiEl0Z<|J=5qFC5N^m`aqj5vqIB%feIt%44 z6oAuyw!BbbDrf90XK$_hyM>WRCSG^{Ip+T661YBgXeGwOqs|%_&kA_wZoX`liv?z8 z5MkBUNith7G?A7%_}Cvq@~~D3+PbXu6`Ffu4*z&wD8t@(B5~ z_!!cfiN8-BS~L!!ED2qv2bZ5@nKJw|6WgZ~aPI)0Iw7v>K(I(e{-C{<;6k!%m@p`A zO=yu&Myv*eTEOzc$IM;47VP*5EjqwYO33hlVZ1AKwc{9vbaUlJppO?+3}wj(P3DZ0 u=JC}WCZ1qdCkpBZo4s?b9 literal 0 HcmV?d00001 diff --git a/doc/user/images/ortho_field.py b/doc/user/images/ortho_field.py new file mode 100644 index 000000000..7d27868d9 --- /dev/null +++ b/doc/user/images/ortho_field.py @@ -0,0 +1,142 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +from MEDCoupling import * + +coordsArr=DataArrayDouble(range(3)) +mesh1=MEDCouplingCMesh("mesh") +mesh1.setCoords(coordsArr,coordsArr,coordsArr[:1]) +mesh1 = mesh1.buildUnstructured() + +import math +r = 3. +nb = 10 +a = 5. +coords = [] +for i in range( nb ): + x = r * math.cos( math.radians( i*a )) - r + z = r * math.sin( math.radians( i*a )) + coords.extend([ x, 0, z ]) + +m2=MEDCouplingCurveLinearMesh("myCurveLinearMesh") +m2.setNodeGridStructure([1,nb]) +coo=DataArrayDouble(coords,nb,3) +m2.setCoords(coo) +m2 = m2.buildUnstructured() + +m3=mesh1.buildExtrudedMesh(m2,1) + +skin=m3.computeSkin() +skin.setName("skin") +ortho = skin.buildOrthogonalField() +ortho.setName("ortho_field") + +from MEDLoader import WriteField, WriteMesh +medfile="mesh1.med" +WriteMesh(medfile,ortho.getMesh(),True) +WriteField(medfile,ortho,False) + + +import sys +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "ParaView_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "00000001000000000000000201000000010000038f000000040000000100000001000000080000001800500061007200610056006900650077005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "ParaViS") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 1") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "ParaView_1") +# fill list ParaView_1 +ipar.append("ParaView_1", "ParaView scene:7 - viewer:1") +ipar.append("ParaView_1", "empty") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "ParaViS") + + +### +### PARAVIS component +### + +import pvsimple +pvsimple.ShowParaviewView() +#### import the simple module from the paraview +from pvsimple import * +#### disable automatic camera reset on 'Show' +pvsimple._DisableFirstRenderCameraReset() + +# create a new 'MED Reader' +mesh1med = MEDReader(FileName=medfile) + +# get active view +renderView1 = GetActiveViewOrCreate('RenderView') +# uncomment following to set a specific view size +# renderView1.ViewSize = [897, 531] + +# show data in view +mesh1medDisplay = Show(mesh1med, renderView1) + +# reset view to fit data +renderView1.ResetCamera() + +# update the view to ensure updated data information +renderView1.Update() + +# change representation type +mesh1medDisplay.SetRepresentationType('Surface With Edges') + +# create a new 'Glyph' +glyph1 = Glyph(Input=mesh1med,GlyphType='Arrow') + +# Properties modified on glyph1 +glyph1.Vectors = ['CELLS', 'ortho_field'] + +# show data in view +glyph1Display = Show(glyph1, renderView1) + +# trace defaults for the display properties. +glyph1Display.Representation = 'Surface' + +# update the view to ensure updated data information +renderView1.Update() + +# Properties modified on glyph1 +glyph1.GlyphMode = 'All Points' + +# update the view to ensure updated data information +renderView1.Update() + +# Properties modified on glyph1 +glyph1.ScaleFactor = 0.7071067811865466 + +# update the view to ensure updated data information +renderView1.Update() + +# set active source +SetActiveSource(mesh1med) + +# Properties modified on renderView1 +renderView1.Background = [1.0, 1.0, 1.0] + +#### saving camera placements for all active views + +# current camera placement for renderView1 +renderView1.CameraPosition = [-9.40023601342297, -11.82197473872875, 6.269507101837803] +renderView1.CameraFocalPoint = [-3.714211157684638, -4.502747059961789, 3.6997577635620735] +renderView1.CameraViewUp = [0.6941544280720486, -0.3114076799016199, 0.6489798817268972] +renderView1.CameraParallelScale = 2.4893170029349183 + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/partition.png b/doc/user/images/partition.png new file mode 100644 index 0000000000000000000000000000000000000000..d66f2c4433fa45619884697c65ed98d361094fe4 GIT binary patch literal 364 zcmeAS@N?(olHy`uVBq!ia0vp^y+9n!!2~3?%?#WPq?n7HJVQ7*IBq}me*oli7I;J! z1C?8WFe9^)Tq^?uBfqDMV@SoEw>KTR4jC}GIx64$f9fLxuTtkC{wuG@M%A!<<~fr1F2#+%+k^jll3?@O1TaS?83{1OOl7k< + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + + +from MEDCoupling import * +from MEDLoader import ReadMeshFromFile, WriteMesh + +coordsArr=DataArrayDouble(range(8)) +m=MEDCouplingCMesh("mesh") +m.setCoords(coordsArr,coordsArr) +m = m.buildUnstructured() +#m.rotate([3.5,3.5],math.pi/4.) + +WriteMesh("mesh1.med",m,True) + +from MEDCoupling import MEDCouplingSkyLineArray +import MEDPartitioner +a,b=m.computeNeighborsOfCells() +sk=MEDCouplingSkyLineArray(b,a) +g=MEDPartitioner.MEDPartitioner.Graph(sk) +g.partGraph(4) +procIdOnCells=g.getPartition().getValuesArray() +p0=procIdOnCells.findIdsEqual(0) +part0=m[p0] + +WriteMesh("part.med",part0,True) + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +([Mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([Mesh_2], status) = smesh.CreateMeshesFromMED(r'part.med') +Mesh_2.TranslateObject( Mesh_2, [ 9, 0, 0 ], 0 ) + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (mesh) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + +import libSALOME_Swig +gui = libSALOME_Swig.SALOMEGUI_Swig() +gui.AddIObject( salome.ObjectToID( Mesh_1.GetMesh() )) +gui.AddIObject( salome.ObjectToID( Mesh_2.GetMesh() )) diff --git a/doc/user/images/partition_with_layer.png b/doc/user/images/partition_with_layer.png new file mode 100644 index 0000000000000000000000000000000000000000..5bb02b3a9965ffa8086c21468fb4c8265f6d4655 GIT binary patch literal 290 zcmeAS@N?(olHy`uVBq!ia0vp^X+Uhv!2~4P)@H~6Ddu7)&kzm{j@u9Y9{{2-%*d=H*9sIo>gnPbQZeW4bwjR04gwB=;YI(o*B@` zS*&pXFUEiVCvSZGV|r}$PRs3VcANgr=HKw2efmA4Ff?dpbvl$?m`6ufO + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + + +from MEDCoupling import * +from MEDLoader import ReadMeshFromFile, WriteMesh + +coordsArr=DataArrayDouble(range(8)) +m=MEDCouplingCMesh("mesh") +m.setCoords(coordsArr,coordsArr) +m = m.buildUnstructured() +#m.rotate([3.5,3.5],math.pi/4.) + +#WriteMesh("mesh1.med",m,True) + +from MEDCoupling import MEDCouplingSkyLineArray +import MEDPartitioner +a,b=m.computeNeighborsOfCells() +sk=MEDCouplingSkyLineArray(b,a) +g=MEDPartitioner.MEDPartitioner.Graph(sk) +g.partGraph(4) +procIdOnCells=g.getPartition().getValuesArray() +p0=procIdOnCells.findIdsEqual(0) +part0=m[p0] + +WriteMesh("part.med",part0,True) + +boundary_nodes_part0=part0.findBoundaryNodes() +boundary_cells_part0=p0[part0.getCellIdsLyingOnNodes(boundary_nodes_part0,False)] +# starting from knowledge of neighborhood it s possible to know the neighbors of boundary_cells_part0 +neighbors_boundary_cells_part0=MEDCouplingUMesh.ExtractFromIndexedArrays(boundary_cells_part0,a,b)[0] +neighbors_boundary_cells_part0.sort() +neighbors_boundary_cells_part0=neighbors_boundary_cells_part0.buildUnique() +# +layer_of_part0=neighbors_boundary_cells_part0.buildSubstraction(p0) +# +whole_part_with_layer=DataArrayInt.Aggregate([p0,layer_of_part0]) +whole_part_with_layer.sort() +part0_with_layer=m[whole_part_with_layer] +part0_with_layer.setName("part0_with_layer") + +WriteMesh("part.med",part0_with_layer,False) + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +#([Mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([Mesh_2,Mesh_2_WL], status) = smesh.CreateMeshesFromMED(r'part.med') +#Mesh_2.TranslateObject( Mesh_2, [ 9, 0, 0 ], 0 ) +Mesh_2_WL.TranslateObject( Mesh_2_WL, [ 5, 0, 0 ], 0 ) + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (mesh) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + +import libSALOME_Swig +gui = libSALOME_Swig.SALOMEGUI_Swig() +gui.AddIObject( salome.ObjectToID( Mesh_2.GetMesh() )) +gui.AddIObject( salome.ObjectToID( Mesh_2_WL.GetMesh() )) diff --git a/doc/user/images/pointe_fieldnodeint.png b/doc/user/images/pointe_fieldnodeint.png new file mode 100644 index 0000000000000000000000000000000000000000..9e0a4a8c2ccef66c3038b39027b39451bdc0253e GIT binary patch literal 14601 zcmc&b^-~;8u!jcca1Y1f5}e?g0}i*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RH*5~SsruT6EU-&Q(Z ziquJs-Y%6WP76_`U*lUl9PL`0^0DT}^(`{t*Xm+=Jl@V~Ty4rTe@T}mys|PQt8Fn| zX;D+<>yjlzXDGvLsk2#YcW9YqN)JIVF{!DB4??ux>K`vy0Z%q-LhD`2Vxne?^e7r($mZBQ5@RnGql(sR*f*Fbw=3>(CF| literal 0 HcmV?d00001 diff --git a/doc/user/images/pointe_fieldnodeint.py b/doc/user/images/pointe_fieldnodeint.py new file mode 100644 index 000000000..025deb3bc --- /dev/null +++ b/doc/user/images/pointe_fieldnodeint.py @@ -0,0 +1,88 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "ParaView_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003b5000000040000000100000001000000080000001800500061007200610056006900650077005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "ParaViS") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 1") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "ParaView_1") +# fill list ParaView_1 +ipar.append("ParaView_1", "ParaView scene:2 - viewer:1") +ipar.append("ParaView_1", "empty") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "ParaViS") + + +### +### PARAVIS component +### + +import pvsimple +pvsimple.ShowParaviewView() +#### import the simple module from the paraview +from pvsimple import * +#### disable automatic camera reset on 'Show' +pvsimple._DisableFirstRenderCameraReset() + +# create a new 'MED Reader' +medfile = os.path.join( os.getenv("MEDCOUPLING_ROOT_DIR"),"share","resources","med", "pointe.med") +pointemed = MEDReader(FileName=medfile) + +# Properties modified on pointemed +pointemed.AllArrays = ['TS0/maa1/ComSup0/fieldnodeint@@][@@P1'] + +# get active view +renderView1 = GetActiveViewOrCreate('RenderView') +# uncomment following to set a specific view size +# renderView1.ViewSize = [935, 561] + +# show data in view +pointemedDisplay = Show(pointemed, renderView1) + +# trace defaults for the display properties. +pointemedDisplay.Representation = 'Surface' + +# reset view to fit data +renderView1.ResetCamera() + +# update the view to ensure updated data information +renderView1.Update() + +# set scalar coloring +ColorBy(pointemedDisplay, ('POINTS', 'fieldnodeint', 'comp1')) + +# rescale color and/or opacity maps used to include current data range +pointemedDisplay.RescaleTransferFunctionToDataRange(True, False) + +# show color bar/color legend +pointemedDisplay.SetScalarBarVisibility(renderView1, True) + +# get color transfer function/color map for 'fieldnodeint' +fieldnodeintLUT = GetColorTransferFunction('fieldnodeint') + +#### saving camera placements for all active views + +# current camera placement for renderView1 +renderView1.CameraPosition = [9.22339478264647, 20.564112667735554, 4.873867168433736] +renderView1.CameraFocalPoint = [3.2873912814202906, 7.329436317878308, 3.34609088265869] +renderView1.CameraViewUp = [0.08023261286174106, -0.14974521444076697, 0.9854639001939477] +renderView1.CameraParallelScale = 3.774917217635375 + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/projection_P0P1_dual.png b/doc/user/images/projection_P0P1_dual.png new file mode 100644 index 0000000000000000000000000000000000000000..18396da044bf3425e731a454d241ffabe161dbe1 GIT binary patch literal 642 zcmeAS@N?(olHy`uVBq!ia0vp^Yk@e7g9%6)&1gIaq?n7HJVQ7*IBq}me*oli7I;J! z1C?8WFe9^)Tq^?uld7kSV@SoEw|Arc4jTx#J-pwcyXlnPC7TF`1(}bezuhQ4XS~Yk z`RT2lLPI;p_@O=6bU$RGga6EHLM*T{R=yG(Dk)2Ri0_H+W*6CGTfw+AU+j;OMs7 zn!zzH8c3A=wqkJfoDC!rt${@4ZA%8n&}tx&D-9%^cLNniM+1rC*FeSnPUni(Jv2=4 z{I~r_;dk+Uwok2g{Fgf(USxleZOZO1S$(JP)eAHw@$etr^YzD{|Mp%*8*Fz(NM0)` zm=oD!s{G{MlKZ+Z9#p<^6%i=7mc7*G^+1-VwuOeR>MM2}tHfA*|t;2k;1RR!Yt>%+>e#6IVg5ArWqSOTflPge*9s^D-%@Nd5YrFWK5I}1Vo$37#zKMcHg=?Ps14`OwF${em1_m z=dY7KOTw#*D(pPxBaCHATpE`9@!H#Yu(#RXD;MaO_sHcfzmWgc^jFE*SvPmoIcz@6 z=xMP)1Rft6t;~}O95iJrUjF)|jUhUrh1u(2gNjT57rV;Ch9C2 z?%E5=ry2XZ*W7!{HTi3t+%3C4epoDPeC2f8b%1x5!v4F!RK(!v>gTe~DWM4fQRw~t literal 0 HcmV?d00001 diff --git a/doc/user/images/projection_P0P1_dual.py b/doc/user/images/projection_P0P1_dual.py new file mode 100644 index 000000000..59500cc75 --- /dev/null +++ b/doc/user/images/projection_P0P1_dual.py @@ -0,0 +1,130 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000000000000080000001a00560054004b005600690065007700650072005f0030005f00300000000002") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:2 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +srcCoo=DataArrayDouble([(0,0),(1,0),(3,0),(0,1),(1,1),(3,1)]) +src=MEDCouplingUMesh("src",2) +src.setCoords(srcCoo) +src.allocateCells() +src.insertNextCell(NORM_QUAD4,[0,3,4,1]) +src.insertNextCell(NORM_QUAD4,[1,4,5,2]) + +trgCoo=DataArrayDouble([(0.5,0.5),(1.5,0.5),(1.5,1.5)]) +trg=MEDCouplingUMesh("trg",2) +trg.setCoords(trgCoo) +trg.allocateCells() +trg.insertNextCell(NORM_TRI3,[0,2,1]) + +m2 = MEDCoupling1SGTUMesh( trg ) +dual = m2.computeDualMesh() + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",src,True) +WriteMesh("mesh2.med",dual,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([mesh_2], status) = smesh.CreateMeshesFromMED(r'mesh2.med') + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (src) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (trg) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:1:0:0:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + diff --git a/doc/user/images/projection_P0P1_meshes.png b/doc/user/images/projection_P0P1_meshes.png new file mode 100644 index 0000000000000000000000000000000000000000..0701b62961d9286d48c8e04058dd1c80a71a8160 GIT binary patch literal 581 zcmeAS@N?(olHy`uVBq!ia0vp^Yk@e7g9%6)&1gIaq?n7HJVQ7*IBq}me*oli7I;J! z1C?8WFe9^)Tq^?u;|ot0$B>FSZ|^z=wHOGvJ+z+|{$)~?M@&g%mZg(~$F9qN?^TIu z{@~zoZrheSdqs`@J>~@h4;xfuCbTk7D)w|{#8~C2j6=EiTSTA84fOv+skfXxZ9JV$$e_!0h0~Uy`Pyl`m`P}u*jwY zwd@PBW^gR8lx=w6;|U~EB!NWDOPPiTD~o`dH>(ygG;yaEGBjl`EnsLmz4ko=OZkVg{Y|GDc@=i6^MyuJFpk$lGYgow|- z796mfeW!`f!C=8vnT7-(Z=lf|t^rM*sQZY4r8)W_BgZjupeL4z+-BrR6TQL6p(b{f zk>i=zC7_u2c}5N!u4fN;nilMDTOX;yeuky4wUB}7dXfc0WBI-F${*uR4U0+-mWQbP(h7IK&uf zp}@(W0tww_t+)5 + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +srcCoo=DataArrayDouble([(0,0),(1,0),(3,0),(0,1),(1,1),(3,1)]) +src=MEDCouplingUMesh("src",2) +src.setCoords(srcCoo) +src.allocateCells() +src.insertNextCell(NORM_QUAD4,[0,3,4,1]) +src.insertNextCell(NORM_QUAD4,[1,4,5,2]) + +trgCoo=DataArrayDouble([(0.5,0.5),(1.5,0.5),(1.5,1.5)]) +trg=MEDCouplingUMesh("trg",2) +trg.setCoords(trgCoo) +trg.allocateCells() +trg.insertNextCell(NORM_TRI3,[0,2,1]) + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",src,True) +WriteMesh("mesh2.med",trg,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([mesh_2], status) = smesh.CreateMeshesFromMED(r'mesh2.med') + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (src) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (trg) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:1:0:0:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + diff --git a/doc/user/images/projection_P1P0_dual.png b/doc/user/images/projection_P1P0_dual.png new file mode 100644 index 0000000000000000000000000000000000000000..71fc2f93760f9ac52b67082e5cc7255928431abf GIT binary patch literal 890 zcmV-=1BLvFP)0pub$KtynW_TT^!!NG5(SU&^H;DCs- zBOo{+A}WQ_e|S#s00@XEy8|HjDX{|}sLJX92>zDR0T7(Z=Ku(v_0ReVD7K#@0D@sR|p3{Fx~nNfPkaYa-VDYQg|k^ZSQx#k=s+NgZnu)J|5qn>U!k@P-f}X z@KvurutGqJ>jCFBa(A&ata*Ikbq)87;5t1AY%>A^fmT}&fIucC2Rvf}0j4m0B;{ama6n*`$Z_J}Klb}W5b~qJ)0iF9gX`Ok+#skCKQ@G-YhZJ59@h5W zOu-sK`6Bw<=*8=uK?8$>ivitJu=~Gij{E(c#n>9A9JCDOih}wwa9;C!i>hJJLDwLj zQ_w;%|Jt96r=i=y*v20zNFq3VT9JF5Y7L?fq)>;0N&deS1Q1B<^o>0pZt3Nr)d9=7 zly3^e_I(HC^V`$*VgCgROTSrY-^ar8*ZeQVt~9hPmIl`!bevZ>C|Gwa77MhtK5FE01kT8ezjo%j>PDDDNn~dWF)qEl#TL*53 zB9!Ot#d@HWX9Q&E!1-Kw^S`lJ55)72fUF!WF&dUu*;1?rf~|spOdKpUotf6!OsoeY zt%ZQP?qgvr!?$9%+QwUyO%B$gjn3VoY`UKbg%8IEhzJhQ9vmPdI6!;<0T*n}<#Q*>R literal 0 HcmV?d00001 diff --git a/doc/user/images/projection_P1P0_dual.py b/doc/user/images/projection_P1P0_dual.py new file mode 100644 index 000000000..4d925b927 --- /dev/null +++ b/doc/user/images/projection_P1P0_dual.py @@ -0,0 +1,131 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000000000000080000001a00560054004b005600690065007700650072005f0030005f00300000000002") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:2 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +srcCoo=DataArrayDouble([(0,0),(1,0),(3,0),(0,1),(1,1),(3,1)]) +src=MEDCouplingUMesh("src",2) +src.setCoords(srcCoo) +src.allocateCells() +src.insertNextCell(NORM_QUAD4,[0,3,4,1]) +src.insertNextCell(NORM_QUAD4,[1,4,5,2]) +src.simplexize(0) + +m2 = MEDCoupling1SGTUMesh( src ) +dual = m2.computeDualMesh() + +trgCoo=DataArrayDouble([(0.5,0.5),(1.5,0.5),(1.5,1.5)]) +trg=MEDCouplingUMesh("trg",2) +trg.setCoords(trgCoo) +trg.allocateCells() +trg.insertNextCell(NORM_TRI3,[0,2,1]) + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",dual,True) +WriteMesh("mesh2.med",trg,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([mesh_2], status) = smesh.CreateMeshesFromMED(r'mesh2.med') + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (src) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (trg) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:1:0:0:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + diff --git a/doc/user/images/projection_bnd_box.png b/doc/user/images/projection_bnd_box.png new file mode 100644 index 0000000000000000000000000000000000000000..61220ab0f652582298516cafb8a8cd63b4033a46 GIT binary patch literal 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f_5gx82lw&~lNnddVI+61;)3PJ1JtC@K| ziJ+CS&9Vqu(?QM5^LYfVhMH?2XdRq1Dj{eE$2Bw0R}pk;Y;#ov-Bec1%yR*PZij7d zfS?=6t(kc)L(na-&CL*Wbth_Oo{JH5U2Jn>1YOa&nwe(_1YHX?t03qqIB94hXnCh= zW}f8`v@o_=7ePz9Qgit{^RAmS1TBVbwt%2zT&$VXvowMhz&6`K(50@|%sf{>&_&p0 zYY6(fqMDiKItcnAYPN}>ui&I%7D1m@S~K%p6G5NDHXBFKCkWKcJXc20x!7hGHbL`~ zF0aVc%skh}LLXzB9UNtey32HG$ns!PvX#JYMf5L2!V~k;X z>+g@x`+I=1*50TEt@})>>ErFO$M;|V_<)PJ$*cPL@tzb?U-3x?e53W zBIvrqEOJCHSAOkS(*5=qNA13P&=qU0aYQcE;M#Hf1z#RHM&0|mL074{&{t}9dZ{Oi9~8-#X8X;z zNG#}cHTQ9;C(iq|V?9S5Co(~wsJY8aJ#idGCfOY)0zqfhJi?`(xRD3@%@O%fY0w8X zb3_&~&S0OP<;c-|P>HESY?}r{25IcbNVygcvls|NROkvo;xYCb|#z z3wO1nPR{GSx8*tLO!@zR_xP>IyeDeArnk11z*S%XjHCd{oco6cThbExUL1=yX*aIh@$8eRDx%)b($)9U_q00000NkvXXu0mjf0PH*h literal 0 HcmV?d00001 diff --git a/doc/user/images/projection_setMaxDistance3DSurfIntersect.py b/doc/user/images/projection_setMaxDistance3DSurfIntersect.py new file mode 100644 index 000000000..8667a125a --- /dev/null +++ b/doc/user/images/projection_setMaxDistance3DSurfIntersect.py @@ -0,0 +1,126 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import sys +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "OCCViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "000000010000000000000002010000000100000426000000040000000100000000000000080000001a004f00430043005600690065007700650072005f0030005f00300000000002") +ipar.setProperty("AP_ACTIVE_MODULE", "Geometry") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "OCCViewer_1") +# fill list OCCViewer_1 +ipar.append("OCCViewer_1", "OCC scene:1 - viewer:1") +ipar.append("OCCViewer_1", "0|-1|scale=3.038454936077e+2*projX=3.770939318974e-1*projY=-9.130971176097e-1*projZ=1.550929409712e-1*twist=1.217715934833e-2*atX=1.974005557226e-1*atY=3.431618372916e-1*atZ=1.477143755166e-1*eyeX=2.351099494743e-1*eyeY=2.518521241700e-1*eyeZ=1.632236698449e-1*scaleX=1.000000000000e+0*scaleY=1.000000000000e+0*scaleZ=1.000000000000e+0*isVisible=0*size=1.10*gtIsVisible=0*gtDrawNameX=1*gtDrawNameY=1*gtDrawNameZ=1*gtNameX=X*gtNameY=Z*gtNameZ=Z*gtNameColorRX=255*gtNameColorGX=0*gtNameColorBX=0*gtNameColorRY=0*gtNameColorGY=255*gtNameColorBY=0*gtNameColorRZ=0*gtNameColorGZ=0*gtNameColorBZ=255*gtDrawValuesX=1*gtDrawValuesY=1*gtDrawValuesZ=1*gtNbValuesX=3*gtNbValuesY=3*gtNbValuesZ=3*gtOffsetX=2*gtOffsetY=2*gtOffsetZ=2*gtColorRX=255*gtColorGX=0*gtColorBX=0*gtColorRY=0*gtColorGY=255*gtColorBY=0*gtColorRZ=0*gtColorGZ=0*gtColorBZ=255*gtDrawTickmarksX=1*gtDrawTickmarksY=1*gtDrawTickmarksZ=1*gtTickmarkLengthX=5*gtTickmarkLengthY=5*gtTickmarkLengthZ=5*lightSource=lightType~1;lightX~0;lightY~0;lightZ~-1;lightColorR~1;lightColorG~1;lightColorB~1;lightHeadlight~1;*background=bt$1;fn$;tm$0;ts$false;c1$#ffffff;c2$#698fff;gt$1;gr$") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Geometry") + +### +### GEOM component +### + +import GEOM +from salome.geom import geomBuilder +import math +import SALOMEDS + + +geompy = geomBuilder.New(theStudy) + +O = geompy.MakeVertex(0, 0, 0) +OX = geompy.MakeVectorDXDYDZ(1, 0, 0) +OY = geompy.MakeVectorDXDYDZ(0, 1, 0) +OZ = geompy.MakeVectorDXDYDZ(0, 0, 1) +sk = geompy.Sketcher2D() +sk.addPoint(0.000000, 0.000000) +sk.addSegmentAbsolute(1.000000, 0.000000) +sk.addSegmentAbsolute(0.000000, 1.000000) +sk.close() +geomObj_1 = geompy.MakeMarker(0, 0, 0, 1, 0, 0, 0, 1, 0) +Sketch_1 = sk.wire(geomObj_1) +Triangle_src = geompy.MakeFaceWires([Sketch_1], 1) + +Triangle_tgt = geompy.MakeRotation( Triangle_src, OY, -math.pi/4. ) +geompy.TranslateDXDYDZ(Triangle_tgt, 0, 0, 0.01) + +Bnd_box = geompy.MakeBoundingBox(Triangle_tgt) +geompy.Scale( Bnd_box, geompy.MakeCDG( Bnd_box ), 1.1 ) + +Bnd_box.SetColor(SALOMEDS.Color(1,0,0)) +Triangle_src.SetColor(SALOMEDS.Color(0,0.333333,1)) +Triangle_tgt.SetColor(SALOMEDS.Color(0,1,0.498039)) + +geompy.addToStudy( Triangle_src, 'Triangle_src' ) +geompy.addToStudy( Triangle_tgt, 'Triangle_tgt' ) +geompy.addToStudy( Bnd_box, 'Bnd_box' ) + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "GEOM", 1)) + +#Set up entries: +# set up entry GEOM_6 (Triangle_src) parameters +objId = geompy.getObjectID(Triangle_src) +ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") +ipar.setParameter(objId, "OCCViewer_0_DisplayMode", "2") +ipar.setParameter(objId, "OCCViewer_0_Color", "0:0.333333:1") +ipar.setParameter(objId, "OCCViewer_0_Transparency", "0") +ipar.setParameter(objId, "OCCViewer_0_TopLevelFlag", "false") +ipar.setParameter(objId, "OCCViewer_0_Isos", "0:0") +ipar.setParameter(objId, "OCCViewer_0_VectorMode", "false") +ipar.setParameter(objId, "OCCViewer_0_VerticesMode", "false") +ipar.setParameter(objId, "OCCViewer_0_NameMode", "false") +ipar.setParameter(objId, "OCCViewer_0_DeflectionCoeff", "0.001") +ipar.setParameter(objId, "OCCViewer_0_MarkerType", "7:3") +ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:FrontShininess=0.13:BackShininess=0.13:Transparency=0:Ambient=1:AmbientColor=#333333:FrontAmbientCoefficient=0.3:BackAmbientCoefficient=0.25:Diffuse=1:DiffuseColor=#000000:FrontDiffuseCoefficient=0.5:BackDiffuseCoefficient=0.4:Specular=1:SpecularColor=#ffffff:FrontSpecularCoefficient=0.3:BackSpecularCoefficient=0.3:Emissive=0:EmissiveColor=#000000:FrontEmissiveCoefficient=0:BackEmissiveCoefficient=0") +ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") +ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") +# set up entry GEOM_7 (Triangle_tgt) parameters +objId = geompy.getObjectID(Triangle_tgt) +ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") +ipar.setParameter(objId, "OCCViewer_0_DisplayMode", "2") +ipar.setParameter(objId, "OCCViewer_0_Color", "0:1:0.498039") +ipar.setParameter(objId, "OCCViewer_0_Transparency", "0") +ipar.setParameter(objId, "OCCViewer_0_TopLevelFlag", "false") +ipar.setParameter(objId, "OCCViewer_0_Isos", "0:0") +ipar.setParameter(objId, "OCCViewer_0_VectorMode", "false") +ipar.setParameter(objId, "OCCViewer_0_VerticesMode", "false") +ipar.setParameter(objId, "OCCViewer_0_NameMode", "false") +ipar.setParameter(objId, "OCCViewer_0_DeflectionCoeff", "0.001") +ipar.setParameter(objId, "OCCViewer_0_MarkerType", "7:3") +ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:FrontShininess=0.13:BackShininess=0.13:Transparency=0:Ambient=1:AmbientColor=#333333:FrontAmbientCoefficient=0.3:BackAmbientCoefficient=0.25:Diffuse=1:DiffuseColor=#000000:FrontDiffuseCoefficient=0.5:BackDiffuseCoefficient=0.4:Specular=1:SpecularColor=#ffffff:FrontSpecularCoefficient=0.3:BackSpecularCoefficient=0.3:Emissive=0:EmissiveColor=#000000:FrontEmissiveCoefficient=0:BackEmissiveCoefficient=0") +ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") +ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") +# set up entry GEOM_9 (Bnd_box) parameters +objId = geompy.getObjectID(Bnd_box) +ipar.setParameter(objId, "OCCViewer_0_Visibility", "On") +ipar.setParameter(objId, "OCCViewer_0_DisplayMode", "0") +ipar.setParameter(objId, "OCCViewer_0_Color", "1:0:0") +ipar.setParameter(objId, "OCCViewer_0_Transparency", "0") +ipar.setParameter(objId, "OCCViewer_0_TopLevelFlag", "false") +ipar.setParameter(objId, "OCCViewer_0_Isos", "0:0") +ipar.setParameter(objId, "OCCViewer_0_VectorMode", "false") +ipar.setParameter(objId, "OCCViewer_0_VerticesMode", "false") +ipar.setParameter(objId, "OCCViewer_0_NameMode", "false") +ipar.setParameter(objId, "OCCViewer_0_DeflectionCoeff", "0.001") +ipar.setParameter(objId, "OCCViewer_0_MarkerType", "7:3") +ipar.setParameter(objId, "OCCViewer_0_Material", "Physical=0:FrontShininess=0.13:BackShininess=0.13:Transparency=0:Ambient=1:AmbientColor=#333333:FrontAmbientCoefficient=0.3:BackAmbientCoefficient=0.25:Diffuse=1:DiffuseColor=#000000:FrontDiffuseCoefficient=0.5:BackDiffuseCoefficient=0.4:Specular=1:SpecularColor=#ffffff:FrontSpecularCoefficient=0.3:BackSpecularCoefficient=0.3:Emissive=0:EmissiveColor=#000000:FrontEmissiveCoefficient=0:BackEmissiveCoefficient=0") +ipar.setParameter(objId, "OCCViewer_0_EdgeWidth", "1") +ipar.setParameter(objId, "OCCViewer_0_IsosWidth", "1") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/renumber_nodes.png b/doc/user/images/renumber_nodes.png new file mode 100644 index 0000000000000000000000000000000000000000..c05b88b3650f256450f93f59aee59c818f26313d GIT binary patch literal 1265 zcmeAS@N?(olHy`uVBq!ia0vp^jX-S6!2~2(PtD~7Qq09po*^6@9Je3(KLBz$3p^r= zfy%8wn2}jYu9bm-Ws0YZV@SoEx3hgciXtVB|KIMWtnq@|C@MpMHCLr3+w_u}%r6zA zGdj1nd3M~{QlJ>PyNQFRxk*8Du|SjE4DqHg$3Q{BwMvT?dG~FTJe*f*`~HyHGu_w6 zc%IL*KJ)XTlj|S*^FQwvukY%2;9zXmlw8C8pnzRUVQ=%=wQG0n+VuzolBS&%CXjY%8zevr5pC{wLKdC&v=gC z^WUqwy1F!u?iJ!;W9;eey~r1&a@J13b>sg1|9}0m`nqAy9+?K6(^L4E_TR7nD_&e& zyfVG7zhCoc<^+@LPv*{*-G4tmGV*2FZhwD&b2Bp?vF@Wu3qu?o9S^?#yJ(RTLu+fR zs;cUgM{$a`eolP$_u7Qio3Fpl@>#YD1ho2(3-`KRy*V{IJDb62p}<>(-FNehW->_h zx-Gx#Y5lI4<!QzeEsjAoxOeh#;yD^Hy8vIR&+57GTpj$E9j!As3?Qd zM2@AU6IE7j-dvoQr}x!BTl;i^LBJ^?S3_lG=Z&Vi779N^H%91)#zsZ0y8Ke8lVxdX zrR%h(D_5?ZGiQ#2f`k6kH*b74n&w(;*gK`Lpnze)=FOAuEm|^T{`~8&zuvrgQ(0O0 zW5t{@nV(xsc`YkyYSye=si~{GckkY%yX9IuCY2NyCvU&a7!n?CZ)+Ra`+JY+T8oOh zx_2*L7|ir}{``5!^vAqgmcQjt>{^@o__w2w-}2Az-sP2-Z(p+}r?AjahA+4)sPfjk zhYuY$Zax2;pJVB%I<>aiH_zYl^YG~C>oZ40L=;%aOgVIA&Ng6D($&>nq@lHCT3Pu4 zwgY@K7#Q3Rcz%xA@@e0%&Q4CRbT-rFZ^Od&UAeVeQh;IQ$Jy^+ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + + +from MEDCoupling import * +from MEDLoader import WriteMesh + +coordsArr=DataArrayDouble(range(2)) +m=MEDCouplingCMesh("m1") +m.setCoords(coordsArr,coordsArr ) +m=m.buildUnstructured() +WriteMesh("mesh1.med",m,True) + +m.setName( "m2" ) +m.renumberNodes([ 2,1,0,-1 ], 3) +WriteMesh("mesh1.med",m,False) + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(theStudy) +([Mesh_1, Mesh_2], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +Mesh_2.TranslateObject( Mesh_2, [ 2, 0, 0 ], 0 ) + + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (m1) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (m2) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:0:f:0:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) diff --git a/doc/user/images/simplexize.png b/doc/user/images/simplexize.png new file mode 100644 index 0000000000000000000000000000000000000000..53f88b69939a2021b8d7da3786733a1549aae525 GIT binary patch literal 7000 zcmbukXIK;66Y!lt=tTlZ5s(;y^cLwIOd#|k9Vvz)y#)jXB%oplNL4|K(gi^X2uLqd z1nIp6(9l6a1Vq5#ll%YeeLp?d^?cYpyXTy}&dl!4ncvJLn49XeFkWE<001loD1;>d z0IZ-~&(c#-&Jt_e@|1=eqibMAPfx%2&Fm}XmLUjbkD*Lg{qF!$L$5vo0Ir-HAatxE za)0E#54`%B>*=VolX-betVOZm6I!J3OL3Z)Gz*Y-RL1Y18EZ0LD05DBb63~y!rMIV zAti>ucw0Ot=WTO^uZEZ|iw#rHaL>)i(Rs24oIpNv8$B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+jP9p~$2 zam<;WRUoH2qty1$2O3c3vVgVA`MzrcTwyXCX0MtoQBAJzwvtu>OZ!84cHO_NWs8EP zOR+*djntuS#?FOn!+B308d)Sc1$LyNwe`j;EREImh&v)6r<-ZQURtgCH?JN|unxFY zuf!&l#W``VZ}yf+)F&rYWe&XO`mlqDy-V!BY)fKBE$BJprfn_0_ETdx+l&vzJ|GtQ z%6xmv5Y%wIp0k`jE|^aA!7CqF|C_B}wi>k?K#kDh-si!oM%oK1{ez+M&A zHT=8ItFuSPfUzgZ;&UY~Nah$|ko?g)mP>~2aR&g6d4J`=3&rPZI p1l@Mk26P5fN + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + + +from MEDCoupling import * + +coordsArr=DataArrayDouble(range(3)) +mesh1=MEDCouplingCMesh("mesh") +mesh1.setCoords(coordsArr,coordsArr,coordsArr) + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",mesh1,True) + +mesh2 = mesh1.buildUnstructured() +mesh2.simplexize(PLANAR_FACE_5) +WriteMesh("part.med",mesh2,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([mesh_2], status) = smesh.CreateMeshesFromMED(r'part.med') + +mesh_2.TranslateObject( mesh_2, [3,0,0], False ) + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (mesh) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:1:f:1:v:1:0d:1:b:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + +import libSALOME_Swig +gui = libSALOME_Swig.SALOMEGUI_Swig() +gui.AddIObject( salome.ObjectToID( mesh_1.GetMesh() )) +gui.AddIObject( salome.ObjectToID( mesh_2.GetMesh() )) diff --git a/doc/user/images/skin.png b/doc/user/images/skin.png new file mode 100644 index 0000000000000000000000000000000000000000..2bb8070f1fb46a7e86a38ea5f02318558c4f83de GIT binary patch literal 460 zcmeAS@N?(olHy`uVBq!ia0vp^mw-5yg9%8+%dVFIQq09po*^6@9Je3(KLBz$3p^r= zfy%8wn2}jYu9bm-G2he0F{EP7+glei4;zR$1g=imme%AmlXKG3E387|IjgwOTFy6f zVvAQc$UkFg9`Sm09fRG(HykJW8lXf>*}LA?5#MCi{*3q~o_QzyUD&Mc*ROxybbDKF zwOp0_{l^au8E2o@iFtST_YeQFeR}OWj5h@*$Pz&`-e1A52hHux8q%Oax)@tj2nx^}6{+W!CcU=?nQK qzfavg_1W96U-!Ow(2vcr2l!8?TMDPPygUSq4+c+HKbLh*2~7Z!I + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * + +coordsArr=DataArrayDouble(range(5)) +mesh1=MEDCouplingCMesh("mesh") +mesh1.setCoords(coordsArr,coordsArr) +mesh1 = mesh1.buildUnstructured() + +from MEDLoader import WriteMesh +WriteMesh("mesh1.med",mesh1,True) + +m2=mesh1.computeSkin() +WriteMesh("mesh2.med",m2,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') +([mesh_2], status) = smesh.CreateMeshesFromMED(r'mesh2.med') + +mesh_2.TranslateObject( mesh_2, [6,0,0], False ) + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") +# set up entry SMESH_4 (mesh) parameters +ipar.setParameter("SMESH_4", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_4", "VTKViewer_0_Representation", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Entities", "e:1:f:0:v:0:0d:0:b:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_4", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_4", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_4", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_4", "VTKViewer_0_ClippingPlane", "Off") + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + diff --git a/doc/user/images/zones.png b/doc/user/images/zones.png new file mode 100644 index 0000000000000000000000000000000000000000..d68867fa8df6aeb62b5da717bcce76f1009efc7a GIT binary patch literal 216 zcmeAS@N?(olHy`uVBq!ia0vp^`9Lhs!2~4JT3NmUDdu7)&kzm{j@u9Y9{{2-%*d=H*9sJ@_H=O!$!L6g%aH4^fdGT!=^y{&_lf8+YaV&jFjJFNz0Y;&wKFm< z=j!!8Xk|^iqO&qGX!DY^m%r?yvY#)SdG=s++3mx(|HWOs4VCdcJ871xsW(C?l7Q}h fVW)d(Z~;42AwJ7JT_0Wmox$Mg>gTe~DWM4fa-2^^ literal 0 HcmV?d00001 diff --git a/doc/user/images/zones.py b/doc/user/images/zones.py new file mode 100644 index 000000000..73afd5a17 --- /dev/null +++ b/doc/user/images/zones.py @@ -0,0 +1,107 @@ +# -*- coding: utf-8 -*- + +### +### This script is intended to be launched in a new SALOME study +### + +import os +import salome + +salome.salome_init() +theStudy = salome.myStudy + +import iparameters +ipar = iparameters.IParameters(salome.myStudy.GetCommonParameters("Interface Applicative", 1), True) + +#Set up visual properties: +ipar.setProperty("AP_ACTIVE_VIEW", "VTKViewer_0_0") +ipar.setProperty("AP_WORKSTACK_INFO", "0000000100000000000000020100000001000003a0000000040000000100000001000000080000001a00560054004b005600690065007700650072005f0030005f00300000000102") +ipar.setProperty("AP_ACTIVE_MODULE", "Mesh") +ipar.setProperty("AP_SAVEPOINT_NAME", "GUI state: 2") +#Set up lists: +# fill list AP_VIEWERS_LIST +ipar.append("AP_VIEWERS_LIST", "VTKViewer_1") +# fill list VTKViewer_1 +ipar.append("VTKViewer_1", "VTK scene:2 - viewer:1") +ipar.append("VTKViewer_1", """ + + + + + + + + + <Color R="1" G="0" B="0"/> + + + + + + + + + <Color R="0" G="1" B="0"/> + + + + + + + + + <Color R="0" G="0" B="1"/> + + + + + + + + + +""") +# fill list AP_MODULES_LIST +ipar.append("AP_MODULES_LIST", "Mesh") + + +from MEDCoupling import * +from MEDLoader import WriteMesh + +coords=DataArrayDouble(range(6)) +cmesh=MEDCouplingCMesh("cmesh") +cmesh.setCoords(coords,coords[:2]) +# make a mesh with two zones +zmesh=cmesh.buildUnstructured()[0,1,3,4] +WriteMesh("mesh1.med",zmesh,True) + +### +### SMESH component +### + +import SMESH, SALOMEDS +from salome.smesh import smeshBuilder + +smesh = smeshBuilder.New(salome.myStudy) +([mesh_1], status) = smesh.CreateMeshesFromMED(r'mesh1.med') + +### Store presentation parameters of displayed objects +import iparameters +ipar = iparameters.IParameters(theStudy.GetModuleParameters("Interface Applicative", "SMESH", 1)) + +#Set up entries: +# set up entry SMESH_3 (mesh) parameters +ipar.setParameter("SMESH_3", "VTKViewer_0_Visibility", "On") +ipar.setParameter("SMESH_3", "VTKViewer_0_Representation", "2") +ipar.setParameter("SMESH_3", "VTKViewer_0_IsShrunk", "0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Entities", "e:0:f:1:v:0:0d:0:b:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_Colors", "surface:0:0.666667:1:backsurface:100:volume:1:0:0.666667:-100:edge:0:0.666667:1:node:1:0:0:outline:0:0.27451:0:elem0d:0:1:0:ball:0:0.333333:1:orientation:1:1:1") +ipar.setParameter("SMESH_3", "VTKViewer_0_Sizes", "line:1:outline:1:elem0d:5:ball:10:1:shrink:0.75:orientation:0.1:0") +ipar.setParameter("SMESH_3", "VTKViewer_0_PointMarker", "std:1:9") +ipar.setParameter("SMESH_3", "VTKViewer_0_Opacity", "1") +ipar.setParameter("SMESH_3", "VTKViewer_0_ClippingPlane", "Off") + +if salome.sg.hasDesktop(): + salome.sg.updateObjBrowser(True) + iparameters.getSession().restoreVisualState(1) + diff --git a/doc/user/input/basic_concepts.rst b/doc/user/input/basic_concepts.rst new file mode 100644 index 000000000..e55f53f03 --- /dev/null +++ b/doc/user/input/basic_concepts.rst @@ -0,0 +1,89 @@ +Basic concepts +============== + +Your're invited to start here. + +This section explains in a concise way fundamental concepts +(incarnated by classes) for a better understanding of examples in FAQ_. + +.. _FAQ: ../../developer/faq.html + +The objects presented in this section are objects dedicated to data manipulation. + +Later in advanced section, other objects will be presented to more complex data, as composite of objects presented here. + +medcoupling Fields +------------------ +The most fundamental object is field. Fields are incarnated by MEDCouplingFieldDouble_. + +.. _MEDCouplingFieldDouble: ../../developer/classMEDCoupling_1_1MEDCouplingFieldDouble.html + +A field is an object able to give a value on every points geometrically covered by its support. The field support is a :ref:`mesh `. + +Depending on the physics relative to the field, medcoupling fields proposes different spatial discretizations : cells, nodes, Gauss points. + +The spatial discretization defines an algorithm giving the value of field on point given the position of a point inside the domain covered by the :ref:`mesh ` and an :ref:`array ` of float, integers located on specific location of mesh. + +.. A tiny image of field + +.. image:: ../images/pointe_fieldnodeint.png + + +.. _medcoupling_Meshes: + +medcoupling Meshes +------------------ + +Meshes are incarnated by MEDCouplingMesh_ (and their subclasses). +A mesh contains cells and nodes (indifferently called points). A +cell has a geometric type (TRI3, QUAD4, TETRA4). + +.. _MEDCouplingMesh: ../../developer/classMEDCoupling_1_1MEDCouplingUMesh.html + +All cells contained in a medcoupling mesh must have the same +dimension. This dimension is called meshdimension. + +The set of points of a medcoupling mesh are stored into coordinates +:ref:`array `. The number of components of coordinates of coordinates +array is called the space dimension. + +The space dimension is always greater or equal to mesh dimension. + +.. _medcoupling_Arrays: + +medcoupling Arrays +------------------ + +One of the challenges faced by medcoupling is the reduction of memory +footprints. In medcoupling, memory expensive attributes are arrays +or composite of arrays. + +To do so, medcoupling arrays represent contiguous arrays in the most +compact way to guaranty at most locality. + +The type of elements contained in arrays is fix. Today int32, +float32 and float64 arrays are available. Elements in arrays are +grouped into fixed size packets called tuple. + +This size of every tuple is called number of components. + +Consequently number of elements in an array is equal to number of +tuples times number of components. + +A typical usage of medcoupling array is for coordinates of points +storage. Number of components will be equal to space dimension and +number of tuples will be equal to number of points. + +A medcoupling array has a name. And each component of array has also +a name. The component name use the following convention to put an +optional unity ("X cote [mm]"). + +If you are already a fan of `numpy `_ (you're right +it's an amazing/wonderful standard package), medcoupling arrays +behaves just like numpy arrays and anyway there are zero copy +gateways between medcoupling arrays and numpy. + +medcoupling arrays implement different algorithms like reordering, +cloud comparisons, arithmetic, geometry helpers in addition to algorithms +proposed by numpy. + diff --git a/doc/user/input/data_analysis.rst b/doc/user/input/data_analysis.rst new file mode 100644 index 000000000..ed6753fae --- /dev/null +++ b/doc/user/input/data_analysis.rst @@ -0,0 +1,561 @@ +Data analysis +============= + +Object size in memory +--------------------- + +medcoupling provides information on memory occupied by every object: mesh, field, array etc.: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_4 + :end-before: UG_MEDCouplingFieldDouble_4 + +Extract data +------------ + +.. _extract_for_meshes: + +Extract for meshes +~~~~~~~~~~~~~~~~~~ + +If *m* is a mesh (MEDCouplingUMesh) and *Ids* a list of cell ids, you can extract the mesh ids by simply doing : + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_0 + :end-before: UG_ExtractForMeshes_0 + +.. figure:: ../images/extract_mesh_ids.png + :align: center + + *m* (to the left) and *part* extracted by calling m[1,2,4,5,7,8] (to the right) + +.. note:: in medcoupling ids count from zero unlike SMESH where they count from one. + +*part* is also a MEDCouplingUMesh with same coordinates than *m*. Reason is that medcoupling tries to reduce memory effort. + +But it's highly likely that some nodes in part will be not fetched by part. + +It can be interesting to locate the fetched nodes. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_1 + :end-before: UG_ExtractForMeshes_1 + +.. figure:: ../images/extract_mesh_fetched_nodes.png + :align: center + + part.computeFetchedNodeIds() returns [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]. Ids 0 and 17 are not fetched + +To extract coordinates, simply invoke + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_2 + :end-before: UG_ExtractForMeshes_2 + +It can be interesting to reduce set of points *part* is lying on. Simply by doing. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_3 + :end-before: UG_ExtractForMeshes_3 + +Or it can be interesting for further data handling to have both reduction and array. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_4 + :end-before: UG_ExtractForMeshes_4 + +To have more information about *o2n* read renumbering_ section. + +.. _renumbering: ../../developer/numbering.html + +Extraction in meshes often leads to locate cells/nodes regarding their neighborhood. + +Let's consider *m2* 3D mesh. To locate nodes on boundaries simply invoke : + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_5 + :end-before: UG_ExtractForMeshes_5 + +And now to extract cells lying on boundary nodes simply call : + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_6 + :end-before: UG_ExtractForMeshes_6 + +False means if a cell has at least one node in *bn*, take it. True means if all nodes of cell are in *bn*, take it. + +If a mesh consists of several contiguous zones of cells, it is possible to retrieve cell ids of each zone: + +.. figure:: ../images/zones.png + :align: center + + A mesh with two zones + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_20 + :end-before: UG_ExtractForMeshes_20 + +Zones returned by partitionBySpreadZone are:: + + [[0, 1], [2, 3]] + +Extract for arrays +~~~~~~~~~~~~~~~~~~ + +Arrays are the common entry point to selection. If *arr* is a 2 component DataArrayDouble you can locate tuple ids by finding those whose first component is in [a,b): + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForArrays_0 + :end-before: UG_ExtractForArrays_0 + +Or you can find tuples whose magnitude is in [c,d): + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForArrays_1 + :end-before: UG_ExtractForArrays_1 + +To find which of *tupleIds* are missing from *tupleIds1*, call + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForArrays_2 + :end-before: UG_ExtractForArrays_2 + + +Extract for fields +~~~~~~~~~~~~~~~~~~ + +If *field4* is a MEDCouplingFieldDouble, you can extract a sub-part of *field4* on a specified cell ids *ids4* by doing + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForFields_0 + :end-before: UG_ExtractForFields_0 + +.. note:: It works whatever the spatial discretization of *field4* + +.. figure:: ../images/extract_fields.png + :align: center + + A field on nodes (to the left) and its sub-field on a half of nodes (to the right) + +You can extract a field on plane by cutting *field5* like this: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForFields_1 + :end-before: UG_ExtractForFields_1 + +The plane is defined by its *origin* and its normal vector *normvec*. The last argument is a half-thickness of the plane. + +.. note:: It works for fields on cells only + +.. figure:: ../images/extractSlice3D.png + :align: center + + A field on cells (to the left) and a sub-field on a plane (to the right) + + + + +Geometric handling of unstructured meshes +----------------------------------------- + +Consider *m2* as a 3D MEDCouplingUMesh instance. You can translate it by simply + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_7 + :end-before: UG_ExtractForMeshes_7 + +Which is equivalent to + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_8 + :end-before: UG_ExtractForMeshes_8 + +Samely you can simply rotate it around the point [1,2,1] along Y axis with an angle of pi/3 by doing + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_9 + :end-before: UG_ExtractForMeshes_9 + +Which is equivalent to + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_10 + :end-before: UG_ExtractForMeshes_10 + +To scale *m2* relative to point [1,2,4] by a factor of 6, call + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_17 + :end-before: UG_ExtractForMeshes_17 + +It can also interesting to retrieve volume of cells in m2 (resp area, length in 2D, 1D): + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_11 + :end-before: UG_ExtractForMeshes_11 + +*volPerCell* is a field on cell (MEDCouplingFieldDouble). *True* means I don't care of cell orientation. *False* tells I care of cell orientation using signed values. + +.. figure:: ../images/measure_field.png + :align: center + + Area field of a cartesian mesh + +You can compute total volume covered by mesh by doing + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_12 + :end-before: UG_ExtractForMeshes_12 + +You also can locate cells (using *cellIds*) having volume greater than a threshold *t1*: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_13 + :end-before: UG_ExtractForMeshes_13 + +In this case it is easy to :ref:`build a sub-mesh` containing cells having a volume higher than *t1*: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_14 + :end-before: UG_ExtractForMeshes_14 + +There are other common geometric methods on meshes: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_15 + :end-before: UG_ExtractForMeshes_15 + +*centers* will be a DataArrayDouble giving for each cell of *m2* its center of mass. + +It's possible to compute a DataArrayDouble giving the center of mass of *m2* simply by doing + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_16 + :end-before: UG_ExtractForMeshes_16 + +Iso barycenter of nodes constituting each cell can be computed by calling + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_19 + :end-before: UG_ExtractForMeshes_19 + +*ibc* will be a DataArrayDouble. + +You can retrieve a field (MEDCouplingFieldDouble) of unitary vectors normal to cells: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_18 + :end-before: UG_ExtractForMeshes_18 + +.. figure:: ../images/ortho_field.png + :align: center + + A skin mesh with a normal field on it computed by buildOrthogonalField method + +You also have a set of methods to caracterize mesh quality: getEdgeRatioField, getAspectRatioField, getWarpField, getSkewField, computeDiameterField. + + +medcoupling provides methods to intersect 2D meshes in 2D space. MEDCouplingUMesh.Intersect2DMeshWith1DLine partitions a 2D and a 1D mesh: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_21 + :end-before: UG_ExtractForMeshes_21 + +The last argument is a precision used to perform intersections and localization operations. + +.. figure:: ../images/intersect_2d1d.png + :align: center + + 2D and 1D meshes before and after intersection + +Intersect2DMeshWith1DLine returns new 2D and 1D meshes and two arrays. *a2d* gives for each cell in *m2d* the id in *mesh2d* it comes from. *a1d* is an array of pair that gives for each cell id i in *m1d* the cell in *md2* on the left for the 1st component and the cell in *m2d* on the right for the 2nd component. -1 means no cell. + +For the example in the picture above *a2d* is:: + + [0, 4, 1, 1, 2, 2, 3, 3] + +and *a1d* is:: + + [-1, -1, -1, -1, 2, 3, 4, 5, 4, 5, 6, 7, 6, 7, -1, -1, -1, -1] + +There also a method to partition a 2D mesh by another 2D mesh: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_22 + :end-before: UG_ExtractForMeshes_22 + +.. figure:: ../images/intersect_2d2d.png + :align: center + + Two 2D meshes before partitioning (to the left) and a result mesh after partitioning (to the right) + +Intersect2DMeshes returns a new 2D mesh and two arrays. *a1* gives for each result cell an id of the cell of *mesh1* it comes from. *a2* for each result cell gives an id of the cell of *mesh2* it comes from. + +You can compute distance from a set of points to cells of a mesh by calling + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_ExtractForMeshes_23 + :end-before: UG_ExtractForMeshes_23 + +This method returns distance and a closest cell id for each of given *points*. *points* is a DataArrayDouble with 3 components. Returned *dist* is a DataArrayDouble and *cells* is a DataArrayInt. + +Mesh comparison +--------------- + +It is a common question. You have two meshes *m1* and *m2* coming from 2 different sources (2 files) and expected to be more or less equivalent. + +medcoupling proposes some methods to help to caracterize equivalence of these 2 meshes. + +The first, the strongest, is informatical equality: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MeshComparison_0 + :end-before: UG_MeshComparison_0 + +*eps* is the tolerance in coordinates. + +If true is returned, you are lucky. + +Sometimes only names (and or component names or units) are not the same: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MeshComparison_1 + :end-before: UG_MeshComparison_1 + +But sometime the last call also returns False. It may mean that there is a permutation of nodes and or cells. + +If you know by construction that *m1* and *m2* share the same coords object: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MeshComparison_2 + :end-before: UG_MeshComparison_2 + +checkGeoEquivalWith returns 2 elements. The first one is relative to cells and the second one is relative to nodes. + +If the mapping between *m1* and *m2* is impossible regarding the specified code an exception is thrown. +Code meaning: + + - 20=2*10+0. 2 tells I know that coords are the same. 0 tells two cells are equal if and only if their connectivity is exactly the same. + - 21=2*10+1. 2 tells I know that coords are the same. 1 tells two cells are equal if and only if their connectivity is equal within a circular permutation. + - 22=2*10+2 . 2 tells I know that coords are the same. 2 tells two cells are equal if and only if nodes set is the same independently from :ref:`order `. + +If you expect that two meshes are geometrically the same without knowing if there is any cell/node permutation use code 12: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MeshComparison_3 + :end-before: UG_MeshComparison_3 + +Code meaning: 12=1*10+2. 1 tells coords can be different. 2 tells two cells are equal if and only if nodes set is the same independently from order. + +.. admonition:: Remark + + *a* and/or *b* may be *None*. It's not a bug it only means that renumbering is equal to identity, meaning that no associated permutation is needed. + +Common handling mesh +-------------------- + +*field1* is a node field containing non simplex cells. simplexize on field1.getMesh() can help to +overpass this limitation. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_0 + :end-before: UG_CommonHandlingMesh_0 + +.. figure:: ../images/simplexize.png + :align: center + + Initial mesh (to the left) and its simplexization (to the right) + +.. admonition:: Remark + + The mesh has been modified by simplexize. This method of simplexization is fast but leads to non conform mesh that can be a problem in some context + +tetrahedrize method is dedicated to simplexization of 3D meshes only. It can create a conform mesh. Unlike simplexize method, tetrahedrize method can add new points to the result mesh. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_15 + :end-before: UG_CommonHandlingMesh_15 + +The argument specifies how to split hexahedral cells. it must be in (PLANAR_FACE_5, PLANAR_FACE_6, GENERAL_24, GENERAL_48). +*n2ocells* is a DataArrayInt holding, for each new cell, an id of old cell producing it. +*np* is a number of new points. + +Using medcoupling you can create a 3D extruded mesh. To do that you need a 2D mesh and a 1D mesh, which defines the vector of extrusion and the number of steps. The both meshes must be in 3D space. To extrude a 2D mesh *m2* along a 1D mesh *m1*, call + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_1 + :end-before: UG_CommonHandlingMesh_1 + +The last argument is a policy defining the type of extrusion: + +* 0 means "translation only": the cells of the 1D mesh represent the vectors along which the 2D mesh will be repeated to build each level. +* 1 means "translation and rotation": the translation is done as above. For each level, an arc of circle is fitted on the 3 preceding points of the 1D mesh. The center of the arc is the center of rotation for each level, the rotation is done along an axis normal to the plane containing the arc, and finally the angle of rotation is defined by the first two points on the arc. + + +.. figure:: ../images/extrusion.png + :align: center + + A 2D mesh and an 1D mesh (to the left), an extrusion mesh built with policy=0 (in the middle) and with policy=1 (to the right) + + +In order to aggregate several meshes of the same dimension into one mesh, call + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_2 + :end-before: UG_CommonHandlingMesh_2 + +To transform a linear mesh into a quadratic one, call + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_3 + :end-before: UG_CommonHandlingMesh_3 + +A parameter of convertLinearCellsToQuadratic provides type of conversion: + +* 0 creates cells of simple quadratic types, e.g. NORM_TRI6 and NORM_QUAD8 +* 1 creates cells of complex quadratic types, e.g. NORM_TRI7 and NORM_QUAD9 + +.. figure:: ../images/convert2quadratic.png + :align: center + + Result quadratic 2D meshes converted with typeOfConversion=0 (to the left) and typeOfConversion=1 (to the right) + +It's common to deduce skin of a mesh *m1*: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_4 + :end-before: UG_CommonHandlingMesh_4 + +*skin* and *m1* share the same coordinate array. + +.. figure:: ../images/skin.png + :align: center + + A 2D mesh (to the left) and its skin (to the right) + +.. _explodeIntoEdges: + +In order to get a 1D mesh from a given 2D or 3D mesh, call + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_6 + :end-before: UG_CommonHandlingMesh_6 + +In addition to *mesh1d*, explodeIntoEdges method returns four arrays describing descending connectivity and reverse descending connectivity in indirect-indexing_ format. *d* and *di* describe the descending connectivity, i.e. enumerate cells of *mesh1d* bounding each cell of *mesh3d*. *r* and *ri* describe the reverse descending connectivity, i.e. enumerate cells of *mesh3d* bounded by each cell of *mesh1d*. + +.. _indirect-indexing: ../../developer/numbering.html#numbering-indirect + +.. figure:: ../images/explodeIntoEdges.png + :align: center + + A 2D mesh (to the left) and a 1D mesh returned by explodeIntoEdges (to the right) + +There is also a method similar to explodeIntoEdges_ which returns a mesh of one less dimensions than a given mesh, i.e. 3D->2D or 2D->1D: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_7 + :end-before: UG_CommonHandlingMesh_7 + +If a mesh is non-conformal, medcoupling can make it conformal. conformize2D method is to conformize a 2D mesh in 2D space, conformize3D is to conformize a 3D mesh in 3D space: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_8 + :end-before: UG_CommonHandlingMesh_8 + +*changedCells* is an array of ids of changed cells. The changed cells become polygons in 2D and polyhedrons in 3D. *eps* is the relative error to detect merged edges. + +You can duplicate some nodes in a mesh by calling + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_9 + :end-before: UG_CommonHandlingMesh_9 + +This will create new nodes at locations of nodes #3 and #4, the new nodes will replace nodes #3 and #4 within cells so that the nodes #3 and #4 will become orphan. + +Inversly it is possible to merges nodes equal within a given precision: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_16 + :end-before: UG_CommonHandlingMesh_16 + +If your 2D mesh in 3D space includes incorrectly oriented cells, you can fix their orientation by calling: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_11 + :end-before: UG_CommonHandlingMesh_11 + +The last argument if True, only polygons are checked, else, all cells are checked. + +.. figure:: ../images/orient_2d.png + :align: center + + A mesh before applying orientCorrectly2DCells (to the left) and after (to the right) + +If your mesh includes incorrectly oriented polyhedra, the following method can help to fix your mesh: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_12 + :end-before: UG_CommonHandlingMesh_12 + +If *m1d* is a 1D line mesh, you can ensure consecutive order of its segments by calling + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_10 + :end-before: UG_CommonHandlingMesh_10 + +.. figure:: ../images/orderConsecutiveCells1D.png + :align: center + + 1D mesh before and after renumbering + +orderConsecutiveCells1D method returns a permutation map in new-to-old_ mode but renumberCells method requires the map in old-to-new_ mode, hence we use invertArrayN2O2O2N method to fit to that requirement. + +.. _new-to-old: ../../developer/numbering.html#MEDCouplingArrayRenumberingN2O + +.. _old-to-new: ../../developer/numbering.html#MEDCouplingArrayRenumberingO2N + +.. _renumber_for_MED: + +To arrange cells to comply with MED format requirement you can call either of the following methods: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_13 + :end-before: UG_CommonHandlingMesh_13 + + +It is also possible to rearrange, and even remove, nodes by calling renumberNodes: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_CommonHandlingMesh_14 + :end-before: UG_CommonHandlingMesh_14 + +The code above rearranges a mesh with 4 nodes so that old node #0 becomes #2, old node #1 remains #1, old node #2 becomes #0, old node #3 is removed. The last argument 3 means that number of nodes becomes 3. + +.. figure:: ../images/renumber_nodes.png + :align: center + + The mesh before renumberNodes (to the left) and after (to the right). Shown Ids are a unit more than Ids in medcoupling + +Operations on fields +-------------------- + +Integral of a *field* can be computed by calling + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_9 + :end-before: UG_MEDCouplingFieldDouble_9 + +The first call returns a list of integrals of all components. The second, returns integral of 0-th component. True means that abs is applied to support size used for computing the integral. + +deviator method returns the stress deviator tensor field of a stress tensor *field* (with 6 components): + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_10 + :end-before: UG_MEDCouplingFieldDouble_10 + +To get value of a *field* at certain *points* call + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_8 + :end-before: UG_MEDCouplingFieldDouble_8 + diff --git a/doc/user/input/data_conversion.rst b/doc/user/input/data_conversion.rst new file mode 100644 index 000000000..d3c49c6a5 --- /dev/null +++ b/doc/user/input/data_conversion.rst @@ -0,0 +1,246 @@ +Data conversion +=============== + +medcoupling includes MEDCouplingRemapper object that allows given a +source field and a target mesh to produce a field lying on target +mesh. + +MEDCouplingRemapper goal is to compute a projection by minimizing +diffusive effects and conserve at most the magnitude of key +variables. + +The MEDCouplingRemapper object computes a remap function that allows +to transform source field into target field. + +The function is represented using sparse matrix given: + + - a source mesh + - a target mesh + - a source spatial discretization ("P0" means ON_CELLS and "P1" means ON_NODES) + - a target spatial discretization + +Apply a projection is then equivalent to apply matrix vector +multiply. + +As projection requires mathematically to compute for every cell in +target mesh, the contribution relative to each of cell in source +mesh. So projection is computation-intensive task. + +To optimize time spent by MEDCouplingRemapper, it implements a fast +algorithm that select coarsely the pairs of cells that have a chance +to be in interaction each other. +It allows to drop from O(n^2) to O(n) the complexity of algorithm. +The algorithm is based on rectilinear bounding boxes of cells along +axis. 2 cells in interaction have their respective bounding boxes in +interaction. + +Unfortunately it works well mathematically but in the real life +projections especially when spacedim and meshdim are not the same it +can be harder to set. + +.. _projection_P0P0: + +Projection cells/cells with meshes having same mesh dimension/space dimension +----------------------------------------------------------------------------- + +Let us create meshes for sample projection: a source mesh consisting of two quadrangles and a target mesh consisting of a triangle: + +.. figure:: ../images/projection_P0P1_meshes.png + :align: center + + Two source quadrangles in blue and a target triangle in red + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_0 + :end-before: UG_Projection_0 + +Now perform projection: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_1 + :end-before: UG_Projection_1 + +Here "P0P0" specifies spatial discretization of both source and target field. "P0" is for cell discretization (ON_CELLS). "P1" is for node discretization (ON_NODES). For example, "P0P1" means from a source cell field (lying on a source mesh) to a target node field (lying on a target mesh). + +Remapper *rem* has just performed intersection of *src* and *tgt* meshes. Result of intersection is stored in a matrix which is returned by getCrudeMatrix method. Each element of the matrix is size of intersection of two cells i and j of the source and target meshes correspondingly. + +Generally the matrix is sparse. To reduce memory usage, the space matrix is represented by an array whose i-th element is a map storing indices and intersection sizes of source cells intersecting i-th target cell. + +Here is a sample sparse matrix: + +.. math:: + + \begin{bmatrix} + 11 & 0 & 0 & 0 \\ + 0 & 0 & 32 & 0 \\ + 0 & 0 & 33 & 43 \\ + 14 & 24 & 0 & 0 \\ + 0 & 25 & 0 & 45 + \end{bmatrix} + +and a corresponding array, which stores only non-zero matrix elements: + +:: + + [{0: 11, 3: 14}, {3: 24, 4: 25}, {1: 32, 2: 33}, {2: 43, 4: 45}] + +Now we create a field on all cells of *src* mesh and call rem.transferField() to transfer the field to the cells of *tgt* mesh + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_2 + :end-before: UG_Projection_2 + +The last argument -1 is a default value that will be assigned in *trgF* to each entity of *tgt* mesh that is not intercepted by any entity of *src* mesh. + +It is crucial to setNature() of the field by which an adequate interpolation formula is chosen. The field nature is expressed by one of the following values: ExtensiveMaximum, IntensiveMaximum, ExtensiveConservation, IntensiveConservation. + +The field is represented by a vector with a discrete value on each cell. This value can represent either + +* an average value of the field in the cell (average density, velocity or temperature in the cell) in which case the representation is said to be **intensive**, +* an integrated value over the cell (total mass, power of the cell) in which case the representation is said to be **extensive**. + +In the case where the source and target meshes are not fully overlapping, it is important to make a correct choice between Maximum and Conservation. + +* **Conservation** means that the interpolation algorithm preserves the integral of the field over a domain. +* **Maximum** means that the field values resulting from the interpolation remain between the upper and lower bounds of the original field. + +Projection cells/nodes nodes/cells nodes/nodes with meshes having same mesh dimension/space dimension +----------------------------------------------------------------------------------------------------- + +Suppose we have the same source and target meshes as in the :ref:`previous chapter `. I.e. the source mesh consists of two quadrangles and the target mesh consists of a triangle. + +.. figure:: ../images/projection_P0P1_meshes.png + :align: center + + Two source quadrangles in blue and a target triangle in red + +The source field is also on cells but the target field is on **nodes** of target mesh. In such a case we do the following: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_3 + :end-before: UG_Projection_3 + +Here "P0P1" specifies support of the source (P0=ON_CELLS) and the target (P1=ON_NODES) fields. The computed martix is:: + + [{0: 0.125, 1: 0.04166666666666663}, {1:0.16666666666666669}, {1: 0.041666666666666685}] + +The result matrix contains values for each of the three nodes of the target mesh. In order to be able to compute these values by means of intersection of cells, an algorithm constructs an auxiliary target mesh. This auxiliary mesh is a dual mesh of the actual target mesh, hence it includes cells corresponding to each actual target node. + +.. figure:: ../images/projection_P0P1_dual.png + :align: center + + The target mesh used for projection is a dual one of the actual target mesh + +If the case is reverse, i.e. the source field is on nodes and the target one should be on cells, we change "P0P1" to "P1P0": + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_4 + :end-before: UG_Projection_4 + +The computed martix is:: + + [{1: 0.07291666666666663, 4: 0.375}] + +In the same way as in "P0P1" case, an auxiliary dual mesh is internally constructed for a mesh supporting a field on nodes (the source field in our case). But since the source cells are not simplexes, simplexization of quadrangles is perfrormed on the fly to be able to construct the dual mesh. Cell #0 (0,3,4,1) is split into (0,3,4) and (0,4,1) + +.. figure:: ../images/projection_P1P0_dual.png + :align: center + + The source mesh used for projection is a dual one of simplexized actual source mesh + +.. |br| raw:: html + +
+ +.. note:: in present implementation of Remapper, the projection of fields on nodes lying on quadratic meshes is not available. If you are in this case you have 2 choices :|br| + 1) you accept to lose precision by converting your mesh (MEDCouplingUMesh.convertLinearCellsToQuadratic) |br| + 2) you subdivide your mesh. + +Projection cell/cell when meshdim != spacedim +--------------------------------------------- + +When meshdim is not equal to spacedim some additional important parameters should be considered. + +Consider a simple case with spacedim=3 and meshdim=2 where : + + - source mesh contains one triangle cell [0.,0.,0.], [1,0,0], [0,1,0] + - target mesh also contains one triange cell [0.,0.,0.], [1,0,0], [0,1,0], which coincides with the source triangle. + +Only "P0P0" projection (ON_CELLS->ON_CELLS) will be considered here but all elements presented here are applicable for other spatial discretizations projections. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_5 + :end-before: UG_Projection_5 + +A remapper returns the following correct matrix:: + + [{0: 0.5}] + +where 0.5 is equal to area of the source (or target) triangle. + +Let us see what the remapper will return if the meshes are not overlapping. To this end we translate the source mesh along its normal by a small distance (1e-3): + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_6 + :end-before: UG_Projection_6 + +The remapper returns the following matrix, which means that it have not found any intersection of the meshes:: + + [{}] + +This happens because bounding boxes of cells used to detect possibly intersecting cells do not intersect. In order to get a correct result of intersection we can increase those bounding boxes. The remapper provides two ways to do that: + +- rem.setBoundingBoxAdjustmentAbs( *thickness* ) expands a bounding box by *thickness*. +- rem.setBoundingBoxAdjustment( *factor* ) expands a bounding box by thickness computed by multiplying a maximal bounding box size by *factor*. + +.. figure:: ../images/projection_bnd_box.png + :align: center + + If source and target meshes do not overlap we can increase their bounding boxes to help remapper to detect intersecting cells + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_7 + :end-before: UG_Projection_7 + +With bounding box tuning we obtain the correct result matrix:: + + [{0: 0.5}] + +The bounding box tuning has a disadvantage in the case where a cell has large angle with either of planes OXY, OYZ or OXZ. In such a case cells that are rather far one from another can be detected as possibly intersecting since their bounding boxes are too large. setMaxDistance3DSurfIntersect method helps avoiding excess intersections. If a distance between fast barycenter of target cell and medium source plane is more than the value specified via setMaxDistance3DSurfIntersect then cell intersection is not performed. + +.. figure:: ../images/projection_setMaxDistance3DSurfIntersect.png + :align: center + + If the tuned bounding box is too large we can use setMaxDistance3DSurfIntersect to exclude unnecessary intersections + +Let us rotate the source mesh by pi/4 angle around Y axis. The result matrix is + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_8 + :end-before: UG_Projection_8 + +:: + + [{0: 0.46155716207961217}] + +If we use setMaxDistance3DSurfIntersect, the result matrix shows that no intersection found: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_9 + :end-before: UG_Projection_9 + +:: + + [{}] + +Another function useful to avoid unnecessary intersection is setMinDotBtwPlane3DSurfIntersect. It tells the remapper not to intersect cells whose normals are too much different. setMinDotBtwPlane3DSurfIntersect specifies minimal dot product of unitary normal vectors of a source and target cells. + +Let us switch off setMaxDistance3DSurfIntersect by passing a negative value. And use setMinDotBtwPlane3DSurfIntersect to avoid intersecting cells that has 45 degrees angle between their normals in our case. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Projection_10 + :end-before: UG_Projection_10 + +Result matrix is:: + + [{}] diff --git a/doc/user/input/data_movement.rst b/doc/user/input/data_movement.rst new file mode 100644 index 000000000..a168d47a9 --- /dev/null +++ b/doc/user/input/data_movement.rst @@ -0,0 +1,502 @@ +Data movement (mesh/field construction) +======================================= + +Read Mesh from file +------------------- + +To read a mesh from a MED file simply invoke + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_1 + :end-before: UG_ReadMeshFromFile_1 + +If the file contains more than one mesh, the previous call will +return the first one. + +You can access to a precise mesh by doing + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_2 + :end-before: UG_ReadMeshFromFile_2 + +Read field from file +-------------------- + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadField_1 + :end-before: UG_ReadField_1 + +This command will succeed if there is exactly one field in +"file.med" and only one time step attached to it. + +If there are more than one field in "file.med" you are expected to +specify the field name. + +To know all fields in "file.med" either you read exception thrown or you can invoke + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadField_2 + :end-before: UG_ReadField_2 + +When you have the fieldName you can safely invoke. + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadField_3 + :end-before: UG_ReadField_3 + +This command will succeed if there are exactly one time step +attached on it. If no you are expected to specify the time step +attached on it. + +A time step is identified by two piece of information : + +- pair of integers specifying without ambiguity a key for access +- floating point (physical time step) + +To retrieve list of time step of a field invoke + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadField_4 + :end-before: UG_ReadField_4 + +This method returns a list of triplet. The first 2 elements of +triplets is pair of integers of time step and the last element in +the triplet is the physical time step. + +To read a field "Field1" at time step defined by pair "(ts0,ts1)" +you can invoke + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadField_5 + :end-before: UG_ReadField_5 + +If you do not succeed reading field in "file.med" using this method +it means that your MED file is complex and requires more information +to be extracted. :ref:`Go to advanced reading`. + +.. admonition:: Remark + + the method is concise but by calling this method several + times it leads to a several mesh loads. + + +.. _medcoupling_Write_mesh: + +Write mesh into file +-------------------- + +MED file format expects a mesh sorted by geometric type. You are +responsible to reorder, if needed, cells to match MED file format +requirements. + +This responsability is let to the end user to avoid misrenumbering effect. + +You can check this by invoking: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_3 + :end-before: UG_ReadMeshFromFile_3 + +To reorder cells you are encouraged to read :ref:`this `. + +If *m* is well numbered, you can dump it into a file by doing : + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_0 + :end-before: UG_ReadMeshFromFile_0 + +The last element specifies the behavior in case if "file2.med" would +already exist. True means, scratch it and write it from scratch. +False means do not scratch try to append it. + + +Write field into file +--------------------- + +You are expected to have a field *f* with a mesh :ref:`correctly numbered.` + +If *f* is a valid MEDCouplingFieldDouble you can dump it into a MED file by simply : + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadField_0 + :end-before: UG_ReadField_0 + +The last element specifies the behavior in case if "file.med" would +already exist. The same meaning than for :ref:`writing mesh.` + +The typical usecase is to store a multi time step field. + +To do that, let's consider that *fs* store a list of +MEDCouplingFieldDouble with at least one element in it. + +.. WARNING:: All meshes of elements in *fs* are expected to be the same + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadField_6 + :end-before: UG_ReadField_6 + +.. admonition:: Remark + + f.getTime()[1:3] returns the pair of integer that specifies the time step. + +f.getTime()[1:3] should be different each other. If two +elements in *fs* have the same pair of integer time step key, the +second one will take the place of the first ! + +Create an array from scratch +---------------------------- + +There are several simple ways to create a medcoupling array from a Python list. + +The following call creates an array of double values consisting of 3 tuples with 2 components: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_DataArrayDouble_0 + :end-before: UG_DataArrayDouble_0 + +The next call creates an array equivalent to one create above: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_DataArrayDouble_1 + :end-before: UG_DataArrayDouble_1 + +The call below creates an array holding the same but differently arranged values: 2 tuples with 3 components: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_DataArrayDouble_2 + :end-before: UG_DataArrayDouble_2 + +You can change number of components in *d* so that it holds 3 tuples with 2 components again: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_DataArrayDouble_3 + :end-before: UG_DataArrayDouble_3 + +Arrays of different types (DataArrayInt, DataArrayFloat) can be created in the same way as DataArrayDouble: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_DataArrayDouble_4 + :end-before: UG_DataArrayDouble_4 + +A medcoupling array can be created from a numpy array and can be transformed to a numpy array: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest_numpy.py + :start-after: UG_DataArrayNumpy_0 + :end-before: UG_DataArrayNumpy_0 + + + +Create an unstructured mesh from scratch +---------------------------------------- + +MEDCouplingUMesh +^^^^^^^^^^^^^^^^ + +MEDCouplingUMesh class represents a general case unstructured mesh. Data of MEDCouplingUMesh is defined in several steps. + +Firstly define basic mesh data in full interlace mode for coordinates and nodal connectivity cell per cell. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: PySnippetUMeshStdBuild1_1 + :end-before: PySnippetUMeshStdBuild1_1 + +Then create MEDCouplingUMesh instance giving its mesh dimension (2 here) and a name. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: PySnippetUMeshStdBuild1_2 + :end-before: PySnippetUMeshStdBuild1_2 + +Then add cells to the mesh. This step includes + +- giving an upper bound of the number of cells to be inserted into the unstructured mesh. +- entering nodal connectivity of all cells, cell per cell using MEDCouplingUMesh.insertNextCell method. +- compacting connectivity arrays by calling MEDCouplingUMesh.finishInsertingCells method. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: PySnippetUMeshStdBuild1_3 + :end-before: PySnippetUMeshStdBuild1_3 + +As the connectivity of the mesh has been defined, let's set the coordinates using array *coords* defined above. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: PySnippetUMeshStdBuild1_4 + :end-before: PySnippetUMeshStdBuild1_4 + +Now the mesh is usable. To assure this, call + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: PySnippetUMeshStdBuild1_5 + :end-before: PySnippetUMeshStdBuild1_5 + +MEDCoupling1SGTUMesh +^^^^^^^^^^^^^^^^^^^^ + +MEDCoupling1SGTUMesh class represents an unstructured mesh composed of cells of same geometric type. It is more optimal due to this simplicity. + +Basically a MEDCoupling1SGTUMesh is defined in the same way as MEDCouplingUMesh. A difference is that the geometric type of cells is specified at construction, and not specified later e.g. in insertNextCell method: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: GU_MEDCoupling1SGTUMesh_0 + :end-before: GU_MEDCoupling1SGTUMesh_0 + +MEDCoupling1DGTUMesh +^^^^^^^^^^^^^^^^^^^^ + +MEDCoupling1DGTUMesh also represents an unstructured mesh composed of cells of same geometric type but it is specialized for cell of "dynamic" geometric type only: NORM_POLYHED and NORM_POLYG. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: GU_MEDCoupling1SGTUMesh_1 + :end-before: GU_MEDCoupling1SGTUMesh_1 + +When connectivity of a polyhedron is defined, facets are separated one from another by -1. + +Create a cartesian mesh from scratch +------------------------------------ + +We are going to build a 2D cartesian mesh, constituted from 9 nodes along X axis, and 7 nodes along Y axis. + +Firstly define for each direction the discretization and build a DataArrayDouble on the corresponding direction. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: PySnippetCMeshStdBuild1_1 + :end-before: PySnippetCMeshStdBuild1_1 + +Then create MEDCoupling.MEDCouplingCMesh instance giving the 2 instances of DataArrayDouble defined above. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: PySnippetCMeshStdBuild1_2 + :end-before: PySnippetCMeshStdBuild1_2 + +The mesh is now usable. + +.. figure:: ../images/cartesian.png + :align: center + + A cartesian mesh created by the code above + +Create a curvelinear mesh from scratch +-------------------------------------- + +First we create a curvelinear mesh and define its structure, for instance a 2-dimensional mesh with 2 nodes in one direction and 3 nodes in the other direction: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingCurveLinearMesh_0 + :end-before: UG_MEDCouplingCurveLinearMesh_0 + +Then define coordinates of 6 nodes in 2D space: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingCurveLinearMesh_1 + :end-before: UG_MEDCouplingCurveLinearMesh_1 + +The mesh is now usable. It's a good habit to assure this: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingCurveLinearMesh_2 + :end-before: UG_MEDCouplingCurveLinearMesh_2 + +.. figure:: ../images/curvelinear.png + :align: center + + A curvelinear mesh created by the code above + +.. _MEDCouplingFieldDoubleOnCells: + +Create a field on cell from scratch +----------------------------------- + +Assume we already have a mesh. We create a field on all cells of the mesh. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_0 + :end-before: UG_MEDCouplingFieldDouble_0 + +ONE_TIME indicates that the field data relates to a single time step. Now define this time moment. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_1 + :end-before: UG_MEDCouplingFieldDouble_1 + +Then define field values: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_2 + :end-before: UG_MEDCouplingFieldDouble_2 + + +Create a field on node from scratch +----------------------------------- + +Assume we already have a mesh. We create a field on all nodes of the mesh. The procedure is same as for a :ref:`field on cells ` except two points: + +- Spatial discretization in the field constructor is ON_NODES +- Number of tuples in an array of values is equal to mesh.getNumberOfNodes() + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_3 + :end-before: UG_MEDCouplingFieldDouble_3 + + +Create a field on Gauss points from scratch +------------------------------------------- + +Assume we already have a 2D mesh consisting of triangle and quadrangle cells. We create a field on Gauss points. First, a field is constructed with use of ON_GAUSS_PT and its basic attributes are set: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingGaussPointField_0 + :end-before: UG_MEDCouplingGaussPointField_0 + +Now define localization of Gauss points on cells. In this example, we define two Gauss points on triangle cells and four Gauss points on quadrangle cells. Localization of Gauss points is defined by three lists of float values: + +#. Coordinates of nodes of the reference cell. +#. Coordinates of Gauss points on the reference cell. +#. Weights of Gauss points. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingGaussPointField_1 + :end-before: UG_MEDCouplingGaussPointField_1 + +Finally set field values: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingGaussPointField_2 + :end-before: UG_MEDCouplingGaussPointField_2 + +Modify field values +------------------- + +applyFunc method modifies all tuples of a field at once. It changes both values and number of components, only number of tuples remains the same. + +To set value *val* to all tuples of the field *f* and to make it have *nbComp* components, call: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_5 + :end-before: UG_MEDCouplingFieldDouble_5 + +It is also possible to compute new values basing on current values. To do so you can specify a function by which a new value will be computed. For more info on supported expressions that can be used in the function, see `expressions supported`_. + +.. _`expressions supported`: ../../developer/arrays.html#MEDCouplingArrayApplyFuncExpr + +You can use some letters, for example "x", "y", "z" etc., to refer to current component values. For example, to transform a 3D vector field to its magnitude, call: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_6 + :end-before: UG_MEDCouplingFieldDouble_6 + +This way a value resulting from the function evaluation is assigned to all components. + +But you can have its own expression for each component within one function. For this purpose, there are predefined variable names (IVec, JVec, KVec, LVec etc) each dedicated to a certain component (IVec, to the component #0 etc). A factor of such a variable is added to the corresponding component only. + +Using this feature, you can set a magnitude of a 3D vector as the fourth component and swap X and Y components by calling: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_MEDCouplingFieldDouble_7 + :end-before: UG_MEDCouplingFieldDouble_7 + +Define groups and write mesh using advanced API +----------------------------------------------- + +To get access to full power of MED file, for example to define groups of cells, it is +necessary to use the advanced medcoupling API, namely class MEDFileUMesh_. + +.. _MEDFileUMesh: ../../developer/classMEDCoupling_1_1MEDFileUMesh.html + +First of all we populate a MEDFileUMesh with meshes (MEDCouplingUMesh) of different dimensions, if present: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_4 + :end-before: UG_ReadMeshFromFile_4 + +Level must be 0 for a mesh of highest dimension, -1 for a mesh of dimension a unit less than highest dimension etc. + +If cells are not yet sorted by geometric type, we can pass True as the third argument of setMeshAtLevel to make them sorted: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_9 + :end-before: UG_ReadMeshFromFile_9 + +.. WARNING:: meshes of different dimension must share the same point coordinate array and have the same name + +We can change point coordinates as soon as all meshes are added: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_5 + :end-before: UG_ReadMeshFromFile_5 + +To define groups we call, for example: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_6 + :end-before: UG_ReadMeshFromFile_6 + +The first argument of addGroup defines a type of group. 1 stands for nodes. 0,-1,-2 and -3 have the same meaning as the level in setMeshAtLevel method. Note that a name of DataArrayInt defines a group name. + +It is possible to change name of a group or a family by calling: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_7 + :end-before: UG_ReadMeshFromFile_7 + +Finally we write all data added to *mm* to a file: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_ReadMeshFromFile_8 + :end-before: UG_ReadMeshFromFile_8 + +The last argument defines behavior if a file exists. 2 means remove. 1 means append; if data with same ID present, an exception is thrown. 0 means overwrite data with same ID; that can lead to a file corruption. + +.. _medcoupling_AdvancedReading: + +Read/write fields using advanced API +------------------------------------ + +Having *field* on *mesh* we can write it using MEDFileField1TS_ class, which is a part of advanced medcoupling API, as following: + +.. _MEDFileField1TS: ../../developer/classMEDCoupling_1_1MEDFileField1TS.html + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_RWFieldAdv_0 + :end-before: UG_RWFieldAdv_0 + +The last argument of write method defines behavior if a file exists. 2 means remove. 1 means append; if data with same ID present, an exception is thrown. 0 means overwrite data with same ID; that can lead to a file corruption. + +If there is a need to write a field lying only on a part of a mesh, the following code gives an example of this: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_RWFieldAdv_1 + :end-before: UG_RWFieldAdv_1 + +*profile* defines entities on which *fieldPartial* lies. *level* defines entities the field lies on: 1 stands for nodes, 0 is for entities of dimension equal to the mesh dimension, -1 is for entities of dimension a unit less than the mesh dimension etc. + +MEDFileField1TS also can be used to read a field: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_RWFieldAdv_2 + :end-before: UG_RWFieldAdv_2 + +* field method can be used if field support is simple: one spatial discretization and one *level*. +* getFieldAtLevel method allows to choose spatial discretization and *level*. +* getFieldOnMeshAtLevel method allows to specify spatial discretization, *level* and mesh. + +*level* of a field, if unknown, can be defined by calling: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_RWFieldAdv_3 + :end-before: UG_RWFieldAdv_3 + +*maxDim* is the maximal absolute dimension of entities the field lies on. *maxRelDims* is a sequence returning the dimensions relative to the maximal absolute one. + +To read/write fields including several time steps medcoupling provides MEDFileFieldMultiTS_ class. To write all time steps it is necessary just to append them to MEDFileFieldMultiTS: + +.. _MEDFileFieldMultiTS: ../../developer/classMEDCoupling_1_1MEDFileFieldMultiTS.html + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_RWFieldAdv_4 + :end-before: UG_RWFieldAdv_4 + +To read a time step with a known *iteration* and *order* MEDFileField1TS can be used as shown above. To iterate through all time steps, use MEDFileFieldMultiTS as following: + +.. literalinclude:: ../../../src/MEDLoader/Swig/UsersGuideExamplesTest.py + :start-after: UG_RWFieldAdv_5 + :end-before: UG_RWFieldAdv_5 + diff --git a/doc/user/input/data_optimization.rst b/doc/user/input/data_optimization.rst new file mode 100644 index 000000000..2a570b332 --- /dev/null +++ b/doc/user/input/data_optimization.rst @@ -0,0 +1,49 @@ +Data optimization for numerical codes +===================================== + +.. _renumbering: + +Renumbering to improve locality +------------------------------- + +A mesher (like SMESH) often generates a scattered cell distribution in output unstructured mesh. +So a common task for simulation codes is the reordering for a better locality. + +medcoupling can do that simply by doing + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Optimization_0 + :end-before: UG_Optimization_0 + +.. figure:: ../images/medrenumber.png + :align: center + + Numbering by MEFISTO mesher (to the left) and the same mesh after renumbering (to the right) + +RenumberingFactory method creates a renumbering algorithm of a specified type: either "Boost" or "Metis". + +Partitionning for multi procs +----------------------------- + +For simulation codes following the SPMD paradigm, the partitionning is a key step. +medcoupling can perform this partition. Here is an example of partitioning mesh *m* into 4 parts and retrieving the first part: + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Optimization_1 + :end-before: UG_Optimization_1 + +.. figure:: ../images/partition.png + :align: center + + A whole mesh *m* (to the left) and one fourth of it *part0* (to the right) got using the above code + +It's then possible to add a layer or more of cells. + +.. literalinclude:: ../../../src/MEDCoupling_Swig/UsersGuideExamplesTest.py + :start-after: UG_Optimization_2 + :end-before: UG_Optimization_2 + +.. figure:: ../images/partition_with_layer.png + :align: center + + *part0* (to the left) and *part0_with_layer* (to the right) diff --git a/doc/user/input/index.rst b/doc/user/input/index.rst new file mode 100644 index 000000000..11ee3eb20 --- /dev/null +++ b/doc/user/input/index.rst @@ -0,0 +1,30 @@ +.. Code Integration and Code Coupling documentation master file, created by sphinx-quickstart on Tue Apr 28 14:31:38 2009. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +medcoupling user's manual +========================= + +medcoupling gathers several powerful functionalities around the input and output data of field-physics-oriented simulation codes. Data manipulated by medcoupling are objects relative to fields for simulation codes. + +medcoupling functionalities are accessible through python modules. + +medcoupling functionalities can be split into 4 categories: + #. :doc:`Data movement `: read/write from/to file, reduce, extract, duplicate, aggregate, compare, exchange data memory to memory across process (image of multifile to file) + #. :doc:`Data analysis `: extract/gather information in data to transform it in a condensate workable data (not necessarely field linked) for further use. + #. :doc:`Data conversion `: interpolate, project, repare, decimate, format convertion to make discuss simulation codes each other + #. :doc:`Data optimization ` for simulation code : renumbering, partition for multiprocessor codes + +First, this documentation introduces :doc:`fundamental concepts/objects ` of medcoupling for a better understanding of examples. + +.. toctree:: + :maxdepth: 2 + :numbered: + :hidden: + + basic_concepts + data_movement + data_analysis + data_conversion + data_optimization + diff --git a/doc/user/locale/fr/LC_MESSAGES/basic_concepts.po b/doc/user/locale/fr/LC_MESSAGES/basic_concepts.po new file mode 100644 index 000000000..1224d9f15 --- /dev/null +++ b/doc/user/locale/fr/LC_MESSAGES/basic_concepts.po @@ -0,0 +1,202 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015-2017, Geay, Bruneton +# This file is distributed under the same license as the MEDCoupling User's +# Guide package. +# FIRST AUTHOR , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: MEDCoupling User's Guide 8.4.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-14 14:40+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.0\n" + +# cfbfaa23fcb74920ad39b2a002dabf91 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:2 +msgid "Basic concepts" +msgstr "" + +# 517aa380d10f4b3690dd3b749f16287c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:4 +msgid "Your're invited to start here." +msgstr "" + +# 251cf1ab37e046c3b8fa04be4295a22e +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:6 +msgid "" +"This section explains in a concise way fundamental concepts (incarnated " +"by classes) for a better understanding of examples in FAQ_." +msgstr "" + +# df5965e7cb4147859327c5afcefd15c8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:11 +msgid "" +"The objects presented in this section are objects dedicated to data " +"manipulation." +msgstr "" + +# 9bf426c44d3b4d4c88a71ac13872b7ba +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:13 +msgid "" +"Later in advanced section, other objects will be presented to more " +"complex data, as composite of objects presented here." +msgstr "" + +# 23aae352230044ee94f7a9e43f3012fb +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:16 +msgid "medcoupling Fields" +msgstr "" + +# 18e55a020e54424dbbfc0c93f26ba867 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:17 +msgid "" +"The most fundamental object is field. Fields are incarnated by " +"MEDCouplingFieldDouble_." +msgstr "" + +# 5f9fd793f91d4f5e821603ef61f7977d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:21 +msgid "" +"A field is an object able to give a value on every points geometrically " +"covered by its support. The field support is a :ref:`mesh " +"`." +msgstr "" + +# 8c7b87a517864e20a52dbbaffad8172b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:23 +msgid "" +"Depending on the physics relative to the field, medcoupling fields " +"proposes different spatial discretizations : cells, nodes, Gauss points." +msgstr "" + +# 2482663f8b264b60b6d897f68d7599dd +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:25 +msgid "" +"The spatial discretization defines an algorithm giving the value of field" +" on point given the position of a point inside the domain covered by the " +":ref:`mesh ` and an :ref:`array `" +" of float, integers located on specific location of mesh." +msgstr "" + +# e4f8d9093bad410082e7494d203348cb +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:35 +msgid "medcoupling Meshes" +msgstr "" + +# aa9618d4b3174993a3e1ab47e975a3ba +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:37 +msgid "" +"Meshes are incarnated by MEDCouplingMesh_ (and their subclasses). A mesh " +"contains cells and nodes (indifferently called points). A cell has a " +"geometric type (TRI3, QUAD4, TETRA4)." +msgstr "" + +# f5172584eb9543bd86b2323b70acb064 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:43 +msgid "" +"All cells contained in a medcoupling mesh must have the same dimension. " +"This dimension is called meshdimension." +msgstr "" + +# e95bedddd27a43edb5ae12d469a26270 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:46 +msgid "" +"The set of points of a medcoupling mesh are stored into coordinates " +":ref:`array `. The number of components of " +"coordinates of coordinates array is called the space dimension." +msgstr "" + +# cfcd9a42cb9944f0a0183f7ff5c682f9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:50 +msgid "The space dimension is always greater or equal to mesh dimension." +msgstr "" + +# abcf69c8e43b4bc6aee65dd6791ff004 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:55 +msgid "medcoupling Arrays" +msgstr "" + +# 56f65c32b87f40dc8189cbf6c0ba91aa +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:57 +msgid "" +"One of the challenges faced by medcoupling is the reduction of memory " +"footprints. In medcoupling, memory expensive attributes are arrays or " +"composite of arrays." +msgstr "" + +# 3cd78be9383d4e10924d580e1579673a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:61 +msgid "" +"To do so, medcoupling arrays represent contiguous arrays in the most " +"compact way to guaranty at most locality." +msgstr "" + +# f7f85726bd9a458a87919b26eff18d89 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:64 +msgid "" +"The type of elements contained in arrays is fix. Today int32, float32 and" +" float64 arrays are available. Elements in arrays are grouped into fixed " +"size packets called tuple." +msgstr "" + +# f5dc316a0137438f84241b77ef6ad4b4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:68 +msgid "This size of every tuple is called number of components." +msgstr "" + +# c88aefb15985489a9ea3324ec02d2340 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:70 +msgid "" +"Consequently number of elements in an array is equal to number of tuples " +"times number of components." +msgstr "" + +# 2305b7d811364b75a5df79724e19c34a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:73 +msgid "" +"A typical usage of medcoupling array is for coordinates of points " +"storage. Number of components will be equal to space dimension and number" +" of tuples will be equal to number of points." +msgstr "" + +# daa1bc42632a47d2a76e850b671ed8c6 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:77 +msgid "" +"A medcoupling array has a name. And each component of array has also a " +"name. The component name use the following convention to put an optional " +"unity (\"X cote [mm]\")." +msgstr "" + +# f87aeadedf314281a857c8ec7b0cc732 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:81 +msgid "" +"If you are already a fan of `numpy `_ (you're" +" right it's an amazing/wonderful standard package), medcoupling arrays " +"behaves just like numpy arrays and anyway there are zero copy gateways " +"between medcoupling arrays and numpy." +msgstr "" + +# 2e8e2c32c72543f69a342507118ced99 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/basic_concepts.rst:86 +msgid "" +"medcoupling arrays implement different algorithms like reordering, cloud " +"comparisons, arithmetic, geometry helpers in addition to algorithms " +"proposed by numpy." +msgstr "" + +# aa9618d4b3174993a3e1ab47e975a3ba +#~ msgid "" +#~ "Meshes are incarnated by MEDCouplingMesh " +#~ "(and their subclasses). A mesh contains" +#~ " cells and nodes (indifferently called " +#~ "points). A cell has a geometric " +#~ "type (TRI3, QUAD4, TETRA4)." +#~ msgstr "" + diff --git a/doc/user/locale/fr/LC_MESSAGES/data_analysis.po b/doc/user/locale/fr/LC_MESSAGES/data_analysis.po new file mode 100644 index 000000000..ff1429033 --- /dev/null +++ b/doc/user/locale/fr/LC_MESSAGES/data_analysis.po @@ -0,0 +1,842 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015-2017, Geay, Bruneton +# This file is distributed under the same license as the MEDCoupling User's +# Guide package. +# FIRST AUTHOR , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: MEDCoupling User's Guide 8.4.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-14 14:14+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.0\n" + +# ccc0f4502971404bb98ef4ff2f7901f4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:2 +msgid "Data analysis" +msgstr "" + +# 48552fbfd5ea49b78aea30fa83d9a9f2 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:5 +msgid "Object size in memory" +msgstr "" + +# a47ff2b84ce24947b5f909bcb8d884a2 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:7 +msgid "" +"medcoupling provides information on memory occupied by every object: " +"mesh, field, array etc.:" +msgstr "" + +# 8824315c08944d6bb207964f13d518cd +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:14 +msgid "Extract data" +msgstr "" + +# 358bb088780342e6a5d2542e6a5dffee +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:19 +msgid "Extract for meshes" +msgstr "" + +# aff67f901cae4028ad0c1859dfd1b334 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:21 +msgid "" +"If *m* is a mesh (MEDCouplingUMesh) and *Ids* a list of cell ids, you can" +" extract the mesh ids by simply doing :" +msgstr "" + +# cff3cbd7d4fc4abb9c7cc2724c87c290 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:30 +msgid "" +"*m* (to the left) and *part* extracted by calling m[1,2,4,5,7,8] (to the " +"right)" +msgstr "" + +# e0b1ec21292b43c0a8155200cae7bb00 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:32 +msgid "in medcoupling ids count from zero unlike SMESH where they count from one." +msgstr "" + +# 4ce9bac3df0c4908be951ec654317ffe +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:34 +msgid "" +"*part* is also a MEDCouplingUMesh with same coordinates than *m*. Reason " +"is that medcoupling tries to reduce memory effort." +msgstr "" + +# 819727e2481b4868981c0abc8c083284 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:36 +msgid "" +"But it's highly likely that some nodes in part will be not fetched by " +"part." +msgstr "" + +# 4eba3e39bfae4854b2ea36c8d3be6ad1 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:38 +msgid "It can be interesting to locate the fetched nodes." +msgstr "" + +# a058f4f2a5d1425b98ae4785cd743561 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:47 +msgid "" +"part.computeFetchedNodeIds() returns [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, " +"12, 13, 14, 15, 16]. Ids 0 and 17 are not fetched" +msgstr "" + +# cfa0842d7650425e989358c11032c5b8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:49 +msgid "To extract coordinates, simply invoke" +msgstr "" + +# df1b4205d6e14d39b8676331153baa1a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:55 +msgid "" +"It can be interesting to reduce set of points *part* is lying on. Simply " +"by doing." +msgstr "" + +# 2385a00c95e44f1d88b3aa7ae88e8373 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:61 +msgid "" +"Or it can be interesting for further data handling to have both reduction" +" and array." +msgstr "" + +# 8bf3c07be8ac48bbafb0ed4848fb647c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:67 +msgid "To have more information about *o2n* read renumbering_ section." +msgstr "" + +# 9184686efb5c4dcfa24ad90f20641649 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:71 +msgid "" +"Extraction in meshes often leads to locate cells/nodes regarding their " +"neighborhood." +msgstr "" + +# 92332ed062ac4fe8ba1be6ae5eb2e5de +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:73 +msgid "Let's consider *m2* 3D mesh. To locate nodes on boundaries simply invoke :" +msgstr "" + +# facd3e1c4cff4cc49b606ce00cc1029a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:79 +msgid "And now to extract cells lying on boundary nodes simply call :" +msgstr "" + +# 6e5940d6180e4737896b080686d44304 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:85 +msgid "" +"False means if a cell has at least one node in *bn*, take it. True means " +"if all nodes of cell are in *bn*, take it." +msgstr "" + +# 5942293262a1405da7ae131187372966 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:87 +msgid "" +"If a mesh consists of several contiguous zones of cells, it is possible " +"to retrieve cell ids of each zone:" +msgstr "" + +# 192b40a09d6e4f089ff1684f967af715 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:92 +msgid "A mesh with two zones" +msgstr "" + +# 2beed69cf53d46589263f237228926ee +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:98 +msgid "Zones returned by partitionBySpreadZone are::" +msgstr "" + +# 457ad15813134b65840368d746309b2b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:103 +msgid "Extract for arrays" +msgstr "" + +# f609934b9fec46df8d194e6526d52888 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:105 +msgid "" +"Arrays are the common entry point to selection. If *arr* is a 2 component" +" DataArrayDouble you can locate tuple ids by finding those whose first " +"component is in [a,b):" +msgstr "" + +# e7393446b08347febd75786cbcce74bb +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:111 +msgid "Or you can find tuples whose magnitude is in [c,d):" +msgstr "" + +# e44ff0cf176547a994d679ccd0d6d763 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:117 +msgid "To find which of *tupleIds* are missing from *tupleIds1*, call" +msgstr "" + +# b1c2e151b0714c178f903a90d5a475da +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:125 +msgid "Extract for fields" +msgstr "" + +# 0c6debe20e13486daa6e13354b67ccde +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:127 +msgid "" +"If *field4* is a MEDCouplingFieldDouble, you can extract a sub-part of " +"*field4* on a specified cell ids *ids4* by doing" +msgstr "" + +# c24189fc03e649989f6f791a8c89e48b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:133 +msgid "It works whatever the spatial discretization of *field4*" +msgstr "" + +# 35cbd297f40d4be4a3803e421735b9c8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:138 +msgid "" +"A field on nodes (to the left) and its sub-field on a half of nodes (to " +"the right)" +msgstr "" + +# bbe4aa2431e14578970b9404d5698f99 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:140 +msgid "You can extract a field on plane by cutting *field5* like this:" +msgstr "" + +# 632193d8ffea4b73a52bba73a4391516 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:146 +msgid "" +"The plane is defined by its *origin* and its normal vector *normvec*. The" +" last argument is a half-thickness of the plane." +msgstr "" + +# 6db3a5fbf32c4e989362e222b35dc3cd +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:148 +msgid "It works for fields on cells only" +msgstr "" + +# edc2927c5ee2479594c2437be7421716 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:153 +msgid "A field on cells (to the left) and a sub-field on a plane (to the right)" +msgstr "" + +# 9831255d19864f77b5f223c3462a85cb +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:159 +msgid "Geometric handling of unstructured meshes" +msgstr "" + +# 5e2faf5cfdd14b1788772f03a399dacd +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:161 +msgid "" +"Consider *m2* as a 3D MEDCouplingUMesh instance. You can translate it by " +"simply" +msgstr "" + +# cf0c3af4895849299a1700292a6f33c8 +# 9ac56283057e4ab1a0c041de99ed465e +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:167 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:179 +msgid "Which is equivalent to" +msgstr "" + +# 2936437cde6341e59cd47aa99d7843cf +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:173 +msgid "" +"Samely you can simply rotate it around the point [1,2,1] along Y axis " +"with an angle of pi/3 by doing" +msgstr "" + +# d1c1cacf9a9d4163b77f7786fbdea457 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:185 +msgid "To scale *m2* relative to point [1,2,4] by a factor of 6, call" +msgstr "" + +# 5744c0eec4a6487c92e18c3acd7701e6 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:191 +msgid "" +"It can also interesting to retrieve volume of cells in m2 (resp area, " +"length in 2D, 1D):" +msgstr "" + +# 91a5f984e9474f29b80fd7a8a57a2557 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:197 +msgid "" +"*volPerCell* is a field on cell (MEDCouplingFieldDouble). *True* means I " +"don't care of cell orientation. *False* tells I care of cell orientation " +"using signed values." +msgstr "" + +# 06fc9120bd4b4fba9416271ba5be33f5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:202 +msgid "Area field of a cartesian mesh" +msgstr "" + +# 62e7fe979c3a4ee88ef1a6b434ea1d51 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:204 +msgid "You can compute total volume covered by mesh by doing" +msgstr "" + +# 9bdd0a1e57714495b2f7c3eae95d5e0d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:210 +msgid "" +"You also can locate cells (using *cellIds*) having volume greater than a " +"threshold *t1*:" +msgstr "" + +# 1294aa862e81419b9ebd476cb496499c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:216 +msgid "" +"In this case it is easy to :ref:`build a sub-mesh` " +"containing cells having a volume higher than *t1*:" +msgstr "" + +# 4eaf169e0eb6407493f5232d0e303203 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:222 +msgid "There are other common geometric methods on meshes:" +msgstr "" + +# f2a89143b81b428f86be275a6b178b91 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:228 +msgid "" +"*centers* will be a DataArrayDouble giving for each cell of *m2* its " +"center of mass." +msgstr "" + +# 2040297dab7f434aaf8d5a50adabdbab +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:230 +msgid "" +"It's possible to compute a DataArrayDouble giving the center of mass of " +"*m2* simply by doing" +msgstr "" + +# d35aee9d090349929fe0f06b3d884734 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:236 +msgid "Iso barycenter of nodes constituting each cell can be computed by calling" +msgstr "" + +# cc9cb665bce14af49a2f43a011a2d49f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:242 +msgid "*ibc* will be a DataArrayDouble." +msgstr "" + +# 525e5b78edbb4371abe23f10dc01ec93 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:244 +msgid "" +"You can retrieve a field (MEDCouplingFieldDouble) of unitary vectors " +"normal to cells:" +msgstr "" + +# c3e083095f174584933fd5ca8d9b3c6d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:253 +msgid "" +"A skin mesh with a normal field on it computed by buildOrthogonalField " +"method" +msgstr "" + +# b46f8b1f9059453ea7fdeec97022d9ed +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:255 +msgid "" +"You also have a set of methods to caracterize mesh quality: " +"getEdgeRatioField, getAspectRatioField, getWarpField, getSkewField, " +"computeDiameterField." +msgstr "" + +# 53047aa31028496cbcc6be12565fa692 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:258 +msgid "" +"medcoupling provides methods to intersect 2D meshes in 2D space. " +"MEDCouplingUMesh.Intersect2DMeshWith1DLine partitions a 2D and a 1D mesh:" +msgstr "" + +# 942fde1e54ca4299ac545024ffd19e91 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:264 +msgid "" +"The last argument is a precision used to perform intersections and " +"localization operations." +msgstr "" + +# 0b09a0881fbd4513b67c0747d8fdfe80 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:269 +msgid "2D and 1D meshes before and after intersection" +msgstr "" + +# 81ad5cfdbc8641dcbb670c243d1d6bbb +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:271 +msgid "" +"Intersect2DMeshWith1DLine returns new 2D and 1D meshes and two arrays. " +"*a2d* gives for each cell in *m2d* the id in *mesh2d* it comes from. " +"*a1d* is an array of pair that gives for each cell id i in *m1d* the cell" +" in *md2* on the left for the 1st component and the cell in *m2d* on the " +"right for the 2nd component. -1 means no cell." +msgstr "" + +# 967d6c9dc64f42a1a5946e41c9c7bd7b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:273 +msgid "For the example in the picture above *a2d* is::" +msgstr "" + +# 7014ddb55ea249a688e2d85eedc2d298 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:277 +msgid "and *a1d* is::" +msgstr "" + +# ae51d6687aa04888b29987eef1f2b135 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:281 +msgid "There also a method to partition a 2D mesh by another 2D mesh:" +msgstr "" + +# fa4718067f704d5e9e65ba9c2753c6ab +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:290 +msgid "" +"Two 2D meshes before partitioning (to the left) and a result mesh after " +"partitioning (to the right)" +msgstr "" + +# 625a1767d1704712af9a6883503ba150 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:292 +msgid "" +"Intersect2DMeshes returns a new 2D mesh and two arrays. *a1* gives for " +"each result cell an id of the cell of *mesh1* it comes from. *a2* for " +"each result cell gives an id of the cell of *mesh2* it comes from." +msgstr "" + +# db5ca252adf54438b222a1e8bd76ed8a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:294 +msgid "" +"You can compute distance from a set of points to cells of a mesh by " +"calling" +msgstr "" + +# f5a657b58eae45549766808f8aaa4a78 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:300 +msgid "" +"This method returns distance and a closest cell id for each of given " +"*points*. *points* is a DataArrayDouble with 3 components. Returned " +"*dist* is a DataArrayDouble and *cells* is a DataArrayInt." +msgstr "" + +# 6ca71e019ada4e3d9e867ea016754e69 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:303 +msgid "Mesh comparison" +msgstr "" + +# 219cbe7a55bf4a8e8d4ea2a3fe76805a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:305 +msgid "" +"It is a common question. You have two meshes *m1* and *m2* coming from 2 " +"different sources (2 files) and expected to be more or less equivalent." +msgstr "" + +# e01c6ae4e7dc466f82e5b61b43a37ffc +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:307 +msgid "" +"medcoupling proposes some methods to help to caracterize equivalence of " +"these 2 meshes." +msgstr "" + +# 9ad14ff7da9c42728f14369025b553f0 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:309 +msgid "The first, the strongest, is informatical equality:" +msgstr "" + +# 0cac768b3c0c4068980bf1289df5fd3d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:315 +msgid "*eps* is the tolerance in coordinates." +msgstr "" + +# 2e94e699afbf4254a0af799517f5e3d4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:317 +msgid "If true is returned, you are lucky." +msgstr "" + +# 12a398bbc2a243158f9243b2945dfea0 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:319 +msgid "Sometimes only names (and or component names or units) are not the same:" +msgstr "" + +# bff6d14773744daaa1f037cc5f234c3d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:325 +msgid "" +"But sometime the last call also returns False. It may mean that there is " +"a permutation of nodes and or cells." +msgstr "" + +# f01d328afb914c4e8feecb25e3599ff8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:327 +msgid "" +"If you know by construction that *m1* and *m2* share the same coords " +"object:" +msgstr "" + +# e7e7df8dfebd4e76b797661493c4fea3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:333 +msgid "" +"checkGeoEquivalWith returns 2 elements. The first one is relative to " +"cells and the second one is relative to nodes." +msgstr "" + +# 081cdffbfe0a4a79a9712a0fae92e01f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:335 +msgid "" +"If the mapping between *m1* and *m2* is impossible regarding the " +"specified code an exception is thrown. Code meaning:" +msgstr "" + +# c3323332ab6b42a4b62f3bf6b490a9b9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:338 +msgid "" +"20=2*10+0. 2 tells I know that coords are the same. 0 tells two cells are" +" equal if and only if their connectivity is exactly the same." +msgstr "" + +# d19fb1e351d74b61a1f78a7dd51641a6 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:339 +msgid "" +"21=2*10+1. 2 tells I know that coords are the same. 1 tells two cells are" +" equal if and only if their connectivity is equal within a circular " +"permutation." +msgstr "" + +# 00a3c108006e431ba8484bfea37c4ea0 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:340 +msgid "" +"22=2*10+2 . 2 tells I know that coords are the same. 2 tells two cells " +"are equal if and only if nodes set is the same independently from " +":ref:`order `." +msgstr "" + +# 028a6030afb94053b1a36bb667b6b4e4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:342 +msgid "" +"If you expect that two meshes are geometrically the same without knowing " +"if there is any cell/node permutation use code 12:" +msgstr "" + +# 70e30890cc2b4ea58f979e56484d58dd +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:348 +msgid "" +"Code meaning: 12=1*10+2. 1 tells coords can be different. 2 tells two " +"cells are equal if and only if nodes set is the same independently from " +"order." +msgstr "" + +# 31d650961eb04249b76864746e75f644 +# de9c3317cf72475e8ccc61e2619b8331 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:350 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:369 +msgid "Remark" +msgstr "" + +# db4203bc3df24c7db4b77e513cad9d25 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:352 +msgid "" +"*a* and/or *b* may be *None*. It's not a bug it only means that " +"renumbering is equal to identity, meaning that no associated permutation " +"is needed." +msgstr "" + +# ce729fd6a7af43b3a3c3d37ab2898ffa +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:355 +msgid "Common handling mesh" +msgstr "" + +# eb7ac9dea5494b3f93654d58e926e46a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:357 +msgid "" +"*field1* is a node field containing non simplex cells. simplexize on " +"field1.getMesh() can help to overpass this limitation." +msgstr "" + +# 9e4f6908d5634bf4866da2e95184933c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:367 +msgid "Initial mesh (to the left) and its simplexization (to the right)" +msgstr "" + +# b879d71bdf444e6795cc5e133a089d2a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:371 +msgid "" +"The mesh has been modified by simplexize. This method of simplexization " +"is fast but leads to non conform mesh that can be a problem in some " +"context" +msgstr "" + +# 71404e6d56fb40d2bbb40016f2ebf82d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:373 +msgid "" +"tetrahedrize method is dedicated to simplexization of 3D meshes only. It " +"can create a conform mesh. Unlike simplexize method, tetrahedrize method " +"can add new points to the result mesh." +msgstr "" + +# f35b4cbdaf8a458c834cc3f9968b3f12 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:379 +msgid "" +"The argument specifies how to split hexahedral cells. it must be in " +"(PLANAR_FACE_5, PLANAR_FACE_6, GENERAL_24, GENERAL_48). *n2ocells* is a " +"DataArrayInt holding, for each new cell, an id of old cell producing it. " +"*np* is a number of new points." +msgstr "" + +# 4c4252426c0241cd9dd7f1e0fccafb89 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:383 +msgid "" +"Using medcoupling you can create a 3D extruded mesh. To do that you need " +"a 2D mesh and a 1D mesh, which defines the vector of extrusion and the " +"number of steps. The both meshes must be in 3D space. To extrude a 2D " +"mesh *m2* along a 1D mesh *m1*, call" +msgstr "" + +# 4f1da84836374e3aa73a2187ab679566 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:389 +msgid "The last argument is a policy defining the type of extrusion:" +msgstr "" + +# e8a4d82d1c734e328efb9471525fd10f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:391 +msgid "" +"0 means \"translation only\": the cells of the 1D mesh represent the " +"vectors along which the 2D mesh will be repeated to build each level." +msgstr "" + +# 2bfacb219712433ebc79f4e1c17c78eb +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:392 +msgid "" +"1 means \"translation and rotation\": the translation is done as above. " +"For each level, an arc of circle is fitted on the 3 preceding points of " +"the 1D mesh. The center of the arc is the center of rotation for each " +"level, the rotation is done along an axis normal to the plane containing " +"the arc, and finally the angle of rotation is defined by the first two " +"points on the arc." +msgstr "" + +# 37bf817efcb04ffb8fd98354b7d6a3f3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:398 +msgid "" +"A 2D mesh and an 1D mesh (to the left), an extrusion mesh built with " +"policy=0 (in the middle) and with policy=1 (to the right)" +msgstr "" + +# 408fcfdb7c4040c6941eb2e6655f82ef +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:401 +msgid "" +"In order to aggregate several meshes of the same dimension into one mesh," +" call" +msgstr "" + +# 76f1412967b84d72a5eb1d609b446c05 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:407 +msgid "To transform a linear mesh into a quadratic one, call" +msgstr "" + +# be7ff7ac30bd42c5a089720cff825303 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:413 +msgid "A parameter of convertLinearCellsToQuadratic provides type of conversion:" +msgstr "" + +# 62e7b1ee31e7420b8b3595188e08af71 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:415 +msgid "0 creates cells of simple quadratic types, e.g. NORM_TRI6 and NORM_QUAD8" +msgstr "" + +# ce879de72e6b443b92ca65ed6ed33094 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:416 +msgid "1 creates cells of complex quadratic types, e.g. NORM_TRI7 and NORM_QUAD9" +msgstr "" + +# bad055d04747446a87eb3f23a849ea6f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:421 +msgid "" +"Result quadratic 2D meshes converted with typeOfConversion=0 (to the " +"left) and typeOfConversion=1 (to the right)" +msgstr "" + +# db113d3d38e54939b557d6cf56e674f5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:423 +msgid "It's common to deduce skin of a mesh *m1*:" +msgstr "" + +# 3d4ec07a1ed44ba9946e6dd6a365a88f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:429 +msgid "*skin* and *m1* share the same coordinate array." +msgstr "" + +# fa0441823ce3400283377bc1142eb982 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:434 +msgid "A 2D mesh (to the left) and its skin (to the right)" +msgstr "" + +# 936f7ba80493444fb116740386d10873 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:438 +msgid "In order to get a 1D mesh from a given 2D or 3D mesh, call" +msgstr "" + +# e66ce51e7a494f28bb576511d07a0c1d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:444 +msgid "" +"In addition to *mesh1d*, explodeIntoEdges method returns four arrays " +"describing descending connectivity and reverse descending connectivity in" +" indirect-indexing_ format. *d* and *di* describe the descending " +"connectivity, i.e. enumerate cells of *mesh1d* bounding each cell of " +"*mesh3d*. *r* and *ri* describe the reverse descending connectivity, i.e." +" enumerate cells of *mesh3d* bounded by each cell of *mesh1d*." +msgstr "" + +# 114011e35261476b81abc3b7b5133de7 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:451 +msgid "" +"A 2D mesh (to the left) and a 1D mesh returned by explodeIntoEdges (to " +"the right)" +msgstr "" + +# 3cbd0097f88540c88ee0a3509715b185 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:453 +msgid "" +"There is also a method similar to explodeIntoEdges_ which returns a mesh " +"of one less dimensions than a given mesh, i.e. 3D->2D or 2D->1D:" +msgstr "" + +# cec04dc5eb174a27b2d5b1387e425121 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:459 +msgid "" +"If a mesh is non-conformal, medcoupling can make it conformal. " +"conformize2D method is to conformize a 2D mesh in 2D space, conformize3D " +"is to conformize a 3D mesh in 3D space:" +msgstr "" + +# 7540d0c02b1c4ae19e93f5c1f74cc0ac +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:465 +msgid "" +"*changedCells* is an array of ids of changed cells. The changed cells " +"become polygons in 2D and polyhedrons in 3D. *eps* is the relative error " +"to detect merged edges." +msgstr "" + +# ae9c14efacaa422ba1678fec271fce3f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:467 +msgid "You can duplicate some nodes in a mesh by calling" +msgstr "" + +# fba2db54d418445587cd81be1df9d1b8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:473 +msgid "" +"This will create new nodes at locations of nodes #3 and #4, the new nodes" +" will replace nodes #3 and #4 within cells so that the nodes #3 and #4 " +"will become orphan." +msgstr "" + +# 8c9fee34bea74ad3a18d33f92085bc1a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:475 +msgid "Inversly it is possible to merges nodes equal within a given precision:" +msgstr "" + +# 1204d037405e4dc8b910cc4dda1b4b50 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:481 +msgid "" +"If your 2D mesh in 3D space includes incorrectly oriented cells, you can " +"fix their orientation by calling:" +msgstr "" + +# 06ebadb9784a437da89a8ef36cb9cf45 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:487 +msgid "" +"The last argument if True, only polygons are checked, else, all cells are" +" checked." +msgstr "" + +# f983944be9ef41c6a35e2d220966d19b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:492 +msgid "" +"A mesh before applying orientCorrectly2DCells (to the left) and after (to" +" the right)" +msgstr "" + +# 7bfa2f0def7841078cff03023f328edd +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:494 +msgid "" +"If your mesh includes incorrectly oriented polyhedra, the following " +"method can help to fix your mesh:" +msgstr "" + +# 833104bfec2b4dc49e90423cdfad3fdc +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:500 +msgid "" +"If *m1d* is a 1D line mesh, you can ensure consecutive order of its " +"segments by calling" +msgstr "" + +# 41c0d95f0ec043e189edabd63af48aa3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:509 +msgid "1D mesh before and after renumbering" +msgstr "" + +# 7c6126f3e2364deeb90321d5fcb5f368 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:511 +msgid "" +"orderConsecutiveCells1D method returns a permutation map in new-to-old_ " +"mode but renumberCells method requires the map in old-to-new_ mode, hence" +" we use invertArrayN2O2O2N method to fit to that requirement." +msgstr "" + +# dc9a64e66f73459a834f9c4e7a4dd87b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:519 +msgid "" +"To arrange cells to comply with MED format requirement you can call " +"either of the following methods:" +msgstr "" + +# ed1a5d48791742c0873ccbd0bc598c55 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:526 +msgid "" +"It is also possible to rearrange, and even remove, nodes by calling " +"renumberNodes:" +msgstr "" + +# 754edb49fbf44278abeb714d0b84b58c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:532 +msgid "" +"The code above rearranges a mesh with 4 nodes so that old node #0 " +"becomes #2, old node #1 remains #1, old node #2 becomes #0, old node #3 " +"is removed. The last argument 3 means that number of nodes becomes 3." +msgstr "" + +# d2ffd70e9a1e418bb891bc73f9f537f9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:537 +msgid "" +"The mesh before renumberNodes (to the left) and after (to the right). " +"Shown Ids are a unit more than Ids in medcoupling" +msgstr "" + +# d0f1ae55b5f14f95a2bc771ab9e1f361 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:540 +msgid "Operations on fields" +msgstr "" + +# df5f52750c4640928b649f5834a54ca5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:542 +msgid "Integral of a *field* can be computed by calling" +msgstr "" + +# 110625252a644bf7b94503e54ed48d30 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:548 +msgid "" +"The first call returns a list of integrals of all components. The second," +" returns integral of 0-th component. True means that abs is applied to " +"support size used for computing the integral." +msgstr "" + +# 223abe29aa81459783bc324283294cee +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:550 +msgid "" +"deviator method returns the stress deviator tensor field of a stress " +"tensor *field* (with 6 components):" +msgstr "" + +# fb6cd2a195b04ded862302ccd288416d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_analysis.rst:556 +msgid "To get value of a *field* at certain *points* call" +msgstr "" + diff --git a/doc/user/locale/fr/LC_MESSAGES/data_conversion.po b/doc/user/locale/fr/LC_MESSAGES/data_conversion.po new file mode 100644 index 000000000..efb06d0ed --- /dev/null +++ b/doc/user/locale/fr/LC_MESSAGES/data_conversion.po @@ -0,0 +1,476 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015-2017, Geay, Bruneton +# This file is distributed under the same license as the MEDCoupling User's +# Guide package. +# FIRST AUTHOR , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: MEDCoupling User's Guide 8.4.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-14 14:14+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.0\n" + +# ec21659471944b0e9d49afe7c0ef3d3c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:2 +msgid "Data conversion" +msgstr "" + +# ed2e929565c142b7879b359b50f9189e +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:4 +msgid "" +"medcoupling includes MEDCouplingRemapper object that allows given a " +"source field and a target mesh to produce a field lying on target mesh." +msgstr "" + +# 9712a29c4da7401caa4e08467813f8f5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:8 +msgid "" +"MEDCouplingRemapper goal is to compute a projection by minimizing " +"diffusive effects and conserve at most the magnitude of key variables." +msgstr "" + +# c88d0a7d25c4451a85bbfe148faf1b7f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:12 +msgid "" +"The MEDCouplingRemapper object computes a remap function that allows to " +"transform source field into target field." +msgstr "" + +# 75f649f765a740d782aa12f2be1a387d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:15 +msgid "The function is represented using sparse matrix given:" +msgstr "" + +# a6f66dceae4547cdb5d56e73fb19bb99 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:17 +msgid "a source mesh" +msgstr "" + +# bdb022e70a8a475a9b7fc785053e9984 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:18 +msgid "a target mesh" +msgstr "" + +# d1ede143dd5b40adb2b037344eaf7835 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:19 +msgid "" +"a source spatial discretization (\"P0\" means ON_CELLS and \"P1\" means " +"ON_NODES)" +msgstr "" + +# 94e2aa215a6d491985a0f8549615184e +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:20 +msgid "a target spatial discretization" +msgstr "" + +# 0b5a5f6f0e5c4165a75072f2311e7dd4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:22 +msgid "Apply a projection is then equivalent to apply matrix vector multiply." +msgstr "" + +# d284de6c2fae4b67bcd54d7448abc1e6 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:25 +msgid "" +"As projection requires mathematically to compute for every cell in target" +" mesh, the contribution relative to each of cell in source mesh. So " +"projection is computation-intensive task." +msgstr "" + +# e717e6336a49409da6f596c3dac59ab9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:29 +msgid "" +"To optimize time spent by MEDCouplingRemapper, it implements a fast " +"algorithm that select coarsely the pairs of cells that have a chance to " +"be in interaction each other. It allows to drop from O(n^2) to O(n) the " +"complexity of algorithm. The algorithm is based on rectilinear bounding " +"boxes of cells along axis. 2 cells in interaction have their respective " +"bounding boxes in interaction." +msgstr "" + +# f58c6a80d4c049cb821a515e102ff93f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:37 +msgid "" +"Unfortunately it works well mathematically but in the real life " +"projections especially when spacedim and meshdim are not the same it can " +"be harder to set." +msgstr "" + +# 2553d23221a04d0e8eb3c14c4df64c3d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:44 +msgid "" +"Projection cells/cells with meshes having same mesh dimension/space " +"dimension" +msgstr "" + +# 433ab94995c741a7bea716229f3b05a4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:46 +msgid "" +"Let us create meshes for sample projection: a source mesh consisting of " +"two quadrangles and a target mesh consisting of a triangle:" +msgstr "" + +# 4f5be11efd024c11977ac51631af0683 +# e6fee0a106d645aab263e5b03d068f90 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:51 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:115 +msgid "Two source quadrangles in blue and a target triangle in red" +msgstr "" + +# 1c90fbc8ccb94011a428c94e6a8205f0 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:57 +msgid "Now perform projection:" +msgstr "" + +# 17d1824812b440ff98c3456107b49b68 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:63 +msgid "" +"Here \"P0P0\" specifies spatial discretization of both source and target " +"field. \"P0\" is for cell discretization (ON_CELLS). \"P1\" is for node " +"discretization (ON_NODES). For example, \"P0P1\" means from a source cell" +" field (lying on a source mesh) to a target node field (lying on a target" +" mesh)." +msgstr "" + +# 53fbf0ca08de49039d3d01fd7e01538e +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:65 +msgid "" +"Remapper *rem* has just performed intersection of *src* and *tgt* meshes." +" Result of intersection is stored in a matrix which is returned by " +"getCrudeMatrix method. Each element of the matrix is size of intersection" +" of two cells i and j of the source and target meshes correspondingly." +msgstr "" + +# a2a200d8dc3a491493cffae6bed1f8ba +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:67 +msgid "" +"Generally the matrix is sparse. To reduce memory usage, the space matrix " +"is represented by an array whose i-th element is a map storing indices " +"and intersection sizes of source cells intersecting i-th target cell." +msgstr "" + +# 816b2803bec54c0db5aada90c45e28d8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:69 +msgid "Here is a sample sparse matrix:" +msgstr "" + +# 4b9459bebb64493f82b0d2a6ca4bafd5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:81 +msgid "and a corresponding array, which stores only non-zero matrix elements:" +msgstr "" + +# 4aa945440c524c0e97aa8b1c35fa2c45 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:87 +msgid "" +"Now we create a field on all cells of *src* mesh and call " +"rem.transferField() to transfer the field to the cells of *tgt* mesh" +msgstr "" + +# 61927b7c70104e97b2ffb36e9ec20b00 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:93 +msgid "" +"The last argument -1 is a default value that will be assigned in *trgF* " +"to each entity of *tgt* mesh that is not intercepted by any entity of " +"*src* mesh." +msgstr "" + +# 02bdfa1173af4fb697d93e8937a74eb3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:95 +msgid "" +"It is crucial to setNature() of the field by which an adequate " +"interpolation formula is chosen. The field nature is expressed by one of " +"the following values: ExtensiveMaximum, IntensiveMaximum, " +"ExtensiveConservation, IntensiveConservation." +msgstr "" + +# 6fb68a3e07534e89a7478d41d6b162f9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:97 +msgid "" +"The field is represented by a vector with a discrete value on each cell. " +"This value can represent either" +msgstr "" + +# 658affd5f2754c2eb1d4aa0d6eb387b3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:99 +msgid "" +"an average value of the field in the cell (average density, velocity or " +"temperature in the cell) in which case the representation is said to be " +"**intensive**," +msgstr "" + +# 0b33b21dc7fb4f8b9bd0ad9d00fc89d9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:100 +msgid "" +"an integrated value over the cell (total mass, power of the cell) in " +"which case the representation is said to be **extensive**." +msgstr "" + +# 59934de0ad7145f48ce7f8191b2c67f1 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:102 +msgid "" +"In the case where the source and target meshes are not fully overlapping," +" it is important to make a correct choice between Maximum and " +"Conservation." +msgstr "" + +# c84b543196a14f79a177991119372992 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:104 +msgid "" +"**Conservation** means that the interpolation algorithm preserves the " +"integral of the field over a domain." +msgstr "" + +# a6306bd8f1cd4a269cc41e0721ea0d93 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:105 +msgid "" +"**Maximum** means that the field values resulting from the interpolation " +"remain between the upper and lower bounds of the original field." +msgstr "" + +# 946c50ad6d5c41b39646f7319d6d7fc4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:108 +msgid "" +"Projection cells/nodes nodes/cells nodes/nodes with meshes having same " +"mesh dimension/space dimension" +msgstr "" + +# d7046415343a4c9ab79e4b83b5b6ac14 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:110 +msgid "" +"Suppose we have the same source and target meshes as in the " +":ref:`previous chapter `. I.e. the source mesh consists " +"of two quadrangles and the target mesh consists of a triangle." +msgstr "" + +# 58ce1c66df2d4d0a93b7a98862c4aa23 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:117 +msgid "" +"The source field is also on cells but the target field is on **nodes** of" +" target mesh. In such a case we do the following:" +msgstr "" + +# e58671bc77eb4b56aaf5de47cbbf21a3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:123 +msgid "" +"Here \"P0P1\" specifies support of the source (P0=ON_CELLS) and the " +"target (P1=ON_NODES) fields. The computed martix is::" +msgstr "" + +# 3406399c8f704734a0413ac0d5b05d38 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:127 +msgid "" +"The result matrix contains values for each of the three nodes of the " +"target mesh. In order to be able to compute these values by means of " +"intersection of cells, an algorithm constructs an auxiliary target mesh. " +"This auxiliary mesh is a dual mesh of the actual target mesh, hence it " +"includes cells corresponding to each actual target node." +msgstr "" + +# 5321e1a5876e4fd1a5e5ed587042c258 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:132 +msgid "" +"The target mesh used for projection is a dual one of the actual target " +"mesh" +msgstr "" + +# a1c99f08bd1b4500ad461442d4da0e7c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:134 +msgid "" +"If the case is reverse, i.e. the source field is on nodes and the target " +"one should be on cells, we change \"P0P1\" to \"P1P0\":" +msgstr "" + +# 8733c1f80be0426193c6c4c603906dc9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:140 +msgid "The computed martix is::" +msgstr "" + +# 2190f951252445a09dd3f58aa67245d4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:144 +msgid "" +"In the same way as in \"P0P1\" case, an auxiliary dual mesh is internally" +" constructed for a mesh supporting a field on nodes (the source field in " +"our case). But since the source cells are not simplexes, simplexization " +"of quadrangles is perfrormed on the fly to be able to construct the dual " +"mesh. Cell #0 (0,3,4,1) is split into (0,3,4) and (0,4,1)" +msgstr "" + +# 1db2464216be42b8806857b55695c1cc +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:149 +msgid "" +"The source mesh used for projection is a dual one of simplexized actual " +"source mesh" +msgstr "" + +# cda2159f8b074b8e9cf862e76b599722 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:155 +msgid "" +"in present implementation of Remapper, the projection of fields on nodes " +"lying on quadratic meshes is not available. If you are in this case you " +"have 2 choices :|br| 1) you accept to lose precision by converting your " +"mesh (MEDCouplingUMesh.convertLinearCellsToQuadratic) |br| 2) you " +"subdivide your mesh." +msgstr "" + +# 6e73dd503f6e4a6685870b6ebb562b19 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:160 +msgid "Projection cell/cell when meshdim != spacedim" +msgstr "" + +# 27f4c2c6fee346aa909952f1164128cd +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:162 +msgid "" +"When meshdim is not equal to spacedim some additional important " +"parameters should be considered." +msgstr "" + +# 4ba851aa30a54ebf9b1a6839de105bfe +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:164 +msgid "Consider a simple case with spacedim=3 and meshdim=2 where :" +msgstr "" + +# 9a82b0079f0341278719826874f6c4fa +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:166 +msgid "source mesh contains one triangle cell [0.,0.,0.], [1,0,0], [0,1,0]" +msgstr "" + +# cc5766d4d7834f1aaef59168f5ddc0eb +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:167 +msgid "" +"target mesh also contains one triange cell [0.,0.,0.], [1,0,0], [0,1,0], " +"which coincides with the source triangle." +msgstr "" + +# ac2d70338d034f17b0dcc25790e5d315 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:169 +msgid "" +"Only \"P0P0\" projection (ON_CELLS->ON_CELLS) will be considered here but" +" all elements presented here are applicable for other spatial " +"discretizations projections." +msgstr "" + +# 5f0366eb5c574524bade568306c0ebc3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:175 +msgid "A remapper returns the following correct matrix::" +msgstr "" + +# dfe61422dfe345fb8dd20a124de466e6 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:179 +msgid "where 0.5 is equal to area of the source (or target) triangle." +msgstr "" + +# d777fb098267490ba77b702aeb8dca86 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:181 +msgid "" +"Let us see what the remapper will return if the meshes are not " +"overlapping. To this end we translate the source mesh along its normal " +"by a small distance (1e-3):" +msgstr "" + +# c9162ed4c71c457a81f2ae8ad62e8763 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:187 +msgid "" +"The remapper returns the following matrix, which means that it have not " +"found any intersection of the meshes::" +msgstr "" + +# f568cb6e2df04afdada3bc9395326b03 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:191 +msgid "" +"This happens because bounding boxes of cells used to detect possibly " +"intersecting cells do not intersect. In order to get a correct result of " +"intersection we can increase those bounding boxes. The remapper provides " +"two ways to do that:" +msgstr "" + +# 003ff0073d9d47cca9444f4f2cf39bd3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:193 +msgid "" +"rem.setBoundingBoxAdjustmentAbs( *thickness* ) expands a bounding box by " +"*thickness*." +msgstr "" + +# 878448da6eea484193da5b41895b7b87 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:194 +msgid "" +"rem.setBoundingBoxAdjustment( *factor* ) expands a bounding box by " +"thickness computed by multiplying a maximal bounding box size by " +"*factor*." +msgstr "" + +# 2ee8d94a11a1486f9340a9a77573a669 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:199 +msgid "" +"If source and target meshes do not overlap we can increase their bounding" +" boxes to help remapper to detect intersecting cells" +msgstr "" + +# 0255d7eac2e34e20bd63677fad79745f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:205 +msgid "With bounding box tuning we obtain the correct result matrix::" +msgstr "" + +# 0d3d2f4c186248c4a33d7de79fab9f72 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:209 +msgid "" +"The bounding box tuning has a disadvantage in the case where a cell has " +"large angle with either of planes OXY, OYZ or OXZ. In such a case cells " +"that are rather far one from another can be detected as possibly " +"intersecting since their bounding boxes are too large. " +"setMaxDistance3DSurfIntersect method helps avoiding excess intersections." +" If a distance between fast barycenter of target cell and medium source " +"plane is more than the value specified via setMaxDistance3DSurfIntersect " +"then cell intersection is not performed." +msgstr "" + +# f16cf58b64ea4cdcb3570ea3dd8cf3e2 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:214 +msgid "" +"If the tuned bounding box is too large we can use " +"setMaxDistance3DSurfIntersect to exclude unnecessary intersections" +msgstr "" + +# 7f4338f23d1a45ddba3581a51f348acf +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:216 +msgid "" +"Let us rotate the source mesh by pi/4 angle around Y axis. The result " +"matrix is" +msgstr "" + +# 11af138e8ebe4fa4b31ef3eb6b4ecaa9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:226 +msgid "" +"If we use setMaxDistance3DSurfIntersect, the result matrix shows that no " +"intersection found:" +msgstr "" + +# 2407d4c239fd4385b703695cbf774dbd +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:235 +msgid "" +"Another function useful to avoid unnecessary intersection is " +"setMinDotBtwPlane3DSurfIntersect. It tells the remapper not to intersect " +"cells whose normals are too much different. " +"setMinDotBtwPlane3DSurfIntersect specifies minimal dot product of unitary" +" normal vectors of a source and target cells." +msgstr "" + +# 090de9cdb96e4ac4811be5c2d31aa4d9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:237 +msgid "" +"Let us switch off setMaxDistance3DSurfIntersect by passing a negative " +"value. And use setMinDotBtwPlane3DSurfIntersect to avoid intersecting " +"cells that has 45 degrees angle between their normals in our case." +msgstr "" + +# 7347cdbff8ff4adda77b7da33f919e1d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_conversion.rst:243 +msgid "Result matrix is::" +msgstr "" + diff --git a/doc/user/locale/fr/LC_MESSAGES/data_movement.po b/doc/user/locale/fr/LC_MESSAGES/data_movement.po new file mode 100644 index 000000000..ff33d1725 --- /dev/null +++ b/doc/user/locale/fr/LC_MESSAGES/data_movement.po @@ -0,0 +1,823 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015-2017, Geay, Bruneton +# This file is distributed under the same license as the MEDCoupling User's +# Guide package. +# FIRST AUTHOR , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: MEDCoupling User's Guide 8.4.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-14 15:16+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.0\n" + +# e67d9ce3cc234d94bd461f009d0af087 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:2 +msgid "Data movement (mesh/field construction)" +msgstr "" + +# 246b1381bdc74c1589489d328d3ab114 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:5 +msgid "Read Mesh from file" +msgstr "" + +# 9a15bc029c0d481d97fd0a8d21f0309e +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:7 +msgid "To read a mesh from a MED file simply invoke" +msgstr "" + +# f5ffa1c362e64fa49787851152033b56 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:13 +msgid "" +"If the file contains more than one mesh, the previous call will return " +"the first one." +msgstr "" + +# 4a574d168619414db44b5a8c6fb62f76 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:16 +msgid "You can access to a precise mesh by doing" +msgstr "" + +# d3ff361801e9401ca42842a19c22eda7 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:23 +msgid "Read field from file" +msgstr "" + +# 718d2e8817264ca497b2fd916f95dcf3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:29 +msgid "" +"This command will succeed if there is exactly one field in \"file.med\" " +"and only one time step attached to it." +msgstr "" + +# 9f704e58244c4b8abe77f9226190a741 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:32 +msgid "" +"If there are more than one field in \"file.med\" you are expected to " +"specify the field name." +msgstr "" + +# 25ef114af80f4d44841d35ad571872df +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:35 +msgid "" +"To know all fields in \"file.med\" either you read exception thrown or " +"you can invoke" +msgstr "" + +# 2457598c17f4485cb2217da21603c4d5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:41 +msgid "When you have the fieldName you can safely invoke." +msgstr "" + +# ee829a4f141f4c16b74308c7b1b8fe42 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:47 +msgid "" +"This command will succeed if there are exactly one time step attached on " +"it. If no you are expected to specify the time step attached on it." +msgstr "" + +# 02fc906d66bb4dd09ffea63223b9ca7a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:51 +msgid "A time step is identified by two piece of information :" +msgstr "" + +# f6e2d1ffb7c0458cacfa85b46b16a7aa +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:53 +msgid "pair of integers specifying without ambiguity a key for access" +msgstr "" + +# 3f6c1edd91e541679523a11e69a7d8d7 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:54 +msgid "floating point (physical time step)" +msgstr "" + +# b784a46f06cb4ab8aac023fe15c9dfd8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:56 +msgid "To retrieve list of time step of a field invoke" +msgstr "" + +# 52c037c232ac460dba0967fda54b3e6b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:62 +msgid "" +"This method returns a list of triplet. The first 2 elements of triplets " +"is pair of integers of time step and the last element in the triplet is " +"the physical time step." +msgstr "" + +# c757a055cb5e45cda9734d93e651e7dd +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:66 +msgid "" +"To read a field \"Field1\" at time step defined by pair \"(ts0,ts1)\" you" +" can invoke" +msgstr "" + +# a6a36d3dc2fc4233ae67506c5ed796a6 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:73 +msgid "" +"If you do not succeed reading field in \"file.med\" using this method it " +"means that your MED file is complex and requires more information to be " +"extracted. :ref:`Go to advanced reading`." +msgstr "" + +# 01e891823a4d40f3b2c94b4cfaa243e8 +# 675e4529dc4e40a7be3851306307481b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:77 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:138 +msgid "Remark" +msgstr "" + +# e036a2180b334d45886d30a81253351d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:79 +msgid "" +"the method is concise but by calling this method several times it leads " +"to a several mesh loads." +msgstr "" + +# 31a1c35e46dd46eb8e895e973e5000ba +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:86 +msgid "Write mesh into file" +msgstr "" + +# f2e6f62f07be4adf8d86ca0f48eb8526 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:88 +msgid "" +"MED file format expects a mesh sorted by geometric type. You are " +"responsible to reorder, if needed, cells to match MED file format " +"requirements." +msgstr "" + +# f0c5a5ef4fc4423a9122ed5701189c79 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:92 +msgid "This responsability is let to the end user to avoid misrenumbering effect." +msgstr "" + +# 23f92f8c6e204fceb066853679784c4d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:94 +msgid "You can check this by invoking:" +msgstr "" + +# f9103a0494784668ba5dbd5c847d2ac2 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:100 +msgid "" +"To reorder cells you are encouraged to read :ref:`this " +"`." +msgstr "" + +# cab03f12ca224311a7ec5225f10b5647 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:102 +msgid "If *m* is well numbered, you can dump it into a file by doing :" +msgstr "" + +# 8e5d6b8ed2dd43b087a4db3f25573bf5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:108 +msgid "" +"The last element specifies the behavior in case if \"file2.med\" would " +"already exist. True means, scratch it and write it from scratch. False " +"means do not scratch try to append it." +msgstr "" + +# 78119970b7fe47d5a75bc19253a37cce +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:114 +msgid "Write field into file" +msgstr "" + +# 767fb41d2862453c821cbc3c970993eb +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:116 +msgid "" +"You are expected to have a field *f* with a mesh :ref:`correctly " +"numbered.`" +msgstr "" + +# e568773de7d94f4f9c37a8776b71f48c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:118 +msgid "" +"If *f* is a valid MEDCouplingFieldDouble you can dump it into a MED file " +"by simply :" +msgstr "" + +# 306adfa291374198964e06b048cb4a82 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:124 +msgid "" +"The last element specifies the behavior in case if \"file.med\" would " +"already exist. The same meaning than for :ref:`writing " +"mesh.`" +msgstr "" + +# 0a6711f916a6461fa9ed128e83c9da82 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:127 +msgid "The typical usecase is to store a multi time step field." +msgstr "" + +# 02ecd9a8bf154daeb156ae7154e6ddbe +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:129 +msgid "" +"To do that, let's consider that *fs* store a list of " +"MEDCouplingFieldDouble with at least one element in it." +msgstr "" + +# 33c0295741c74641a3a49060589f4651 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:132 +msgid "All meshes of elements in *fs* are expected to be the same" +msgstr "" + +# 554f89cecad4468c8e3f6eef6b512d3b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:140 +msgid "f.getTime()[1:3] returns the pair of integer that specifies the time step." +msgstr "" + +# a3fe816f844e4c369a117ded08e291e9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:142 +msgid "" +"f.getTime()[1:3] should be different each other. If two elements in *fs* " +"have the same pair of integer time step key, the second one will take the" +" place of the first !" +msgstr "" + +# 55d609e9ae3847f48610ffc4f94a5d0f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:147 +msgid "Create an array from scratch" +msgstr "" + +# e3c5d7efc65b4d48a2ec82a70b271b19 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:149 +msgid "" +"There are several simple ways to create a medcoupling array from a Python" +" list." +msgstr "" + +# 025a57241b3a4c38a61b40e830245023 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:151 +msgid "" +"The following call creates an array of double values consisting of 3 " +"tuples with 2 components:" +msgstr "" + +# be02aa243f90479292ef9bd302eccfdc +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:157 +msgid "The next call creates an array equivalent to one create above:" +msgstr "" + +# 73d3fe22f0824607af7f91fec683da6e +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:163 +msgid "" +"The call below creates an array holding the same but differently arranged" +" values: 2 tuples with 3 components:" +msgstr "" + +# 11e34a21bd1747e3857c372c35b237ca +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:169 +msgid "" +"You can change number of components in *d* so that it holds 3 tuples with" +" 2 components again:" +msgstr "" + +# fa02e23c375e488d86d35aaaa3cecb57 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:175 +msgid "" +"Arrays of different types (DataArrayInt, DataArrayFloat) can be created " +"in the same way as DataArrayDouble:" +msgstr "" + +# 207899b627574f3e9e7d943501f0cd8d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:181 +msgid "" +"A medcoupling array can be created from a numpy array and can be " +"transformed to a numpy array:" +msgstr "" + +# 443ed2d9b51a4678ad1960f4c9fe800a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:190 +msgid "Create an unstructured mesh from scratch" +msgstr "" + +# 1ce78fc586044bfc97257484d6c9b46d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:193 +msgid "MEDCouplingUMesh" +msgstr "" + +# b61ac138c6a642709e6c29b98a76f155 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:195 +msgid "" +"MEDCouplingUMesh class represents a general case unstructured mesh. Data " +"of MEDCouplingUMesh is defined in several steps." +msgstr "" + +# 7dcfe12d791a4c8899e76a216a049002 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:197 +msgid "" +"Firstly define basic mesh data in full interlace mode for coordinates and" +" nodal connectivity cell per cell." +msgstr "" + +# eb9e63f3834640af8b37923607838ca1 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:203 +msgid "" +"Then create MEDCouplingUMesh instance giving its mesh dimension (2 here) " +"and a name." +msgstr "" + +# 532968ee9b9547f6a294c062feab3189 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:209 +msgid "Then add cells to the mesh. This step includes" +msgstr "" + +# 81309f2dbe124a53a5124f59ee8cc27a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:211 +msgid "" +"giving an upper bound of the number of cells to be inserted into the " +"unstructured mesh." +msgstr "" + +# fbed0fdd23e7464a9e9aa51433f1c24b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:212 +msgid "" +"entering nodal connectivity of all cells, cell per cell using " +"MEDCouplingUMesh.insertNextCell method." +msgstr "" + +# df2e3d1dac1449f4b3a2bfd3a85947c0 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:213 +msgid "" +"compacting connectivity arrays by calling " +"MEDCouplingUMesh.finishInsertingCells method." +msgstr "" + +# 7cb26b02e4784fe388cef5ff77193a89 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:219 +msgid "" +"As the connectivity of the mesh has been defined, let's set the " +"coordinates using array *coords* defined above." +msgstr "" + +# 8992e272bd524909a73dfdbcb3e7e49d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:225 +msgid "Now the mesh is usable. To assure this, call" +msgstr "" + +# b897f62298b84881add9b74270f74a8d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:232 +msgid "MEDCoupling1SGTUMesh" +msgstr "" + +# 2ef0d99a6cae408bbbcf9f7559142a34 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:234 +msgid "" +"MEDCoupling1SGTUMesh class represents an unstructured mesh composed of " +"cells of same geometric type. It is more optimal due to this simplicity." +msgstr "" + +# b61bfdac872240639deca3fb8b96c06f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:236 +msgid "" +"Basically a MEDCoupling1SGTUMesh is defined in the same way as " +"MEDCouplingUMesh. A difference is that the geometric type of cells is " +"specified at construction, and not specified later e.g. in insertNextCell" +" method:" +msgstr "" + +# 29eb44ba9ddc4303aeac0a94e201d3b5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:243 +msgid "MEDCoupling1DGTUMesh" +msgstr "" + +# a7d82f09f4524d6ea9b600b27d662ea2 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:245 +msgid "" +"MEDCoupling1DGTUMesh also represents an unstructured mesh composed of " +"cells of same geometric type but it is specialized for cell of " +"\"dynamic\" geometric type only: NORM_POLYHED and NORM_POLYG." +msgstr "" + +# f0474e64bf8f4ba5b1e281574a7629e4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:251 +msgid "" +"When connectivity of a polyhedron is defined, facets are separated one " +"from another by -1." +msgstr "" + +# 2b433ca7fdd344d1a9f71c3f777229db +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:254 +msgid "Create a cartesian mesh from scratch" +msgstr "" + +# bc7bb0da009449ed8d2eb44d757ae017 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:256 +msgid "" +"We are going to build a 2D cartesian mesh, constituted from 9 nodes along" +" X axis, and 7 nodes along Y axis." +msgstr "" + +# 55bb3330e0524684b808fcc8cba94be3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:258 +msgid "" +"Firstly define for each direction the discretization and build a " +"DataArrayDouble on the corresponding direction." +msgstr "" + +# 73f083039c6e4d36850c69c0851e9905 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:264 +msgid "" +"Then create MEDCoupling.MEDCouplingCMesh instance giving the 2 instances " +"of DataArrayDouble defined above." +msgstr "" + +# 65bbb71b96d342dab722a134b31ec48c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:270 +msgid "The mesh is now usable." +msgstr "" + +# 0d3227bbd7b3472fa946abb75fcc2cc5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:275 +msgid "A cartesian mesh created by the code above" +msgstr "" + +# 45976ca6e83848519e2d9114f984f6c0 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:278 +msgid "Create a curvelinear mesh from scratch" +msgstr "" + +# 704877cdb2a74695b035ea75fb585974 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:280 +msgid "" +"First we create a curvelinear mesh and define its structure, for instance" +" a 2-dimensional mesh with 2 nodes in one direction and 3 nodes in the " +"other direction:" +msgstr "" + +# 243bc72ac9574d9b9a72d5e629fcfdb9 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:286 +msgid "Then define coordinates of 6 nodes in 2D space:" +msgstr "" + +# f063b4553e6a4736ba992d7c439a2d2d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:292 +msgid "The mesh is now usable. It's a good habit to assure this:" +msgstr "" + +# 85bcab7c30f54290a482b80d23ca078f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:301 +msgid "A curvelinear mesh created by the code above" +msgstr "" + +# 47997d79fac342f3bfc9c89322f16d86 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:306 +msgid "Create a field on cell from scratch" +msgstr "" + +# 972be5585f304182bdc25607e9d0494d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:308 +msgid "Assume we already have a mesh. We create a field on all cells of the mesh." +msgstr "" + +# d6a7e2c29eb9495693cfd614d380c02c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:314 +msgid "" +"ONE_TIME indicates that the field data relates to a single time step. Now" +" define this time moment." +msgstr "" + +# 969154aa76ba47d992b16d0dbc9ec04a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:320 +msgid "Then define field values:" +msgstr "" + +# df16450afc23486b8f17e7c73092da38 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:328 +msgid "Create a field on node from scratch" +msgstr "" + +# 2c125d2673414ce1a82940ad478b7874 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:330 +msgid "" +"Assume we already have a mesh. We create a field on all nodes of the " +"mesh. The procedure is same as for a :ref:`field on cells " +"` except two points:" +msgstr "" + +# f0efbf433429419894c7eba379b4330e +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:332 +msgid "Spatial discretization in the field constructor is ON_NODES" +msgstr "" + +# aed2f45d675e435a8b1db3da914a6c36 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:333 +msgid "Number of tuples in an array of values is equal to mesh.getNumberOfNodes()" +msgstr "" + +# 000eb0a00f564cbe97af514a2875bb24 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:341 +msgid "Create a field on Gauss points from scratch" +msgstr "" + +# 63e1b2defbf14395878f64f154102b1b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:343 +msgid "" +"Assume we already have a 2D mesh consisting of triangle and quadrangle " +"cells. We create a field on Gauss points. First, a field is constructed " +"with use of ON_GAUSS_PT and its basic attributes are set:" +msgstr "" + +# e30d7037b93f43a68f910cd38421bc4c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:349 +msgid "" +"Now define localization of Gauss points on cells. In this example, we " +"define two Gauss points on triangle cells and four Gauss points on " +"quadrangle cells. Localization of Gauss points is defined by three lists " +"of float values:" +msgstr "" + +# 461a616a577d4e34b53747d6071e685a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:351 +msgid "Coordinates of nodes of the reference cell." +msgstr "" + +# f822f729a50f435d90cb96ac6e2b8577 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:352 +msgid "Coordinates of Gauss points on the reference cell." +msgstr "" + +# a2b0c36419b14585b82c04cef8a0cf1f +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:353 +msgid "Weights of Gauss points." +msgstr "" + +# 81e839a5effc4993962af0f4d96e7e64 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:359 +msgid "Finally set field values:" +msgstr "" + +# a8c1e116229f4a5f8b8fed19e7adfec8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:366 +msgid "Modify field values" +msgstr "" + +# c27903629cf64a6fbc449c4de31baa7d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:368 +msgid "" +"applyFunc method modifies all tuples of a field at once. It changes both " +"values and number of components, only number of tuples remains the same." +msgstr "" + +# 98bb6f5261034a2896e919c7fe145767 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:370 +msgid "" +"To set value *val* to all tuples of the field *f* and to make it have " +"*nbComp* components, call:" +msgstr "" + +# 6a45b2d83f5e4d558463348c111474d6 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:376 +msgid "" +"It is also possible to compute new values basing on current values. To do" +" so you can specify a function by which a new value will be computed. For" +" more info on supported expressions that can be used in the function, see" +" `expressions supported`_." +msgstr "" + +# 38a8b80a8a29499ca5dae45728856e44 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:380 +msgid "" +"You can use some letters, for example \"x\", \"y\", \"z\" etc., to refer " +"to current component values. For example, to transform a 3D vector field " +"to its magnitude, call:" +msgstr "" + +# 4c2fd1542b3a4c9a9b697ec3566ec9f8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:386 +msgid "" +"This way a value resulting from the function evaluation is assigned to " +"all components." +msgstr "" + +# 5e9ec40bfec34bcdad67c77fb9db2673 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:388 +msgid "" +"But you can have its own expression for each component within one " +"function. For this purpose, there are predefined variable names (IVec, " +"JVec, KVec, LVec etc) each dedicated to a certain component (IVec, to the" +" component #0 etc). A factor of such a variable is added to the " +"corresponding component only." +msgstr "" + +# b9e6c5a3a98a4eb4b93a9c7ef9930942 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:390 +msgid "" +"Using this feature, you can set a magnitude of a 3D vector as the fourth " +"component and swap X and Y components by calling:" +msgstr "" + +# 9ce2da073b674bf2a2be50e54d7aa1ad +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:397 +msgid "Define groups and write mesh using advanced API" +msgstr "" + +# 0e48dc2e04b74ad99b48aca15457b965 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:399 +msgid "" +"To get access to full power of MED file, for example to define groups of " +"cells, it is necessary to use the advanced medcoupling API, namely class " +"MEDFileUMesh_." +msgstr "" + +# 191a7256f4954e3589d812be357e9daf +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:404 +msgid "" +"First of all we populate a MEDFileUMesh with meshes (MEDCouplingUMesh) of" +" different dimensions, if present:" +msgstr "" + +# e010d9d7026849d8bbe6ebd1206717db +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:410 +msgid "" +"Level must be 0 for a mesh of highest dimension, -1 for a mesh of " +"dimension a unit less than highest dimension etc." +msgstr "" + +# a6b6131acf5b42b6bc76a7f59aab758b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:412 +msgid "" +"If cells are not yet sorted by geometric type, we can pass True as the " +"third argument of setMeshAtLevel to make them sorted:" +msgstr "" + +# d6e3a7b83dce4187a312d571f5d48ebe +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:418 +msgid "" +"meshes of different dimension must share the same point coordinate array " +"and have the same name" +msgstr "" + +# 8fa3cd0a641c47f1a83f97ae773b6707 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:420 +msgid "We can change point coordinates as soon as all meshes are added:" +msgstr "" + +# b50b810715f545978ee184d4a1aa7915 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:426 +msgid "To define groups we call, for example:" +msgstr "" + +# 31a7efbc167745c3857fd93b8b4faf77 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:432 +msgid "" +"The first argument of addGroup defines a type of group. 1 stands for " +"nodes. 0,-1,-2 and -3 have the same meaning as the level in " +"setMeshAtLevel method. Note that a name of DataArrayInt defines a group " +"name." +msgstr "" + +# e1e8c2c5448d46e797dd602e7caa9378 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:434 +msgid "It is possible to change name of a group or a family by calling:" +msgstr "" + +# 95f15e21ada1419898b129bdacdd4876 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:440 +msgid "Finally we write all data added to *mm* to a file:" +msgstr "" + +# dc6358ee4c7645f298c82f7973bcf33a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:446 +msgid "" +"The last argument defines behavior if a file exists. 2 means remove. 1 " +"means append; if data with same ID present, an exception is thrown. 0 " +"means overwrite data with same ID; that can lead to a file corruption." +msgstr "" + +# d066000d61554077b0efb67d96339e6a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:451 +msgid "Read/write fields using advanced API" +msgstr "" + +# 1076773b668d4033bc6b04bc321b1391 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:453 +msgid "" +"Having *field* on *mesh* we can write it using MEDFileField1TS_ class, " +"which is a part of advanced medcoupling API, as following:" +msgstr "" + +# dd2c654fce8c4aa3a411dbc410a4bcb4 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:461 +msgid "" +"The last argument of write method defines behavior if a file exists. 2 " +"means remove. 1 means append; if data with same ID present, an exception " +"is thrown. 0 means overwrite data with same ID; that can lead to a file " +"corruption." +msgstr "" + +# 8cebc9ef0a124b8dbd9565b02c312936 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:463 +msgid "" +"If there is a need to write a field lying only on a part of a mesh, the " +"following code gives an example of this:" +msgstr "" + +# 0d38542aea844ae8b1a2ad549f1652be +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:469 +msgid "" +"*profile* defines entities on which *fieldPartial* lies. *level* defines " +"entities the field lies on: 1 stands for nodes, 0 is for entities of " +"dimension equal to the mesh dimension, -1 is for entities of dimension a " +"unit less than the mesh dimension etc." +msgstr "" + +# 65202750b0e24cb68f8a656c29b7feed +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:471 +msgid "MEDFileField1TS also can be used to read a field:" +msgstr "" + +# 3d0b0fbfad73448e96e8b138e9af490b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:477 +msgid "" +"field method can be used if field support is simple: one spatial " +"discretization and one *level*." +msgstr "" + +# 9fb494d8a74d4e6aae22f4c3a0b4167b +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:478 +msgid "" +"getFieldAtLevel method allows to choose spatial discretization and " +"*level*." +msgstr "" + +# 7717ca9ada944decb537036d716a4444 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:479 +msgid "" +"getFieldOnMeshAtLevel method allows to specify spatial discretization, " +"*level* and mesh." +msgstr "" + +# eaf9f44c913f45c68483b2f769dbb14d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:481 +msgid "*level* of a field, if unknown, can be defined by calling:" +msgstr "" + +# e1d1d64e6e8e4159b00bead9c116b797 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:487 +msgid "" +"*maxDim* is the maximal absolute dimension of entities the field lies on." +" *maxRelDims* is a sequence returning the dimensions relative to the " +"maximal absolute one." +msgstr "" + +# 0dc17f012fd74505a297b3c0f4b3974a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:489 +msgid "" +"To read/write fields including several time steps medcoupling provides " +"MEDFileFieldMultiTS_ class. To write all time steps it is necessary just " +"to append them to MEDFileFieldMultiTS:" +msgstr "" + +# 06c612fe69ff4f86abd4620ac21a2732 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_movement.rst:497 +msgid "" +"To read a time step with a known *iteration* and *order* MEDFileField1TS " +"can be used as shown above. To iterate through all time steps, use " +"MEDFileFieldMultiTS as following:" +msgstr "" + +# b61ac138c6a642709e6c29b98a76f155 +#~ msgid "" +#~ msgstr "" + +# b61ac138c6a642709e6c29b98a76f155 +#~ msgid "" +#~ "MEDCouplingUMesh_ class represents a general" +#~ " case unstructured mesh. Data of " +#~ "MEDCouplingUMesh is defined in several " +#~ "steps." +#~ msgstr "" + +# 0e48dc2e04b74ad99b48aca15457b965 +#~ msgid "" +#~ "To get access to full power of " +#~ "MED file, for example to define " +#~ "groups of cells, it is necessary " +#~ "to use the advanced medcoupling API, " +#~ "namely class MEDFileUMesh." +#~ msgstr "" + +# 1076773b668d4033bc6b04bc321b1391 +#~ msgid "" +#~ "Having *field* on *mesh* we can " +#~ "write it using MEDFileField1TS class, " +#~ "which is a part of advanced " +#~ "medcoupling API, as following:" +#~ msgstr "" + +# 0dc17f012fd74505a297b3c0f4b3974a +#~ msgid "" +#~ "To read/write fields including several " +#~ "time steps medcoupling provides " +#~ "MEDFileFieldMultiTS class. To write all " +#~ "time steps it is necessary just to" +#~ " append them to MEDFileFieldMultiTS:" +#~ msgstr "" + diff --git a/doc/user/locale/fr/LC_MESSAGES/data_optimization.po b/doc/user/locale/fr/LC_MESSAGES/data_optimization.po new file mode 100644 index 000000000..1f36355c5 --- /dev/null +++ b/doc/user/locale/fr/LC_MESSAGES/data_optimization.po @@ -0,0 +1,94 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015-2017, Geay, Bruneton +# This file is distributed under the same license as the MEDCoupling User's +# Guide package. +# FIRST AUTHOR , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: MEDCoupling User's Guide 8.4.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-14 18:39+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.0\n" + +# 3d45553b7a9f40fdb450a39e729da240 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:2 +msgid "Data optimization for numerical codes" +msgstr "" + +# 4f02edff745949ce87a74a871528f90c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:7 +msgid "Renumbering to improve locality" +msgstr "" + +# 04d6971564954432bbdb709e798ae9ae +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:9 +msgid "" +"A mesher (like SMESH) often generates a scattered cell distribution in " +"output unstructured mesh. So a common task for simulation codes is the " +"reordering for a better locality." +msgstr "" + +# 23a9adae715e4927ba607baeee4e9bd8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:12 +msgid "medcoupling can do that simply by doing" +msgstr "" + +# 08624425429c47838b823e56be5654d5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:21 +msgid "" +"Numbering by MEFISTO mesher (to the left) and the same mesh after " +"renumbering (to the right)" +msgstr "" + +# 252654c1033f4c7d84871817dfd303f8 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:23 +msgid "" +"RenumberingFactory method creates a renumbering algorithm of a specified " +"type: either \"Boost\" or \"Metis\"." +msgstr "" + +# 3fd45665c486463fb673adf2960ab93c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:26 +msgid "Partitionning for multi procs" +msgstr "" + +# 19047110285f45c0850349ca56a3b89a +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:28 +msgid "" +"For simulation codes following the SPMD paradigm, the partitionning is a " +"key step. medcoupling can perform this partition. Here is an example of " +"partitioning mesh *m* into 4 parts and retrieving the first part:" +msgstr "" + +# de69e5f7020f4018ba02c0750e22e1f5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:38 +msgid "" +"A whole mesh *m* (to the left) and one fourth of it *part0* (to the " +"right) got using the above code" +msgstr "" + +# 1880202f2f36423783e4985b9ee5f3a5 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:40 +msgid "It's then possible to add a layer or more of cells." +msgstr "" + +# d857084c15fa4a249a2d30a064924b61 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/data_optimization.rst:49 +msgid "*part0* (to the left) and *part0_with_layer* (to the right)" +msgstr "" + +# 252654c1033f4c7d84871817dfd303f8 +#~ msgid "" +#~ "RenumberingFactory method creates a " +#~ "renumbering algorithm of a specified " +#~ "type, either \"Boost\" or \"Metis\"." +#~ msgstr "" + diff --git a/doc/user/locale/fr/LC_MESSAGES/index.po b/doc/user/locale/fr/LC_MESSAGES/index.po new file mode 100644 index 000000000..b5d58c28b --- /dev/null +++ b/doc/user/locale/fr/LC_MESSAGES/index.po @@ -0,0 +1,80 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2015-2017, Geay, Bruneton +# This file is distributed under the same license as the MEDCoupling User's +# Guide package. +# FIRST AUTHOR , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: MEDCoupling User's Guide 8.4.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-05-14 14:14+0300\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.0\n" + +# d5fd546e5eed4ca6b9ae64e0bc6f82ae +#: ../../../../MEDCOUPLING_SRC/doc/user/input/index.rst:6 +msgid "medcoupling user's manual" +msgstr "" + +# d7e07c0e3e2c4ad8946fc5f5e9b6076c +#: ../../../../MEDCOUPLING_SRC/doc/user/input/index.rst:8 +msgid "" +"medcoupling gathers several powerful functionalities around the input and" +" output data of field-physics-oriented simulation codes. Data manipulated" +" by medcoupling are objects relative to fields for simulation codes." +msgstr "" + +# e2b0b08deb9140f5aec2281f5a92406e +#: ../../../../MEDCOUPLING_SRC/doc/user/input/index.rst:10 +msgid "medcoupling functionalities are accessible through python modules." +msgstr "" + +# a5d7fa06dcc54e7cba06044177d32d31 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/index.rst:16 +msgid "medcoupling functionalities can be split into 4 categories:" +msgstr "" + +# f7ecb5f67bcd4e7d81d3bf38908470db +#: ../../../../MEDCOUPLING_SRC/doc/user/input/index.rst:13 +msgid "" +":doc:`Data movement `: read/write from/to file, reduce, " +"extract, duplicate, aggregate, compare, exchange data memory to memory " +"across process (image of multifile to file)" +msgstr "" + +# e70dacb1f9c34b239f4299dae290d659 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/index.rst:14 +msgid "" +":doc:`Data analysis `: extract/gather information in data " +"to transform it in a condensate workable data (not necessarely field " +"linked) for further use." +msgstr "" + +# 812aefee67c649e1a01e529c27d913d3 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/index.rst:15 +msgid "" +":doc:`Data conversion `: interpolate, project, repare, " +"decimate, format convertion to make discuss simulation codes each other" +msgstr "" + +# 9e2f1999a5a34f94ad6da630d258b134 +#: ../../../../MEDCOUPLING_SRC/doc/user/input/index.rst:16 +msgid "" +":doc:`Data optimization ` for simulation code : " +"renumbering, partition for multiprocessor codes" +msgstr "" + +# d7e99791163646238a89c6829f62817d +#: ../../../../MEDCOUPLING_SRC/doc/user/input/index.rst:18 +msgid "" +"First, this documentation introduces :doc:`fundamental concepts/objects " +"` of medcoupling for a better understanding of examples." +msgstr "" + diff --git a/doc/user/static/switchers.js.in b/doc/user/static/switchers.js.in new file mode 100644 index 000000000..b4c53e1ec --- /dev/null +++ b/doc/user/static/switchers.js.in @@ -0,0 +1,72 @@ +(function() { + 'use strict'; + + // Parses versions in URL segments like: + + var all_languages = { + 'en': 'English', + 'fr': 'French', + }; + + function build_language_select(current_language) { + var buf = [''); + return buf.join(''); + } + + function on_language_switch() { + var selected_language = $(this).children('option:selected').attr('value') + '/'; + var url = window.location.href; + + var current_language = language_segment_from_url(url); + var current_suffix = ""; + if (current_language != "") { + current_suffix = "_"; + } else { + current_language = "/"; + } + + var selected_suffix = "_"; + if (selected_language == 'en/') { // Special 'default' case for english. + selected_language = ''; + selected_suffix = "/"; + } + + var new_url = url.replace('/user/html' + current_suffix + current_language, + '/user/html' + selected_suffix + selected_language); + if (new_url != url) { + window.location.href = new_url; + } + } + + // Returns the path segment of the language as a string, like 'fr/' + // or '' if not found. + function language_segment_from_url(url) { + var language_regexp = '\/user/html_([a-z]{2}(?:-[a-z]{2})?/)'; + var match = url.match(language_regexp); + if (match !== null) + return match[1]; + return ''; + } + + $(document).ready(function() { + if(@BUILD_LANGUAGE_SWITCHER@) { + var release = DOCUMENTATION_OPTIONS.VERSION; + var language_segment = language_segment_from_url(window.location.href); + var current_language = language_segment.replace(/\/+$/g, '') || 'English'; + + var language_select = build_language_select(current_language); + + $('.language_switcher_placeholder').html(language_select); + $('.language_switcher_placeholder select').bind('change', on_language_switch); + } + }); +})(); diff --git a/doc/user/templates/layout.html b/doc/user/templates/layout.html new file mode 100644 index 000000000..94d467b51 --- /dev/null +++ b/doc/user/templates/layout.html @@ -0,0 +1,30 @@ +{% extends "!layout.html" %} + +{% block rootrellink %} + {{ language or 'English' }} + {{ super() }} +{% endblock %} + +{% block extrahead %} + +{{ super() }} +{% endblock %} + +{%- block sidebarlogo %} +{{ super() }} +{%- +include "searchbox.html" +%} +

+{%- endblock %} +{%- block sidebarsearch %} +{%- endblock %} + +{%- block footer %} +

+ {{ super() }} +{%- endblock %} diff --git a/src/MEDCoupling/MEDCouplingFieldDouble.cxx b/src/MEDCoupling/MEDCouplingFieldDouble.cxx index d88b627f2..a1966c945 100644 --- a/src/MEDCoupling/MEDCouplingFieldDouble.cxx +++ b/src/MEDCoupling/MEDCouplingFieldDouble.cxx @@ -1283,7 +1283,7 @@ void MEDCouplingFieldDouble::applyFunc(int nbOfComp, double val) * - "2*x + z" produces (5.,5.,5.,5.) * - "2*x + 0*y + z" produces (9.,9.,9.,9.) * - "2*x*IVec + (x+z)*LVec" produces (2.,0.,0.,4.) - * - "2*y*IVec + z*KVec + x" produces (7.,1.,1.,4.) + * - "2*y*IVec + z*KVec + x" produces (7.,1.,8.,1.) * * \param [in] nbOfComp - the number of components for \a this field to have. * \param [in] func - the function used to compute values of \a this field. @@ -1323,7 +1323,7 @@ void MEDCouplingFieldDouble::applyFunc(int nbOfComp, const std::string& func) * - "2*x + z" produces (5.,5.,5.,5.) * - "2*x + 0*y + z" produces (9.,9.,9.,9.) * - "2*x*IVec + (x+z)*LVec" produces (2.,0.,0.,4.) - * - "2*y*IVec + z*KVec + x" produces (7.,1.,1.,4.) + * - "2*y*IVec + z*KVec + x" produces (7.,1.,8.,1.) * * \param [in] nbOfComp - the number of components for \a this field to have. * \param [in] func - the function used to compute values of \a this field. diff --git a/src/MEDCoupling_Swig/MEDCouplingExamplesTest.py b/src/MEDCoupling_Swig/MEDCouplingExamplesTest.py index b5e41a09f..fb60d96a8 100644 --- a/src/MEDCoupling_Swig/MEDCouplingExamplesTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingExamplesTest.py @@ -2115,20 +2115,22 @@ class MEDCouplingBasicsTest(unittest.TestCase): # ! [PySnippetUMeshStdBuild1_2] # ! [PySnippetUMeshStdBuild1_3] mesh.allocateCells(5)#You can put more than 5 if you want but not less. + # adding cells mesh.insertNextCell(NORM_QUAD4,nodalConnPerCell[:4]) mesh.insertNextCell(NORM_TRI3,nodalConnPerCell[4:7]) mesh.insertNextCell(NORM_TRI3,nodalConnPerCell[7:10]) mesh.insertNextCell(NORM_QUAD4,nodalConnPerCell[10:14]) mesh.insertNextCell(NORM_QUAD4,nodalConnPerCell[14:]) + # compacting mesh.finishInsertingCells() # ! [PySnippetUMeshStdBuild1_3] # ! [PySnippetUMeshStdBuild1_4] coordsArr=DataArrayDouble(coords,9,3)#here coordsArr are declared to have 3 components, mesh will deduce that its spaceDim==3. mesh.setCoords(coordsArr)#coordsArr contains 9 tuples, that is to say mesh contains 9 nodes. # ! [PySnippetUMeshStdBuild1_4] -# ! [PySnippetUMeshStdBuild1_5] # ! [PySnippetUMeshStdBuild1_5] mesh.checkConsistencyLight() +# ! [PySnippetUMeshStdBuild1_5] return def testExampleCMeshStdBuild1(self): diff --git a/src/MEDCoupling_Swig/UsersGuideExamplesTest.py b/src/MEDCoupling_Swig/UsersGuideExamplesTest.py new file mode 100644 index 000000000..c6fb501f9 --- /dev/null +++ b/src/MEDCoupling_Swig/UsersGuideExamplesTest.py @@ -0,0 +1,616 @@ +# -*- coding: iso-8859-1 -*- +# Copyright (C) 2007-2016 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +from MEDCoupling import * +from math import pi, sqrt + +# ! [PySnippetUMeshStdBuild1_1] +coords=[-0.3,-0.3,0., 0.2,-0.3,0., 0.7,-0.3,0., -0.3,0.2,0., 0.2,0.2,0., + 0.7,0.2,0., -0.3,0.7,0., 0.2,0.7,0., 0.7,0.7,0. ] +nodalConnPerCell=[0,3,4,1, 1,4,2, 4,5,2, 6,7,4,3, 7,8,5,4] +# ! [PySnippetUMeshStdBuild1_1] +# ! [PySnippetUMeshStdBuild1_2] +mesh=MEDCouplingUMesh("My2DMesh",2) +# ! [PySnippetUMeshStdBuild1_2] +# ! [PySnippetUMeshStdBuild1_3] +mesh.allocateCells(5)#You can put more than 5 if you want but not less. +# adding cells +mesh.insertNextCell(NORM_QUAD4,nodalConnPerCell[:4]) +mesh.insertNextCell(NORM_TRI3,nodalConnPerCell[4:7]) +mesh.insertNextCell(NORM_TRI3,nodalConnPerCell[7:10]) +mesh.insertNextCell(NORM_QUAD4,nodalConnPerCell[10:14]) +mesh.insertNextCell(NORM_QUAD4,nodalConnPerCell[14:]) +# compacting +mesh.finishInsertingCells() +# ! [PySnippetUMeshStdBuild1_3] +# ! [PySnippetUMeshStdBuild1_4] +coordsArr=DataArrayDouble(coords,9,3)#here coordsArr are declared to have 3 components, mesh will deduce that its spaceDim==3. +mesh.setCoords(coordsArr)#coordsArr contains 9 tuples, that is to say mesh contains 9 nodes. +# ! [PySnippetUMeshStdBuild1_4] +# ! [PySnippetUMeshStdBuild1_5] +mesh.checkConsistencyLight() +# ! [PySnippetUMeshStdBuild1_5] + +# ! [PySnippetCMeshStdBuild1_1] +XCoords=[-0.3,0.,0.1,0.3,0.45,0.47,0.49,1.,1.22] # 9 values along X +YCoords=[0.,0.1,0.37,0.45,0.47,0.49,1.007] # 7 values along Y +arrX=DataArrayDouble(XCoords) +arrX.setInfoOnComponent(0,"X [m]") +arrY=DataArrayDouble(YCoords) +arrY.setInfoOnComponent(0,"Y [m]") +# ! [PySnippetCMeshStdBuild1_1] +# ! [PySnippetCMeshStdBuild1_2] +mesh=MEDCouplingCMesh("My2D_CMesh") +mesh.setCoords(arrX,arrY) +# ! [PySnippetCMeshStdBuild1_2] + +nodalConnPerCell=range(4*4) +# ! [GU_MEDCoupling1SGTUMesh_0] +mesh=MEDCoupling1SGTUMesh("myQuadMesh",NORM_QUAD4) +mesh.allocateCells(3) +mesh.insertNextCell(nodalConnPerCell[:4]) +mesh.insertNextCell(nodalConnPerCell[4:8]) +mesh.insertNextCell(nodalConnPerCell[8:12]) +# ! [GU_MEDCoupling1SGTUMesh_0] + +# ! [GU_MEDCoupling1SGTUMesh_1] +polymesh=MEDCoupling1DGTUMesh("myPolyhedra",NORM_POLYHED) +polymesh.allocateCells(1) +polymesh.insertNextCell([0,1,2,3,-1,7,6,5,4,-1,0,4,5,1,-1,1,5,6,2,-1,3,2,6,7,-1,0,3,7,4]) +# ! [GU_MEDCoupling1SGTUMesh_1] + +#! [UG_DataArrayDouble_0] +d=DataArrayDouble([1,2,3,4,5,6],3,2) +#! [UG_DataArrayDouble_0] +#! [UG_DataArrayDouble_1] +d=DataArrayDouble([(1,2),(3,4),(5,6)]) +#! [UG_DataArrayDouble_1] +#! [UG_DataArrayDouble_2] +d=DataArrayDouble([(1,2,3),(4,5,6)]) +#! [UG_DataArrayDouble_2] +#! [UG_DataArrayDouble_3] +d.rearrange(2) +#! [UG_DataArrayDouble_3] +#! [UG_DataArrayDouble_4] +i=DataArrayInt([(1,2,3),(4,5,6)]) +f=DataArrayFloat([(1,2,3),(4,5,6)]) +#! [UG_DataArrayDouble_4] + +#! [UG_MEDCouplingCurveLinearMesh_0] +m=MEDCouplingCurveLinearMesh("myCurveLinearMesh") +m.setNodeGridStructure([2,3]) +#! [UG_MEDCouplingCurveLinearMesh_0] +#! [UG_MEDCouplingCurveLinearMesh_1] +coords=DataArrayDouble([0.,0., 2.,0., 0.,1., 1.9,1.1, 0.3,1.9, 2.2,2.1],6,2) +coords.setInfoOnComponents(["X [m]","Y [m]"]) +m.setCoords(coords) +#! [UG_MEDCouplingCurveLinearMesh_1] +#! [UG_MEDCouplingCurveLinearMesh_2] +m.checkConsistencyLight() +#! [UG_MEDCouplingCurveLinearMesh_2] + +XCoords=[-0.3,0.,0.1,0.3,0.45,0.47,0.49,1.,1.22]; arrX=DataArrayDouble(XCoords) +YCoords=[0.,0.1,0.37,0.45,0.47,0.49,1.007]; arrY=DataArrayDouble(YCoords) +mesh=MEDCouplingCMesh("My2D_CMesh") +mesh.setCoords(arrX,arrY) +#! [UG_MEDCouplingFieldDouble_0] +fieldOnCells=MEDCouplingFieldDouble(ON_CELLS,ONE_TIME) +fieldOnCells.setName("MyTensorFieldOnCellOneTime") +fieldOnCells.setMesh(mesh) +#! [UG_MEDCouplingFieldDouble_0] +#! [UG_MEDCouplingFieldDouble_1] +fieldOnCells.setTimeUnit("ms") # Time unit is ms. +fieldOnCells.setTime(4.22,2,-1) # Time attached is 4.22 ms, iteration id is 2 and order id (or sub iteration id) is -1 +#! [UG_MEDCouplingFieldDouble_1] +#! [UG_MEDCouplingFieldDouble_2] +array=DataArrayDouble() +array.alloc(fieldOnCells.getMesh().getNumberOfCells(),2) # Implicitly fieldOnCells will be a 2 components field. +array.fillWithValue(7.) +fieldOnCells.setArray(array) +fieldOnCells.checkConsistencyLight() +# fieldOnCells is now usable +# ... +#! [UG_MEDCouplingFieldDouble_2] +# +#! [UG_MEDCouplingFieldDouble_3] +fieldOnNodes=MEDCouplingFieldDouble(ON_NODES,ONE_TIME) +fieldOnNodes.setName("MyScalarFieldOnNodeOneTime") +fieldOnNodes.setMesh(mesh) +fieldOnNodes.setTimeUnit("ms") # Time unit is ms. +fieldOnNodes.setTime(4.22,2,-1) # Time attached is 4.22 ms, iteration id is 2 and order id (or sub iteration id) is -1 +array=DataArrayDouble() +array.alloc(fieldOnNodes.getMesh().getNumberOfNodes(),1) # Implicitly fieldOnNodes will be a 1 component field. +array.fillWithValue(7.) +fieldOnNodes.setArray(array) +fieldOnNodes.checkConsistencyLight() +# fieldOnNodes is now usable +# ... +#! [UG_MEDCouplingFieldDouble_3] +field=fieldOnCells +#! [UG_MEDCouplingFieldDouble_4] +print(mesh.getHeapMemorySizeStr()) +print(field.getHeapMemorySizeStr()) +print(array.getHeapMemorySizeStr()) +#! [UG_MEDCouplingFieldDouble_4] + +f=fieldOnCells +nbComp=3 +val=5. +#! [UG_MEDCouplingFieldDouble_5] +f.applyFunc(nbComp,val) +#! [UG_MEDCouplingFieldDouble_5] +#! [UG_MEDCouplingFieldDouble_6] +f.applyFunc(1,"sqrt(X*X+Y*Y+Z*Z)") +#! [UG_MEDCouplingFieldDouble_6] +f.applyFunc(nbComp,val) +#! [UG_MEDCouplingFieldDouble_7] +f.applyFunc(4,"IVec*y+JVec*x+KVec*z+LVec*sqrt(x*x+y*y+z*z)") +#! [UG_MEDCouplingFieldDouble_7] + +field=fieldOnCells +#! [UG_MEDCouplingFieldDouble_8] +points=DataArrayDouble([(0.,0.),(1,1)]) +values=field.getValueOnMulti(points) +#! [UG_MEDCouplingFieldDouble_8] +#! [UG_MEDCouplingFieldDouble_9] +field.integral(True) +field.integral(0,True) +#! [UG_MEDCouplingFieldDouble_9] +field.applyFunc(6,1.) +#! [UG_MEDCouplingFieldDouble_10] +assert(field.getNumberOfComponents()==6) +diviatorfield=field.deviator() +#! [UG_MEDCouplingFieldDouble_10] + + +from MEDCouplingDataForTest import MEDCouplingDataForTest +mesh=MEDCouplingDataForTest.build2DTargetMesh_1(); +#! [UG_MEDCouplingGaussPointField_0] +fieldGauss=MEDCouplingFieldDouble.New(ON_GAUSS_PT,ONE_TIME); +fieldGauss.setMesh(mesh); +fieldGauss.setName("MyFirstFieldOnGaussPoint"); +fieldGauss.setTimeUnit("ms") # Time unit is ms. +fieldGauss.setTime(4.22,2,-1) # Time attached is 4.22 ms, iteration id is 2 and order id (or sub iteration id) is -1 +#! [UG_MEDCouplingGaussPointField_0] +#! [UG_MEDCouplingGaussPointField_1] +tria3CooRef=[ 0.0, 0.0, 1.0 , 0.0, 0.0, 1.0 ] +tria3CooGauss=[ 0.1, 0.8, 0.2, 0.7 ] +wg3=[0.3,0.3]; +fieldGauss.setGaussLocalizationOnType(NORM_TRI3,tria3CooRef,tria3CooGauss,wg3); +# +quad4CooRef=[-1.0, 1.0, -1.0, -1.0, 1.0, -1.0, 1.0, 1.0] +quad4CooGauss=[ 0.3, 0.2, 0.2, 0.1, 0.2, 0.4, 0.15, 0.27 ] +wg4=[0.3,0.3,0.3,0.3]; +fieldGauss.setGaussLocalizationOnType(NORM_QUAD4,quad4CooRef,quad4CooGauss,wg4); +#! [UG_MEDCouplingGaussPointField_1] +#! [UG_MEDCouplingGaussPointField_2] +nbTuples=mesh.getNumberOfCellsWithType(NORM_TRI3)*len(wg3)+mesh.getNumberOfCellsWithType(NORM_QUAD4)*len(wg4) +array=DataArrayDouble.New(); +values=[float(i+1) for i in range(nbTuples)] +array.setValues(values,nbTuples,1); +fieldGauss.setArray(array); +fieldGauss.checkConsistencyLight(); +#! [UG_MEDCouplingGaussPointField_2] + +from MEDCouplingDataForTest import MEDCouplingDataForTest +m=MEDCouplingDataForTest.build2DTargetMesh_1(); +Ids=range(1,3) +#! [UG_ExtractForMeshes_0] +part=m[Ids] +#! [UG_ExtractForMeshes_0] +#! [UG_ExtractForMeshes_1] +subNodeIds=part.computeFetchedNodeIds() +#! [UG_ExtractForMeshes_1] +#! [UG_ExtractForMeshes_2] +m.getCoords()[subNodeIds] +#! [UG_ExtractForMeshes_2] +#! [UG_ExtractForMeshes_3] +part.zipCoords() +#! [UG_ExtractForMeshes_3] +#! [UG_ExtractForMeshes_4] +o2n=part.zipCoordsTraducer() +#! [UG_ExtractForMeshes_4] + +m2=MEDCouplingDataForTest.build3DExtrudedUMesh_1()[0] +#! [UG_ExtractForMeshes_5] +bn = m2.findBoundaryNodes() +#! [UG_ExtractForMeshes_5] +#! [UG_ExtractForMeshes_6] +bc = m2.getCellIdsLyingOnNodes(bn,False) +#! [UG_ExtractForMeshes_6] + +#! [UG_ExtractForMeshes_7] +m2.translate([1.,2.,3.]) +#! [UG_ExtractForMeshes_7] +#! [UG_ExtractForMeshes_8] +m2.getCoords()[:]+=DataArrayDouble([1.,2.,3.],1,3) +#! [UG_ExtractForMeshes_8] +import math +#! [UG_ExtractForMeshes_9] +m2.rotate([1,2,1],[0,1,0],math.pi/3) +#! [UG_ExtractForMeshes_9] +#! [UG_ExtractForMeshes_10] +MEDCouplingPointSet.Rotate3DAlg([1,2,1],[0,1,0],math.pi/3,m2.getCoords()) +#! [UG_ExtractForMeshes_10] + +#! [UG_ExtractForMeshes_11] +volPerCell=m2.getMeasureField(True) +#! [UG_ExtractForMeshes_11] +#! [UG_ExtractForMeshes_12] +volPerCell.getArray().accumulate() +#! [UG_ExtractForMeshes_12] +t1=-1 +#! [UG_ExtractForMeshes_13] +part=volPerCell.getArray().findIdsGreaterOrEqualTo(t1) +#! [UG_ExtractForMeshes_13] +#! [UG_ExtractForMeshes_14] +m2[part] +#! [UG_ExtractForMeshes_14] +#! [UG_ExtractForMeshes_15] +centers=m2.computeCellCenterOfMass() +#! [UG_ExtractForMeshes_15] +#! [UG_ExtractForMeshes_16] +(centers*volPerCell.getArray()).accumulate()/DataArrayDouble(volPerCell.accumulate()) +#! [UG_ExtractForMeshes_16] + +#! [UG_ExtractForMeshes_17] +m2.scale( [1,2,4], 6. ) +#! [UG_ExtractForMeshes_17] + +#! [UG_ExtractForMeshes_18] +ortho_field=m.buildOrthogonalField() +#! [UG_ExtractForMeshes_18] + +#! [UG_ExtractForMeshes_19] +ibc=m2.computeIsoBarycenterOfNodesPerCell() +#! [UG_ExtractForMeshes_19] + +#! [UG_ExtractForMeshes_20] +# make a structured mesh 1x5 +coords=DataArrayDouble(range(6)) +cmesh=MEDCouplingCMesh("cmesh") +cmesh.setCoords(coords,coords[:2]) + +# make a mesh with two zones +zmesh=cmesh.buildUnstructured()[0,1,3,4] + +# get cells ids of zones +zoneArrays=zmesh.partitionBySpreadZone() +print([ ids.getValues() for ids in zoneArrays]) +#! [UG_ExtractForMeshes_20] + +coordsArr=DataArrayDouble(range(6)) +mesh2d=MEDCouplingCMesh("mesh2d") +mesh2d.setCoords(coordsArr,coordsArr[:2]) +mesh2d=mesh2d.buildUnstructured() +mesh1d=MEDCouplingCMesh("mesh1d") +mesh1d.setCoords(coordsArr,coordsArr[:1]) +mesh1d=mesh1d.buildUnstructured() +mesh1d.rotate( [2.3,0], math.radians( 25 )) +mesh1d.translate( [0.2,0.4] ) +#! [UG_ExtractForMeshes_21] +m2d,m1d,a2d,a1d=MEDCouplingUMesh.Intersect2DMeshWith1DLine( mesh2d, mesh1d, 1e-12 ) +#! [UG_ExtractForMeshes_21] +#print ("a2d",a2d.getValues()) +#print (a1d.getValues()) + +mesh1=mesh2d.deepCopy() +mesh1.rotate( [2.3,0], math.radians( 25 )) +mesh2=mesh2d +#! [UG_ExtractForMeshes_22] +m,a1,a2=MEDCouplingUMesh.Intersect2DMeshes( mesh1, mesh2, 1e-12 ) +#! [UG_ExtractForMeshes_22] + + +points=DataArrayDouble([(0,0,0)]) +mesh=m2.computeSkin() +#! [UG_ExtractForMeshes_23] +dist,cells=mesh.distanceToPoints(points) +#! [UG_ExtractForMeshes_23] + +arr=DataArrayDouble([1,2,3,4,5,6],3,2) +a,b=2,5 +#! [UG_ExtractForArrays_0] +tupleIds = arr[:,0].findIdsInRange(a,b) +#! [UG_ExtractForArrays_0] +c,d=0,7 +#! [UG_ExtractForArrays_1] +tupleIds1 = arr.magnitude().findIdsInRange(c,d) +#! [UG_ExtractForArrays_1] +#! [UG_ExtractForArrays_2] +tupleIds2 = DataArrayInt.buildSubstraction(tupleIds,tupleIds1) +#! [UG_ExtractForArrays_2] + +valsArr1=DataArrayDouble(range(9*2),9,2) +field4 = MEDCouplingFieldDouble(ON_NODES) +field4.setArray(valsArr1) +mesh=MEDCouplingCMesh("My2D_CMesh") +coo=DataArrayDouble([0,1,2]) +mesh.setCoords(coo,coo) +field4.setMesh(mesh) +ids4=[1,2] +#! [UG_ExtractForFields_0] +subField = field4[ids4] +#! [UG_ExtractForFields_0] + +m4=MEDCouplingCMesh("box") +coo=DataArrayDouble(range(7)) +m4.setCoords(coo[:5],coo[:5],coo) +m4=m4.buildUnstructured() +valsArr1=m4.computeCellCenterOfMass() +valsArr1.applyFunc(1,"sqrt(X*X+Y*Y+Z*Z)") +field5 = MEDCouplingFieldDouble(ON_CELLS) +field5.setArray(valsArr1) +field5.setMesh(m4) +#! [UG_ExtractForFields_1] +origin=[0,0,2] +normvec=[-1,-1,6] +slice5=field5.extractSlice3D(origin,normvec,1e-10) +#! [UG_ExtractForFields_1] + +from MEDCouplingDataForTest import MEDCouplingDataForTest +m1=MEDCouplingDataForTest.build2DTargetMesh_1(); +m2=m1 +eps=1e-12 +#! [UG_MeshComparison_0] +m1.isEqual(m2,eps) +#! [UG_MeshComparison_0] +#! [UG_MeshComparison_1] +m1.isEqualWithoutConsideringStr(m2,eps) +#! [UG_MeshComparison_1] + +arr=DataArrayDouble(5) ; arr.iota() +m=MEDCouplingCMesh() ; m.setCoords(arr,arr) +m=m.buildUnstructured() +m1=m.deepCopy() +arr=DataArrayInt([0,3,1,4,2]) +m2=m1[arr] +#! [UG_MeshComparison_2] +a,_=m1.checkGeoEquivalWith(m2,20,1e-12) +assert(m1[a].isEqualWithoutConsideringStr(m2,1e-12)) +#! [UG_MeshComparison_2] +m3=m1 +m3.translate([100.,0]) +m1=MEDCouplingUMesh.MergeUMeshes([m3,m]) +m2=MEDCouplingUMesh.MergeUMeshes([m,m3]) +#! [UG_MeshComparison_3] +a,b=m1.checkGeoEquivalWith(m2,12,1e-12) +m2.renumberNodes(b,len(b)) +assert(m1[a].isEqualWithoutConsideringStr(m2,1e-12)) +#! [UG_MeshComparison_3] + + +coords = [0.,2.,4.] +coordsArr=DataArrayDouble(coords,3,1) +m4=MEDCouplingCMesh() +m4.setCoords(coordsArr,coordsArr,coordsArr) +m4=m4.buildUnstructured() +field1 = m4.fillFromAnalytic(ON_NODES,1,"x+y") +pts = [0.5,0.5,0.5,1.,1,1.] +#! [UG_CommonHandlingMesh_0] +assert(field1.getTypeOfField()==ON_NODES) +field1.getMesh().simplexize(PLANAR_FACE_5) +field1.getValueOnMulti(pts) +#! [UG_CommonHandlingMesh_0] + +from MEDCouplingDataForTest import MEDCouplingDataForTest +m2=MEDCouplingDataForTest.build2DTargetMesh_1(); +m2.changeSpaceDimension(3); +m1=MEDCouplingDataForTest.buildCU1DMesh_U(); +m1.changeSpaceDimension(3); +center=[0.,0.,0.] +vector=[0.,1.,0.] +m1.rotate(center,vector,-pi/2.); +#! [UG_CommonHandlingMesh_1] +m3=m2.buildExtrudedMesh(m1,0); +#! [UG_CommonHandlingMesh_1] + +#! [UG_CommonHandlingMesh_2] +m5=MEDCouplingUMesh.MergeUMeshes([m3,m4]) +#! [UG_CommonHandlingMesh_2] + +#! [UG_CommonHandlingMesh_3] +m1.convertLinearCellsToQuadratic(0) +#! [UG_CommonHandlingMesh_3] + +#! [UG_CommonHandlingMesh_4] +skin = m1.computeSkin() +#! [UG_CommonHandlingMesh_4] +#! [UG_CommonHandlingMesh_5] +#bc = m1.getCellIdsLyingOnNodes(bn,False) +#! [UG_CommonHandlingMesh_5] + +mesh3d=m3 +#! [UG_CommonHandlingMesh_6] +mesh1d,d,di,r,ri=mesh3d.explodeIntoEdges() +#! [UG_CommonHandlingMesh_6] +#! [UG_CommonHandlingMesh_7] +mesh2d,d,di,r,ri=mesh3d.buildDescendingConnectivity() +#! [UG_CommonHandlingMesh_7] + +mesh2d=MEDCouplingCMesh() +mesh2d.setCoords(coordsArr,coordsArr) +mesh2d=mesh2d.buildUnstructured() +eps=1e-12 +#! [UG_CommonHandlingMesh_8] +changedCells=mesh2d.conformize2D(eps) +#! [UG_CommonHandlingMesh_8] + +#! [UG_CommonHandlingMesh_9] +mesh2d.duplicateNodes([3,4]) +#! [UG_CommonHandlingMesh_9] + +m1d=MEDCouplingCMesh() +m1d.setCoords(coordsArr) +m1d=m1d.buildUnstructured() +#! [UG_CommonHandlingMesh_10] +m1d.renumberCells(m1d.orderConsecutiveCells1D().invertArrayN2O2O2N(m1d.getNumberOfCells())) +#! [UG_CommonHandlingMesh_10] + +skin=m3.computeSkin() +#! [UG_CommonHandlingMesh_11] +vec=[0,0,-1] +skin.orientCorrectly2DCells(vec,False) +#! [UG_CommonHandlingMesh_11] + +#! [UG_CommonHandlingMesh_12] +m3.orientCorrectlyPolyhedrons() +#! [UG_CommonHandlingMesh_12] + +#! [UG_CommonHandlingMesh_13] +m3.renumberCells(m3.rearrange2ConsecutiveCellTypes()) +m3.sortCellsInMEDFileFrmt() +#! [UG_CommonHandlingMesh_13] + +m=MEDCouplingCMesh() +m.setCoords(coordsArr[:2],coordsArr[:2]) +m=m.buildUnstructured() +#! [UG_CommonHandlingMesh_14] +m.renumberNodes([2,1,0,-1],3) +#! [UG_CommonHandlingMesh_14] + +#! [UG_CommonHandlingMesh_15] +mtet,n2ocells,np=m3.tetrahedrize(PLANAR_FACE_5) +#! [UG_CommonHandlingMesh_15] +#! [UG_CommonHandlingMesh_16] +m.mergeNodes(1e-12) +#! [UG_CommonHandlingMesh_16] + + +#! [UG_Projection_0] +srcCoo=DataArrayDouble([(0,0),(1,0),(3,0),(0,1),(1,1),(3,1)]) +src=MEDCouplingUMesh("src",2) +src.setCoords(srcCoo) +src.allocateCells() +src.insertNextCell(NORM_QUAD4,[0,3,4,1]) +src.insertNextCell(NORM_QUAD4,[1,4,5,2]) +# +trgCoo=DataArrayDouble([(0.5,0.5),(1.5,0.5),(1.5,1.5)]) +trg=MEDCouplingUMesh("trg",2) +trg.setCoords(trgCoo) +trg.allocateCells() +trg.insertNextCell(NORM_TRI3,[0,2,1]) +#! [UG_Projection_0] +from MEDCouplingRemapper import MEDCouplingRemapper +#! [UG_Projection_1] +rem=MEDCouplingRemapper() +rem.prepare(src,trg,"P0P0") +print(rem.getCrudeMatrix()) +#! [UG_Projection_1] +#! [UG_Projection_2] +srcF=MEDCouplingFieldDouble(ON_CELLS) +srcF.setMesh(src) +srcF.setArray(DataArrayDouble([3,4])) +srcF.setNature(IntensiveMaximum) +# +trgF=rem.transferField(srcF,-1) +#! [UG_Projection_2] +#! [UG_Projection_3] +rem=MEDCouplingRemapper() +rem.prepare(src,trg,"P0P1") +print(rem.getCrudeMatrix()) +#! [UG_Projection_3] +#! [UG_Projection_4] +rem=MEDCouplingRemapper() +rem.prepare(src,trg,"P1P0") +print(rem.getCrudeMatrix()) +#! [UG_Projection_4] + + +#! [UG_Projection_5] +coo=DataArrayDouble([(0.,0.,0.), (1,0,0), (0,1,0)]) +src=MEDCouplingUMesh("src",2) +src.setCoords(coo) +src.allocateCells(1) +src.insertNextCell(NORM_TRI3,[0,1,2]) +tgt = src.deepCopy() +rem=MEDCouplingRemapper() +rem.prepare(src,tgt,"P0P0") +print(rem.getCrudeMatrix()) +#! [UG_Projection_5] +#! [UG_Projection_6] +src.translate([0,0,1e-3]) +rem.prepare(src,tgt,"P0P0") +print(rem.getCrudeMatrix()) +#! [UG_Projection_6] +#! [UG_Projection_7] +rem.setBoundingBoxAdjustmentAbs( 1e-3 ) +rem.prepare(src,tgt,"P0P0") +print(rem.getCrudeMatrix()) +#! [UG_Projection_7] + +import math +#! [UG_Projection_8] +src.rotate([0,0,0],[0,1,0],math.pi/4) +rem.prepare(src,tgt,"P0P0") +print(rem.getCrudeMatrix()) +#! [UG_Projection_8] +#! [UG_Projection_9] +rem.setMaxDistance3DSurfIntersect( 0.1 ) +rem.prepare(src,tgt,"P0P0") +print(rem.getCrudeMatrix()) +#! [UG_Projection_9] + +#! [UG_Projection_10] +rem.setMaxDistance3DSurfIntersect( -1 ) # switch it off +rem.setMinDotBtwPlane3DSurfIntersect( 0.8 ) +rem.prepare(src,tgt,"P0P0") +print(rem.getCrudeMatrix()) +#! [UG_Projection_10] + +from MEDCouplingDataForTest import MEDCouplingDataForTest +m=MEDCouplingDataForTest.build2DTargetMesh_1(); +#! [UG_Optimization_0] +from MEDRenumber import RenumberingFactory +ren=RenumberingFactory("BOOST") +a,b=m.computeNeighborsOfCells() +n2o,_=ren.renumber(a,b) +mrenum=m[n2o] +#! [UG_Optimization_0] + +#! [UG_Optimization_1] +from MEDCoupling import MEDCouplingSkyLineArray +import MEDPartitioner +# prepare a MEDPartitioner +a,b=m.computeNeighborsOfCells() +sk=MEDCouplingSkyLineArray(b,a) +g=MEDPartitioner.MEDPartitioner.Graph(sk) +# compute partitioning into 4 parts +g.partGraph(4) +# get the 1st of parts of m +procIdOnCells=g.getPartition().getValuesArray() +p0=procIdOnCells.findIdsEqual(0) +part0=m[p0] +#! [UG_Optimization_1] +#! [UG_Optimization_2] +boundary_nodes_part0=part0.findBoundaryNodes() +boundary_cells_part0=p0[part0.getCellIdsLyingOnNodes(boundary_nodes_part0,False)] +# starting from knowledge of neighborhood it s possible to know the neighbors of boundary_cells_part0 +neighbors_boundary_cells_part0=MEDCouplingUMesh.ExtractFromIndexedArrays(boundary_cells_part0,a,b)[0] +neighbors_boundary_cells_part0.sort() +neighbors_boundary_cells_part0=neighbors_boundary_cells_part0.buildUnique() +# +layer_of_part0=neighbors_boundary_cells_part0.buildSubstraction(p0) +# +whole_part_with_layer=DataArrayInt.Aggregate([p0,layer_of_part0]) +whole_part_with_layer.sort() +part0_with_layer=m[whole_part_with_layer] +#! [UG_Optimization_2] + diff --git a/src/MEDCoupling_Swig/UsersGuideExamplesTest_numpy.py b/src/MEDCoupling_Swig/UsersGuideExamplesTest_numpy.py new file mode 100644 index 000000000..ad566904a --- /dev/null +++ b/src/MEDCoupling_Swig/UsersGuideExamplesTest_numpy.py @@ -0,0 +1,33 @@ +# -*- coding: iso-8859-1 -*- +# Copyright (C) 2007-2016 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +from MEDCoupling import * +from math import pi, sqrt + +import numpy +import MEDCoupling +#! [UG_DataArrayNumpy_0] +# NumPy is an optional pre-requisite! +assert(MEDCoupling.MEDCouplingHasNumPyBindings()) +a=numpy.arange(20,dtype=numpy.int32) +d=DataArrayInt(a) # d owns data of a +e=DataArrayInt(a) # a not owned -> e only an access to chunk of a +a1=d.toNumPyArray() +#! [UG_DataArrayNumpy_0] diff --git a/src/MEDCoupling_Swig/tests.set b/src/MEDCoupling_Swig/tests.set index 4382ef42e..b7c02db0c 100644 --- a/src/MEDCoupling_Swig/tests.set +++ b/src/MEDCoupling_Swig/tests.set @@ -27,12 +27,14 @@ SET(BASE_TESTS MEDCouplingIntersectTest.py MEDCouplingExamplesTest.py MEDCouplingRemapperTest.py + UsersGuideExamplesTest.py ) # if numpy is used SET(NUMPY_TESTS MEDCouplingNumPyTest.py MEDCouplingPickleTest.py + UsersGuideExamplesTest_numpy.py ) SET(ALL_TESTS ${BASE_TESTS} ${NUMPY_TESTS}) diff --git a/src/MEDLoader/Swig/UsersGuideExamplesTest.py b/src/MEDLoader/Swig/UsersGuideExamplesTest.py new file mode 100644 index 000000000..d49a20222 --- /dev/null +++ b/src/MEDLoader/Swig/UsersGuideExamplesTest.py @@ -0,0 +1,186 @@ +# -*- coding: iso-8859-1 -*- +# Copyright (C) 2007-2016 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# + +from MEDLoader import * +import os + +from MEDLoaderDataForTest import MEDLoaderDataForTest +m = MEDLoaderDataForTest.build1DMesh_1() +m.setName("mesh2") +#! [UG_ReadMeshFromFile_3] +m.checkConsecutiveCellTypesForMEDFileFrmt() +#! [UG_ReadMeshFromFile_3] +#! [UG_ReadMeshFromFile_0] +from MEDLoader import WriteMesh +WriteMesh("file2.med",m,True) +#! [UG_ReadMeshFromFile_0] +#! [UG_ReadMeshFromFile_1] +from MEDLoader import ReadMeshFromFile +m=ReadMeshFromFile("file2.med") +#! [UG_ReadMeshFromFile_1] +#! [UG_ReadMeshFromFile_2] +m=ReadMeshFromFile("file2.med","mesh2") +assert(m.getName()=="mesh2") +#! [UG_ReadMeshFromFile_2] + +mesh3D=MEDLoaderDataForTest.build3DMesh_1() +mesh2D=mesh3D.computeSkin() +mesh1D=mesh2D.computeSkin() +#! [UG_ReadMeshFromFile_4] +from MEDLoader import MEDFileUMesh +mm=MEDFileUMesh.New() +mm.setMeshAtLevel(0,mesh3D) +mm.setMeshAtLevel(-1,mesh2D) +#! [UG_ReadMeshFromFile_4] +otherCoordArray=mesh3D.getCoords() +#! [UG_ReadMeshFromFile_5] +mm.setCoords(otherCoordArray) +#! [UG_ReadMeshFromFile_5] +#! [UG_ReadMeshFromFile_6] +groupNodes=DataArrayInt([1,3,4,5]); groupNodes.setName("myNodes") +groupFaces=DataArrayInt([12,13,15]); groupFaces.setName("myFaces") +mm.addGroup(1,groupNodes) +mm.addGroup(-1,groupFaces) +#! [UG_ReadMeshFromFile_6] +oldName,newName="myNodes","myNodes2" +oldFamName,newFamName="Family_2","Family_3" +#! [UG_ReadMeshFromFile_7] +mm.changeGroupName(oldName,newName) +mm.changeFamilyName(oldFamName,newFamName) +#! [UG_ReadMeshFromFile_7] +#! [UG_ReadMeshFromFile_8] +mm.write("file.med",2) +#! [UG_ReadMeshFromFile_8] +mm=MEDFileUMesh.New() +#! [UG_ReadMeshFromFile_9] +mm.setMeshAtLevel(0,mesh3D,True) +#! [UG_ReadMeshFromFile_9] +pass + +from MEDLoaderDataForTest import MEDLoaderDataForTest +f=MEDLoaderDataForTest.buildVecFieldOnGauss_1(); +f.setName("Field1") +#! [UG_ReadField_0] +from MEDLoader import WriteField +WriteField("file.med",f,True) +#! [UG_ReadField_0] +#! [UG_ReadField_1] +from MEDLoader import ReadField +f=ReadField("file.med") +#! [UG_ReadField_1] +#! [UG_ReadField_2] +from MEDLoader import GetAllFieldNames +print(GetAllFieldNames("file.med")) +#! [UG_ReadField_2] +#! [UG_ReadField_3] +f=ReadField("file.med","Field1") +#! [UG_ReadField_3] +#! [UG_ReadField_4] +from MEDLoader import GetAllFieldIterations +print(GetAllFieldIterations("file.med","Field1")) +#! [UG_ReadField_4] +#! [UG_ReadField_5] +ts0,ts1=1,5 +f=ReadField("file.med","Field1",ts0,ts1) +#! [UG_ReadField_5] +fs = [ f ] +#! [UG_ReadField_6] +m=fs[0].getMesh() +WriteMesh("file5.med",m,True) +for f in fs: + assert(f.getMesh().getHiddenCppPointer()==m.getHiddenCppPointer()) + # extra line to insist on the fact that + WriteFieldUsingAlreadyWrittenMesh("file5.med",f) +#! [UG_ReadField_6] + +from MEDLoaderDataForTest import MEDLoaderDataForTest +fname="PyExamples1.med" +meshName="mesh" +fieldName="FieldOnAll" +iteration=3 +order=4 +m=MEDLoaderDataForTest.build2DMesh_3() +m.setName(meshName) +f=m.getMeasureField(False) +f=f.buildNewTimeReprFromThis(ONE_TIME,False) +f.setTime(5.5,iteration,order) +f.setName(fieldName) +mesh=m +field=f +level=0 +#! [UG_RWFieldAdv_0] +from MEDLoader import MEDFileUMesh, MEDFileField1TS +mm=MEDFileUMesh.New() +mm.setMeshAtLevel(0,mesh) +ff=MEDFileField1TS.New() +ff.setFieldNoProfileSBT(field) +mm.write(fname,2) +ff.write(fname,0) +#! [UG_RWFieldAdv_0] +#! [UG_RWFieldAdv_1] +profile=DataArrayInt([1,3,7]); profile.setName("pfl137") +fieldPartial=field[profile] +fieldPartial.setName("fieldPartial") +ff.setFieldProfile(fieldPartial,mm,level,profile) +ff.write(fname,0) +#! [UG_RWFieldAdv_1] +#! [UG_RWFieldAdv_2] +ff=MEDFileField1TS.New(fname,fieldName,iteration,order) +mm=MEDFileMesh.New(fname) +# you can choose an appropriate method +field=ff.field(mm) +field=ff.getFieldAtLevel(ON_CELLS,level) +field=ff.getFieldOnMeshAtLevel(ON_CELLS,level,mm) +#! [UG_RWFieldAdv_2] +#! [UG_RWFieldAdv_3] +maxDim,maxRelDims=ff.getNonEmptyLevels() +#! [UG_RWFieldAdv_3] + +fieldTS1 = f +fieldTS2 = f.deepCopy() +fieldTS2.setTime(4.5,iteration+1,order) +fieldPartialTS1 = fieldPartial +fieldPartialTS2 = fieldPartial.deepCopy() +fieldPartialTS1.setTime(4.0,iteration+2,order) +fieldPartialTS2.setTime(3.5,iteration+3,order) +fieldPartialTS1.setName( fieldTS1.getName() ) +fieldPartialTS2.setName( fieldTS1.getName() ) +fname="PyExamples2.med" +mm.write(fname,2) +#mm=MEDFileMesh.New(fname) +#! [UG_RWFieldAdv_4] +ff=MEDFileFieldMultiTS.New() +ff.appendFieldNoProfileSBT(fieldTS1) +ff.appendFieldNoProfileSBT(fieldTS2) +ff.appendFieldProfile(fieldPartialTS1,mm,level,profile) +ff.appendFieldProfile(fieldPartialTS2,mm,level,profile) +ff.write(fname,0) +#! [UG_RWFieldAdv_4] + +#! [UG_RWFieldAdv_5] +mm=MEDFileMesh.New(fname) +ff=MEDFileFieldMultiTS.New(fname,fieldName) +for ff1TS in ff: + iteration,order,time=ff1TS.getTime() + # you can choose an appropriate method + field=ff1TS.field(mm) + field=ff1TS.getFieldAtLevel(ON_CELLS,level) + field=ff1TS.getFieldOnMeshAtLevel(ON_CELLS,level,mm) +#! [UG_RWFieldAdv_5] diff --git a/src/MEDLoader/Swig/tests.set b/src/MEDLoader/Swig/tests.set index 7ff9acac6..07ebe51e8 100644 --- a/src/MEDLoader/Swig/tests.set +++ b/src/MEDLoader/Swig/tests.set @@ -22,6 +22,7 @@ SET(BASE_TESTS MEDLoaderTest4.py MEDLoaderExamplesTest.py SauvLoaderTest.py + UsersGuideExamplesTest.py ) # if numpy is used -- 2.39.2