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

Questions about the DEFINE_SOURCE

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 16, 2020, 04:23
Default Questions about the DEFINE_SOURCE
  #1
New Member
 
Chris Hunter
Join Date: May 2020
Posts: 17
Rep Power: 5
mcc007 is on a distinguished road
Hello everybody,

I'd like to use fluent to solve Poisson equation. The Poisson equation is attached. But the simulation result is much higher than expected. I am not sure if I need to add some other terms (e.g., velocity term, transient term). in the equation. Or my code is wrong. Here is part of my code:

DEFINE_SOURCE(potential,c,t,dS,eqn)
{
real source;
source=F*(-C_UDSI(c,t,2)+C_UDSI(c,t,3));
dS[eqn]=0.0;
return source;
}

Thanks a lot
Attached Images
File Type: jpg 11.JPG (25.7 KB, 38 views)
mcc007 is offline   Reply With Quote

 


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
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
[ICEM] Complex geometry mesh general questions Jack B ANSYS Meshing & Geometry 0 August 14, 2019 13:44
General questions about how to mesh and build up my case ThunderstruckGER OpenFOAM 5 September 23, 2018 18:33
possible interview questions atturh Main CFD Forum 1 February 21, 2012 08:53
NACA0012 Validation Case Questions ozzythewise Main CFD Forum 3 August 3, 2010 14:39


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