CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

non-equilibrium thermal model of porous media combustor

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2021, 02:52
Default non-equilibrium thermal model of porous media combustor
  #1
Senior Member
 
Weiqiang Liu
Join Date: Feb 2018
Posts: 278
Rep Power: 9
Weiqiang Liu is on a distinguished road
Hi all,

I am doing a non-equilibrium thermal porous media combustor simulation with fluent. The whole model is implemented with UDF and UDS.

The energy equation of solid is solved with an UDS equation. Source term of solid and fluid energy equation is defined by DEFINE_SOURCE macro.

diffusivity of UDS equation is defined by DEFINE_DIFFUSIVITY macro. thermal conductivity of fluid is modified by DEFINE_PROPERTY macro.

The whole model can run. However, results are not very reasonable. In specific, reactions don't happen at all. I can share my code here. Can anybody give me some suggestions?

Best regards
Weiqiang Liu is offline   Reply With Quote

Old   May 31, 2022, 09:29
Default
  #2
New Member
 
Jingyu Cao
Join Date: May 2022
Posts: 5
Rep Power: 4
Jingyu Cao is on a distinguished road
I have the same question, we can chat on wechat. VX:cao460335760
Jingyu Cao is offline   Reply With Quote

Old   September 28, 2024, 00:56
Default source term of energy equation in non-equilibrium thermal model of porous media
  #3
New Member
 
Fany
Join Date: Jan 2022
Posts: 2
Rep Power: 0
yf70512 is on a distinguished road
I am trying to modify the source term of energy equation in non-equilibrium thermal model by UDS and UDF (DEFINE_SOURCE macro).
But the Fluent crashed when the code runned with the error "999999:mpt_accept:error: accept failed: No error". My code is as following:

DEFINE_SOURCE(Fluid_source,c,t,dS,eqn)
{

real Tf, Ts;
real hfs = HFS_CONSTANT; // Placeholder value for heat transfer coefficient
real Afs = AFS_CONSTANT; // Placeholder value for interfacial area density
real source;

// Obtain fluid and solid temperatures
Tf = C_T(c, t); // Fluid temperature
Ts = C_STORAGE_R(c, t, SV_T_S); // Solid temperature

// Obtain hfs and Afs from Fluent's internal calculations
// hfs = C_STORAGE_R(c, t, SV_HFS); // Interfacial heat transfer coefficient
// Afs = C_STORAGE_R(c, t, SV_AFS); // Fluid-solid interfacial area per unit volume

// Calculate the source term based on the modified expression
source = hfs * Afs * (pow(Ts, 4.0) - pow(Tf, 4.0));

// Set the derivative of the source term with respect to Tf
dS[eqn] = 4.0 * hfs * Afs * pow(Ts, 3.0) - 4.0 * hfs * Afs * pow(Tf, 3.0);

return source;

}


DEFINE_SOURCE(Solid_source,c,t,dS,eqn)
{

real Tf, Ts;
real hfs = HFS_CONSTANT; // Placeholder value for heat transfer coefficient
real Afs = AFS_CONSTANT; // Placeholder value for interfacial area density
real source;

// Obtain fluid and solid temperatures
Ts = C_STORAGE_R(c, t, SV_T_S); // Solid temperature
Tf = C_T(c, t); // Fluid temperature

// Obtain hfs and Afs from Fluent's internal calculations
// hfs = C_STORAGE_R(c, t, SV_HFS); // Interfacial heat transfer coefficient
// Afs = C_STORAGE_R(c, t, SV_AFS); // Fluid-solid interfacial area per unit volume

// Calculate the source term based on the modified expression
source = hfs * Afs * (pow(Tf, 4.0) - pow(Ts, 4.0));

// Set the derivative of the source term with respect to Tf
dS[eqn] = 4.0 * hfs * Afs * pow(Tf, 3.0) - 4.0 * hfs * Afs * pow(Ts, 3.0);

return source;

}

I am not sure if it was caused by the wrong expreesion of reading the solid temperature. Could you please give me some suggestions? I would be very grateful if you could share your code with me. My VX is YuF__0306.
yf70512 is offline   Reply With Quote

Reply

Tags
non-thermal equilibrium, porous media combustor


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
How to simulate a porous media which is opaque to thermal radiation in Fluent Ansys? mz_uon FLUENT 15 July 1, 2020 11:00
Porous media setup issues in Fluent Bernard Van FLUENT 29 January 26, 2017 05:09
Use of non-thermal equilibrium in porous media model highhopes FLUENT 0 November 9, 2014 21:40
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
porous media: Fluent or Star-CD? Igor Main CFD Forum 0 December 5, 2002 16:16


All times are GMT -4. The time now is 14:32.