Homepage Books Releases Docs Discourse

ogs5 -- multi-component MASS_TRANSPORT -- transient BC -- Input via FCT for mulitple components?

Dear ogs users,

I am setting up a mulicomponent MASS_TRANSPORT model with transient BC for different components. I define my transient BC (time concentration data) as a function in the FCT file as follows:

#FUNCTION
$TYPE
fct_BC_POINT0
$VARIABLES
TIME Tracer
$DATA
0 0
3600 1
7200 0
10800 0

works well for one component. Can you define such time concentratoin function for several components at once and asses them in the BC file through $PRIMARY_VALUE ? I tried but this did not work:

#FUNCTION
$TYPE
fct_BC_POINT0
$VARIABLES
TIME Tracer Tracer2
$DATA
0 0 0
3600 1 1
7200 0 1
10800 0 0

I know you could define a seperate functoin or each component such as:

#FUNCTION
$TYPE
fct_BC_POINT0_Tracer
$VARIABLES
TIME Trace
$DATA
0 0
3600 1
7200 0
10800 0

#FUNCTION
$TYPE
fct_BC_POINT0_Tracer2
$VARIABLES
TIME Trace
$DATA
0 0
3600 1
7200 1
10800 0

But it would be easier to have one data table with several component concentrions in.

Any solution?

Best,

Johannes

Hi Johannes,

Were you able to identify a solution to your question above?

Regards
Swamini

After a look in the code I would say:

the read file function would be ready for such an input of multiple concentration in one line, but the CFunction::GetValue(double point, bool* valid, int method) only takes 2 values, i.e. time and one concentration. So the best (only) solution is still to write individual blocks for each concentration. I think.

1 Like

I did not work any further on an input bloc including multiple components.

I wrote a wrapper function in R that converts table formatted concentration time series of multipole components into FCT blocs.

1 Like