CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

All detailes of transport equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2015, 01:19
Default All detailes of transport equation
  #1
Member
 
Join Date: Nov 2014
Posts: 42
Rep Power: 11
Maryam-A is on a distinguished road
Hi
I want to add one transport equation for nanoparticle volume fraction to simulating nanofluid in microchannel .
I wrote uds include udf for source term and diffusion ,but cant run by this error
'"divergence detected in temperature"
-------------------------------------------------
To explain better I have one transport equation (UDS(0) for volume fraction) that includes diffusion and source terms.
source term is :
d/dx(DT*dT/dx)+d/dy(DT*dT/dy)+d/dz(DT*dT/dz)
I wanted to return sum of gradients so I calculated them in Define_Adjust. -----------------------------------------------
begin_c_loop(c,t)
{
C_UDSI(c,t,A1)=D_T*C_T_G(c,t)[0];
C_UDSI(c,t,A2)=D_T*C_T_G(c,t)[1];
C_UDSI(c,t,A3)=D_T*C_T_G(c,t)[2];
C_UDMI(c,t,A4)=C_UDSI_G(c,t,A1)[0]+
+C_UDSI_G(c,t,A2)[1]+C_UDSI_G(c,t,A3)[2];
}
end_c_loop(c,t)

}


-----------------------------------------------
DEFINE_SOURCE(alpha_source,c,t,ds,eqn)
{
real source;
source=C_UDMI(c,t,A4);
return source;
}
------------------------------------------
Actually I used UDS(A1-A3) for calculating gradients to return it as source term, but my property(viscosity and thermal conductivity) is dependent both of phi(volume fraction) and temperature,too.
So I think momentum and energy equations cant be solved before transport equation and they all should be solved simultaneously. this makes a problem for source term, I cant solve it.
------------------------------------------
I used SIMPLEC algorithm, QUICK scheme for convection-energy, Second order for UDSI(0)
----------------------------------------
I changed UDF FACTORS but cant run again
I will appreciate if you can give me more advice.
Maryam-A is offline   Reply With Quote

Old   September 29, 2015, 01:28
Default
  #2
Member
 
Join Date: Nov 2014
Posts: 42
Rep Power: 11
Maryam-A is on a distinguished road
According to my friend's advice I used UDMI for storing gradients and use it in source term, but still at start of one iteration gradients not calculated so
" fatal signal" returns.
I used EXECUTE_AT_END and "divergence detected temperature" returns!

As I said before all equation are solve together, so gradients of temperature which used in source term are unknown? maybe this sounds problem!
I'm so confused and need help
Maryam-A is offline   Reply With Quote

Reply


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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
turbulent diffusion term in transport equation for additional variables Raijin Thunderkeg CFX 2 May 17, 2014 22:53
One transport equation, two user-defined scalar, can it be solved? sharonyue FLUENT 0 April 1, 2014 22:18
error message cuteapathy CFX 14 March 20, 2012 06:45
Poisson equation combined with transport equation Se-Hee CFX 0 December 27, 2007 01:00


All times are GMT -4. The time now is 20:46.