joergbuchwald / ogs6py

Python-API for the OpenGeoSys (http://www.opengeosys.org) software.
BSD 3-Clause "New" or "Revised" License
16 stars 23 forks source link

missing stuffs in ogs6py: function with several expressions #50

Closed kuateric closed 2 years ago

kuateric commented 2 years ago

input in ogs6py: to be implemented

output:

    <parameter>
      <mesh>tunnel</mesh>
      <name>Initial_stress</name>
      <type>Function</type>
      <expression>-12.4e6+0.8*4.7e6</expression>
      <expression>-12.7e6+0.8*4.7e6</expression>
      <expression>0</expression>
      <expression>0</expression>
    </parameter>
joergbuchwald commented 2 years ago

Here was only the mesh-tag missing, but it should work now:

model.parameters.add_parameter(name="initial_stress",
                               mesh="tunnel",
                              type="Function",
                              expression=["-12.4e6+0.8*4.7e6","-12.7e6+0.8*4.7e6","0","0"])