Getting Density Gradient in a Pressure-Based Solver (FLUENT)

  • 7 Views
  • Last Post 2 weeks ago
holaagee posted this 2 weeks ago

Greetings,

I am trying to simulate methane combustion using ANSYS Fluent with a pressure-based solver, where I include source terms defined by UDFs. The source terms are functions of the density gradient. Since the cell macro C_R_G(c,t) can only be used in the density-based solver, is it possible to get a density gradient in a pressure-based solver so that I can use it in my UDF code? 

Thanks y'all

Ghadeer

Order By: Standard | Newest | Votes
abenhadj posted this 2 weeks ago

Check the official way to get the gradients of variables as documented in the manual.

Best regards,

Amine

holaagee posted this 2 weeks ago

Thank you for answering. I looked through the manuals, I am not sure what you mean by the "official way". Is it using the cell macros? 

 

abenhadj posted this 2 weeks ago

Check the gradient paragraph in customization manual.

Best regards,

Amine

Close