Access to temperature at each node in problem.cpp

Dear all,

I would like to get the temperature in the problem.cpp for each node. There are 2 cases: a) there is a heat flux process and b) there is a constant temperature defined.

Maybe someone of you could provide me an example how to do this in the current trunk version.

Thanks a lot for your help.

Regards,

Bastian

Hi Bastian,
you can use the reaction interface object :

In the (optional) *.rei input file introduced with V5.5.0, the Keywords

  $PRESSURE
   CONSTANT 1.0 ; bar ; VARIABLE

  $TEMPERATURE
   CONSTANT 298.15 ; Kelvin ; VARIABLE

can be used to set constant pressure or temperature values throughout the model domain in the REI, which can be used as input values for the reaction routine, e.g. without the need to define a heat transport process in the simulation. Calls to the functions
double REACTINT::GetPressure (long node)
double REACTINT::GetTemperature (long node)
will then return the respective values defined with the keywords behind the option CONSTANT in units of bar and Kelvin. Instead, the option VARIABLE (without any specified value) will return local node pressures from the flow or heat transport model (if defined).

#REACTION_INTERFACE
   $TEMPERATURE
    VARIABLE
    ;CONSTANT 300.15 ; K
#STOP

See also the example in benchmark:
\benchmarks\TCR\Temperature_BacGrowth

Cheers, Christof

···

Am 27.02.2014 16:31, schrieb Graupner Bastian:

Dear all,

I would like to get the temperature in the problem.cpp for each node.
There are 2 cases: a) there is a heat flux process and b) there is a
constant temperature defined.

Maybe someone of you could provide me an example how to do this in the
current trunk version.

Thanks a lot for your help.

Regards,

Bastian

--------------------------------------------------------------

*Bastian Graupner*

Dr.

Safety Analyst

Swiss Federal Nuclear Safety Inspectorate ENSI

Secton Disposal & Analyses

Industriestrasse 19

CH-5200 Brugg

Tel.: +41 56 460 85 52

Fax: +41 56 460 84 99

Bastian.Graupner@ensi.ch <mailto:Bastian.Graupner@ensi.ch>__

Swiss Federal Nuclear Safety Inspectorate ENSI » ENSI

--------------------------------------------------------------

--
You received this message because you are subscribed to the Google
Groups "ogs-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to ogs-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out\.

--
_______________________________________
Dr. Christof Beyer
Institute of Geosciences
Geohydromodelling
Christian-Albrechts-University Kiel
Ludewig-Meyn-Str. 10
24118 Kiel
Germany

phone: +49(0)431-8803172
fax: +49(0)431-8807606
mobile: +49(0)176-24297908
email: christof.beyer@gpi.uni-kiel.de
home: http://www.ifg.uni-kiel.de/
_______________________________________