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

Change the discretization form in fluent

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 9, 2020, 00:16
Default Change the discretization form in fluent
  #1
Member
 
Abhinand
Join Date: Jun 2016
Posts: 75
Rep Power: 10
Abhinand is on a distinguished road
Is it possible to modify the diffusion term in the momentum equation and discretize it differently?
For eg: D d^2 u/dy^2 is discretized as (u_(i+1)-2u_i +u_(i-1))/dy^2

I want to write it as ((du/dy)_(i+1) - (du/dy)_(i))/Dy

Where and how can I accomplish this in fluent?
Abhinand is offline   Reply With Quote

Old   August 10, 2020, 02:57
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
as far as I know, you can change the scheme for all momentum equation only
what you need is in
Solution Methods -> spatial discretization, Momentum -> First order Upwind

other option is to define your own diffusion equation using user-define scalars
In that case you may select spatial discretization separately
Abhinand likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   August 14, 2020, 21:44
Smile
  #3
Member
 
Abhinand
Join Date: Jun 2016
Posts: 75
Rep Power: 10
Abhinand is on a distinguished road
AlexanderZ,

Thanks for your reply. Do you mean to say, I can add a separate UDS equation and add to the velocity to get my new discretization.
Lets say I discretize the diffusion term by B, and fluent by default discretizes by A

The net momentum equation should be something like Fluent - A + B right?
But how do I modify or write in the discretization equation, since modification only in that form will affect the velocity calculation and using UDF I can affect only the values of velocity.

Please let me know your thoughts
Abhinand 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
Fluent in Ansys Workbench : Change Working Directory sral FLUENT 4 March 29, 2019 11:29
Will a change in ER in PrePDF affect the diesel combustion(DPM Model Fluent) outcome? Chidambaram Raju FLUENT 0 January 12, 2016 06:21
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
Discretization settings Foam vs. Fluent wuppdupp OpenFOAM Pre-Processing 6 July 25, 2009 03:35
How to change background color in fluent Venu Gopal FLUENT 4 August 31, 2004 07:34


All times are GMT -4. The time now is 19:05.