ogs6py.classes.media

Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
Distributed under a Modified BSD License.

See accompanying file LICENSE or http://www.opengeosys.org/project/license

class ogs6py.classes.media.Media

Bases: BuildTree

Class for defining a media material properties.”

add_property(**args)

Adds a property to medium/phase

Parameters:
  • medium_id (int or str) –

  • phase_type (str) –

  • name (str) –

  • type (str) –

  • value (float or str) –

  • exponent (float or str) –

  • cutoff_value (float or str) –

  • independent_variable (str) –

  • reference_condition (float or str) –

  • reference_value (float or str) –

  • slope (float or str) –

  • parameter_name (str) –

classmethod populate_tree(tag, text='', attr=None, children=None)

method to create dictionary from an xml entity