# ogs5 -- multi-component MASS\_TRANSPORT -- transient BC -- Input via FCT for mulitple components?

**URL:** <https://discourse.opengeosys.org/t/ogs5-multi-component-mass-transport-transient-bc-input-via-fct-for-mulitple-components/207>\
**Category:** ogs-users\
**Tags:** mailing-list\
**Created:** [February 16, 2018, 2:00pm UTC](https://discourse.opengeosys.org/t/ogs5-multi-component-mass-transport-transient-bc-input-via-fct-for-mulitple-components/207 "2018-02-16T14:00:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Johannes\_Boog](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/johannes_boog/32/969_2.png) [@Johannes\_Boog](https://discourse.opengeosys.org/u/Johannes_Boog)\
**Post date:** [February 16, 2018, 2:00pm UTC](https://discourse.opengeosys.org/t/ogs5-multi-component-mass-transport-transient-bc-input-via-fct-for-mulitple-components/207/1 "2018-02-16T14:00:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![swamini.khurana](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/swamini.khurana/32/692_2.png) [@swamini.khurana](https://discourse.opengeosys.org/u/swamini.khurana)\
**Post date:** [January 14, 2019, 10:20am UTC](https://discourse.opengeosys.org/t/ogs5-multi-component-mass-transport-transient-bc-input-via-fct-for-mulitple-components/207/2 "2019-01-14T10:20:40Z")

</div>

Hi Johannes,

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

Regards  
Swamini

---

<div class="post-metadata">

**Author:** ![thomas.kalbacher](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/thomas.kalbacher/32/1401_2.png) [@thomas.kalbacher](https://discourse.opengeosys.org/u/thomas.kalbacher)\
**Post date:** [January 17, 2019, 4:50pm UTC](https://discourse.opengeosys.org/t/ogs5-multi-component-mass-transport-transient-bc-input-via-fct-for-mulitple-components/207/3 "2019-01-17T16:50:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![johannes.boog](https://discourse.opengeosys.org/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@johannes.boog](https://discourse.opengeosys.org/u/johannes.boog)\
**Post date:** [January 20, 2019, 9:20am UTC](https://discourse.opengeosys.org/t/ogs5-multi-component-mass-transport-transient-bc-input-via-fct-for-mulitple-components/207/4 "2019-01-20T09:20:58Z")

</div>

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.
