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

User defined source term not doing anything.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2018, 21:52
Default User defined source term not doing anything.
  #1
New Member
 
Bob Bobingson
Join Date: Nov 2018
Posts: 1
Rep Power: 0
BobTheCFDGuy is on a distinguished road
Hi,

I have a square 2D mesh in Fluent that goes from x and y = 1 to 2.

I have user defined boundaries for temperature that work just fine as
e^2x: exp(2*x[0]);
e^2y: exp(2*x[1]);
e^x: exp(x[0]);
e^y: exp(x[1]);


And am trying to apply an energy source term as:

DEFINE_SOURCE(energy_source,c,t,dS,eqn)
{
real x[ND_ND];
real con, source;
C_CENTROID(x,c,t);
source = -(x[0]*x[0]+x[1]*x[1])*exp(x[0]*x[1]);
dS[eqn] = 0.0;
return source;
}


I am applying the source term by going into "Cell Zone Conditions", double clicking on the solid, checking "source terms", going to the source terms tab, hitting "edit" by energy source terms, turning number of source terms to 1, then selecting "udf_energy_source".

And yet the solution does not change at all whether the source term is enabled or not. I've attached 2 images, 1 of what it looks like and 1 of what it should look like (the top one is correct).

should look like.PNG

looks like.jpg

Does anyone know why it won't do anything?

Thanks
BobTheCFDGuy 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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 18:18
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 12:32
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[swak4Foam] build problem swak4Foam OF 2.2.0 mcathela OpenFOAM Community Contributions 14 April 23, 2013 14:59


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