Mercurial > repos > ufz > ogs_addlayer
comparison addLayer.xml @ 0:0decc57edb57 draft
planemo upload for repository https://github.com/Helmholtz-UFZ/galaxy-tools/tree/main/tools/ogs/ commit 8d522c2d14b28a4df096a5a13cd800bbf086f09f
| author | ufz |
|---|---|
| date | Thu, 06 Mar 2025 17:29:05 +0000 |
| parents | |
| children | f14ae821c3ac |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:0decc57edb57 |
|---|---|
| 1 <tool id="ogs_addlayer" name="OGS addLayer" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
| 2 <description> | |
| 3 Adds a layer to an existing mesh | |
| 4 </description> | |
| 5 <macros> | |
| 6 <import>macros.xml</import> | |
| 7 <token name="@VERSION_SUFFIX@">0</token> | |
| 8 </macros> | |
| 9 <requirements> | |
| 10 <expand macro="ogs_requirement"/> | |
| 11 </requirements> | |
| 12 <expand macro="creator"/> | |
| 13 <command detect_errors="exit_code"><![CDATA[ | |
| 14 ln -s '$input_mesh' input.vtu && | |
| 15 AddLayer -i input.vtu -o output.vtu -t '$layer_thickness' | |
| 16 $add_layer_on_bottom | |
| 17 #if str($material_option.material_id) == "copy": | |
| 18 --copy-material-ids | |
| 19 #elif str($material_option.material_id) == "set": | |
| 20 --set-material-id $material_option.set_material_id | |
| 21 #end if | |
| 22 | |
| 23 ]]></command> | |
| 24 <inputs> | |
| 25 <param name="input_mesh" type="data" format="vtkxml" label="Input Mesh File" argument="-i"/> | |
| 26 <param name="layer_thickness" type="float" label="Layer Thickness" argument="-t"/> | |
| 27 <param name="add_layer_on_bottom" type="boolean" value="false" truevalue="--add-layer-on-bottom" falsevalue="" label="Add Layer To Bottom"/> | |
| 28 <conditional name="material_option"> | |
| 29 <param name="material_id" type="select" label="Material ID Option"> | |
| 30 <option value="none">Leave as it is</option> | |
| 31 <option value="copy">Copy existing material IDs</option> | |
| 32 <option value="set">Set a specific material ID</option> | |
| 33 </param> | |
| 34 <when value="none"/> | |
| 35 <when value="copy"/> | |
| 36 <when value="set"> | |
| 37 <param name="set_material_id" type="integer" label="Set Material IDs"/> | |
| 38 </when> | |
| 39 </conditional> | |
| 40 </inputs> | |
| 41 <outputs> | |
| 42 <data name="output_mesh" format="vtkxml" from_work_dir="output.vtu" /> | |
| 43 </outputs> | |
| 44 <tests> | |
| 45 <test> | |
| 46 <param name="input_mesh" value="tm_a_quad.vtu"/> | |
| 47 <param name="layer_thickness" value="15.0"/> | |
| 48 <param name="add_layer_on_bottom" value="false"/> | |
| 49 <param name="material_option|material_id" value="set"/> | |
| 50 <param name="material_option|set_material_id" value="1"/> | |
| 51 <output name="output_mesh" value="tm_a_quad_with_extra_layer.vtu"/> | |
| 52 </test> | |
| 53 </tests> | |
| 54 <help><![CDATA[ | |
| 55 **Overview:** | |
| 56 | |
| 57 This Galaxy tool adds a new layer to an existing mesh using the OpenGeoSys library. It processes meshes in the VTU (Visualization Toolkit Unstructured Grid) format. | |
| 58 | |
| 59 **Inputs:** | |
| 60 | |
| 61 1. **Input Mesh File (`input_mesh`)** The VTU file containing the existing mesh to which a new layer will be added. | |
| 62 2. **Layer Thickness (`layer_thickness`)** Specifies the thickness of the new layer to be added. The default value is `10.0`. | |
| 63 3. **Add Layer to Bottom (`add_layer_on_bottom`)** If selected, the layer is added to the bottom of the mesh. Otherwise, it is added to the top. | |
| 64 4. **Material ID Option (`material_option`)** Determines how material IDs for the new layer are managed: | |
| 65 - `Copy`: Copies existing material IDs to the new layer. | |
| 66 - `Set`: Sets a specific material ID for the new layer. | |
| 67 | |
| 68 **Outputs:** | |
| 69 | |
| 70 **Output Mesh File (`output_mesh`)** The resulting mesh file in VTU format with the added layer. | |
| 71 ]]></help> | |
| 72 <expand macro="ogs_citation"/> | |
| 73 </tool> |
