OGS_6.5.5 + TH2M process + Output + sigma_total

Dear ogs-Team,

I tried to add the total stress as output for models that use the TH2M process. When I try to add sigma_total as secondary variable, ogs crashes with the following error message:

critical: /***/ogs-6.5.5/ProcessLib/Output/SecondaryVariable.cpp:72 get()
error: A secondary variable with internal name ‘sigma_total’ has not been set up.
error: OGS terminated with error on 2025-09-01 11:53:44+0200.

If I don’t add sigma_total as secondary variable but add it to the output this is ignored.

Is it even possible to have sigma_total as output?

Cheers,

Jan Philipp (BGR)

Hi Jan, thanks for asking. It is indeed a bug in OGS. Working on it. I’ll post here, when solution is available.

– d

Hi Dmitri,

thank you very much for this quick answer. Looking forward to use this feature in some time!

Cheers,

Jan Philipp

The fix is merged with a test, so should be working now.

Add

<secondary_variable internal_name="sigma_total" output_name="sigma_total"/>

and also to output variables

<variables>
   ...
   <variable>sigma_total</variable>
</variables>