overwrite initial mesh field data (with parameter values)

Setting integration point data based on Element IDs based parameter:

    <overwrite_mesh_data>
        <remove>
            <field_name>cell_centres</field_name>
            <mesh_item_type>cell</mesh_item_type>
        </remove>
        <set>
            <field_name>sigma_ip</field_name>
            <mesh_item_type>integration_point</mesh_item_type>
            <material_ids>1 2</material_ids>
            <parameter_name>sigma_bent</parameter_name>
        </set>
        <set>
            <field_name>temperature</field_name>
            <mesh_item_type>node</mesh_item_type>
            <material_ids>1</material_ids>
            <parameter_name>temp_inner1</parameter_name>
        </set>
        <take_original>
            <field_name>temperature</field_name>
            <mesh_item_type>node</mesh_item_type>
            <material_ids>0</material_ids>
        </take_original>
        <set>
            <field_name>temperature</field_name>
            <mesh_item_type>node</mesh_item_type>
            <material_ids>2</material_ids>
            <parameter_name>temp_inner2</parameter_name>
        </set>
        <set>
            <field_name>porosity_avg</field_name>
            <mesh_item_type>cell</mesh_item_type>
            <material_ids>0:2</material_ids>
            <parameter_name>porosity_clay</parameter_name>
        </set>
        <set>
            <field_name>p_left</field_name>
            <mesh>Left</mesh>
            <mesh_item_type>node</mesh_item_type>
            <parameter_name>u_bc</parameter_name>
        </set>
    </overwrite_mesh_data>

Planned feature list:

  1. 3 data types: ip-data, cells, nodes
  2. level-based (ordered) overwrite
  3. original mesh data can be set for any level
  4. should work for any of the input meshes
  5. elements/ip points may have function type (ip coordinates/ cell center points)
  6. wildcards should be allowed for material id selection
  7. deleting fields

  1. Tests covering your feature were added?
  2. Any new feature or behaviour change was documented?
Edited by Dmitri Naumov

Merge request reports

Loading
Loading