CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   about energy equation (https://www.cfd-online.com/Forums/fluent/69200-about-energy-equation.html)

chuanyue October 15, 2009 00:36

about energy equation
 
hi there,

I have known from the user guide that the energy equation has two froms(temperature and enthalpy form),

And now I have energy source term of different form(also temperature and enthalpy form),

I want Fluent to solve different form energy equation, what procedures need I do?

thanks a lot

payam_IUST October 15, 2009 15:34

If you want to include source term in energy equation,my experience tells that you should write a UDF to include a source term in energy equation,for better explanation read UDF manual.

chuanyue October 15, 2009 21:29

about energy equation
 
Quote:

Originally Posted by payam_IUST (Post 232796)
If you want to include source term in energy equation,my experience tells that you should write a UDF to include a source term in energy equation,for better explanation read UDF manual.

thank you for your reply,

but now I have two equal souce terms which have different form(temperature or enthalpy form),

so I want to know what should I do except write a UDF

to activate different form of energy equations?

payam_IUST October 16, 2009 01:52

You can include every form of source term in Energy equation,Macro "C_H(c,t) " is enthalpy of cell and "C_T(c,t)" is temperature of cell and you can use theme in your source term UDF,Energy equation works with both of them and is already active,It is not matter that you use whitch of them(temp of enthalpy),But you should define your source term exactly.
UDF refers to user defined function and for writing udfs you should have a programming basis in C language and read udf manual(Chapter 1,2,3,4 at least),You should spend a little more time to achieve your goal!

chuanyue October 19, 2009 10:44

Quote:

Originally Posted by payam_IUST (Post 232839)
You can include every form of source term in Energy equation,Macro "C_H(c,t) " is enthalpy of cell and "C_T(c,t)" is temperature of cell and you can use theme in your source term UDF,Energy equation works with both of them and is already active,It is not matter that you use whitch of them(temp of enthalpy),But you should define your source term exactly.
UDF refers to user defined function and for writing udfs you should have a programming basis in C language and read udf manual(Chapter 1,2,3,4 at least),You should spend a little more time to achieve your goal!


thank you for your reply!

and your reply gives me big inspiration.

but now I have another problem about the macro C_H_G,

fluent shows the error:
FLUENT received fatal signal (ACCESS_VIOLATION)
1. Note exact events leading to error.
2. Save case/data under new name.
3. Exit program and restart to continue.
4. Report error to your distributor.
Error Object: ()

would you help me!!!


All times are GMT -4. The time now is 15:03.