CFD Online Logo CFD Online URL
Home > Forums > General Forums > Main CFD Forum

GETVAR SUBROUTINE for additional variable in CFX

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2005, 06:13
Default GETVAR SUBROUTINE for additional variable in CFX
Posts: n/a
Hi all,

First i am sorry for long mail but can't help. I am solving the mass transfer of species from liquid to gas. But in simulation we are not considering the gas phase, only single phase(liquid domain) is considered. The liq-gas interface is replaced by freeslip wall with mass flux for species mass transfer.

To calculate the change in partial pressures in gas phase, we use partial pressures as ALGEBRAIC additional variables(AdVs). These additional variables change with time and also affect the liquid conc of species.

I want to write SUBROUTINE which follows as given,

- Extract the liq conc of each species, additional variables(AdVs) over each control volume(CV), at previous timestep.

- Calculate the species mass transfer, from each CV, using the liquid conc and AdV(partial pressure), both known at previous timestep.

- Calculate the total species mass transfer from liquid domain, by integrating over domain.

- Calculate the total gas transfer by adding total mass transfer of each species.

- Calculate the change in AdV(partial pressure) with respect to time (time derivative of AdV) using liq conc, AdV, total mass transfer of species, total gas transfer.

- The calculated AdV using this time derivative at present timestep and value of AdV at previous timestep.

- Return the values of total mass transfer of each species, total gas transfer and AdV's (partial pressures of species) to solver.

I had gone through USER GETVAR but not able to fix the problem. Can somebody help me out? It will be better If somebody have already written such type SUBROUTINE (for timederivative).

Is use of partial pressures as ALGEBRAIC additional variables correct?

Waiting for reply, specially from experts.

Thanks in advance.

  Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
cfx fortran subroutine Rahmi Uyar CFX 1 February 18, 2012 01:44
Pros and Cons for CFX, CFdesign, COMSOL Val Main CFD Forum 3 June 10, 2011 02:20
how to use a subroutine in CFX sergiorbrett CFX 3 August 29, 2009 11:33
Global variables storage in CFX. Fabio Kasper CFX 1 October 6, 2000 08:21
CFX User Subroutine Archive David Creech Main CFD Forum 0 March 17, 1999 12:41

All times are GMT -4. The time now is 10:13.