CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Varying BCs (https://www.cfd-online.com/Forums/cfx/19501-varying-bcs.html)

Azeez March 3, 2003 05:30

Varying BCs
 
Hello Everybody, I am trying to simulate a hydrogen storage tank for automobiles. The hydrogen enters the system and reacts with metal to form metal hydride. This is an exothermic reaction. Therefore both temperature and pressure inside the system will increase. For this reason, my BC will change for every timestep depending on the amount of hear energy produced in the previous timestep as well as the pressure increase inside the system will determine the new velocity of hydrogen going into the system. There are some other parameters that are also effected in this process. All this has to be done using a subroutine. As a first step I used a simple subroutine in which I created a 2D array in which I put time step in the first column and temp in the second column. But the temperature field in the BC area of CFX build is not accepting a file name (it appears, it will not accept anything other than a number except 'e' for exponent). The second step was to directly write a subroutine and link it to the CFX. This also didnt work properly. Can anyone help me? Thanks in advance. Azeez


All times are GMT -4. The time now is 08:29.