Question: The setting of heterogeneous parameters in OGS

Dear Luyu,

First step: Generate the data for the parameter

  • One easy possibility would be to use paraview to generate an additional data array, for instance with the name HeterogenousPermeabilityParameter, in your bulk mesh.

Second step: In the project file you can specify a parameter within the <parameters> section of type MeshElement as follows

 <parameter>
            <name>HeterogenousPermeabilityParameter</name>
            <type>MeshElement</type>
            <field_name>DataArrayNameInBulkMesh</field_name>
</parameter>

Third step: Use this parameter in the description of the permeability within the <medium>-tag as follows:

<property>
    <name>permeability</name>
    <type>Parameter</type>
    <parameter_name>HeterogenousPermeabilityParameter</parameter_name>
</property>

There are also benchmarks available using this feature, see for example inhomogeneous_permeability.prj

Best regards,
Tom