# About setting the Volumetric Source Term

**URL:** <https://code-saturne.org/forum/t/about-setting-the-volumetric-source-term/1323>\
**Category:** Syrthes related questions\
**Created:** [January 26, 2017, 12:32pm UTC](https://code-saturne.org/forum/t/about-setting-the-volumetric-source-term/1323 "2017-01-26T12:32:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jundi\_He](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@Jundi\_He](https://code-saturne.org/forum/u/Jundi_He)\
**Post date:** [January 26, 2017, 12:32pm UTC](https://code-saturne.org/forum/t/about-setting-the-volumetric-source-term/1323/1 "2017-01-26T12:32:52Z")

</div>

Hi,

I’ve run the solid case independently in Syrthes without any volumetric source term, and it just goes fine. But after I set a volumetric source term which is a heat generation term varies along axial (z) direction, and when I run the simulation, it failed. Is there some mistakes during my setting? It’s just a simple function. Thank you!

Best Regards!  
Jundi He

 ![run_the_simulation.png](https://code-saturne.org/forum/uploads/default/original/2X/6/6edb78008ee515fc176a1f915ca164383e8a256e.png)  
 ![volumetric_conditions.png](https://code-saturne.org/forum/uploads/default/original/2X/2/2b45f82d697bbf7e98cec9a18bad2e5ace6bbc22.png)

---

<div class="post-metadata">

**Author:** ![Luciano\_Garelli](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/l/ad7895/32.png) [@Luciano\_Garelli](https://code-saturne.org/forum/u/Luciano_Garelli)\
**Post date:** [January 31, 2017, 3:38pm UTC](https://code-saturne.org/forum/t/about-setting-the-volumetric-source-term/1323/2 "2017-01-31T15:38:09Z")

</div>

Hello Jundi He,

Did you solve the problem? If not check the stderr.txt file for more information. Also, you can check the in the user\_fct.c file (void user\_cfluvs\_fct() ) if the data that you input throught the GUI were setted.

Regards,

Luciano

---

<div class="post-metadata">

**Author:** ![Jundi\_He](https://code-saturne.org/forum/letter_avatar_proxy/v4/letter/j/2bfe46/32.png) [@Jundi\_He](https://code-saturne.org/forum/u/Jundi_He)\
**Post date:** [February 2, 2017, 11:21am UTC](https://code-saturne.org/forum/t/about-setting-the-volumetric-source-term/1323/3 "2017-02-02T11:21:41Z")

</div>

Hello, Luciano:

I did “solve” the problem, by replacing (z/8.32)^2 with (z/8.32)\*(z/8.32), as I realized that the function complier doesn’t recognise the “^”. Thanks.

Best Regards!  
Jundi He
