diff --git a/web/content/docs/tools/doubleValuedMaterialIDs.vtu b/web/content/docs/tools/doubleValuedMaterialIDs.vtu new file mode 100755 index 0000000000000000000000000000000000000000..6fa6ad250020cfde76ee9c5cde9041ef4d4bf236 --- /dev/null +++ b/web/content/docs/tools/doubleValuedMaterialIDs.vtu @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e2fd55e6555445f3ae5a3dfb97f9a7d238fad6cb90f24b335e5906d04fa7a01 +size 1633116 diff --git a/web/content/docs/tools/model-preparation/convert-data-array-to-data-array/index.pandoc b/web/content/docs/tools/model-preparation/convert-data-array-to-data-array/index.pandoc new file mode 100644 index 0000000000000000000000000000000000000000..607a90d372df48ef8354320db6bd29ab15853235 --- /dev/null +++ b/web/content/docs/tools/model-preparation/convert-data-array-to-data-array/index.pandoc @@ -0,0 +1,52 @@ ++++ +date = "2018-12-17T10:56:57+01:00" +title = "Convert vtk data array to another vtk data array" +author = "Thomas Fischer" + +[menu] + [menu.tools] + parent = "model-preparation" ++++ + +## General + +Often, meshes contain geometrical data in common with data used for process +simulation. Usually, such data used by the process simulation is associated to +the mesh nodes or to the mesh cells. In the vtk unstructured grid file format +the geometrical and the process data information is stored in one file - in so +called data arrays. + +Some tools, for instance paraview, export data arrays always using a floating +point data type. OpenGeoSys expects the 'MaterialIDs' cell data array to have +int data-type. + +Other tools, for instance Gocad, export data associated with cells or nodes +sometimes as float. The tool can convert the cell data arrays to double +data-type. + +## Usage + +``` +convertVtkDataArrayToVtkDataArray + --in-mesh <file name> + --existing-property-name <name of the cell data array as string> + --out-mesh <filename for the output mesh> + --new-property-name <name of the new cell data array> + --new-property-data-type <data type as string> +``` + +## Example + +``` +convertVtkDataArrayToVtkDataArray + -i doubleValuedMaterialIDs.vtu + -e MaterialIDs_double + --new-property-data-type int + -n MaterialIDs + -o intValuedMaterialIDs.vtu +``` + +::: {.note} +### Example Files +[doubleValuedMaterialIDs.vtu](doubleValuedMaterialIDs.vtu) +:::