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

Adding extra term in momentum equation using UDF

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 8, 2022, 02:38
Default Adding extra term in momentum equation using UDF
  #1
New Member
 
Piyush Rawat
Join Date: Jul 2022
Posts: 14
Rep Power: 3
GreyMat is on a distinguished road
-hello, my name is Piyush
-I am new with C language and wanted to add buoyance forces in the momentum equation
- Can someone please check the UDF I wrote in C language.
Thank you
Attached Images
File Type: jpg y momentum.jpg (31.1 KB, 17 views)
GreyMat is offline   Reply With Quote

Old   August 8, 2022, 09:33
Default please anyone!
  #2
New Member
 
Piyush Rawat
Join Date: Jul 2022
Posts: 14
Rep Power: 3
GreyMat is on a distinguished road
pls check the code.
GreyMat is offline   Reply With Quote

Old   August 8, 2022, 22:33
Default
  #3
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
code is correct
better to attach it as a text next time

unit of source (from your UDF) is unit/m3, check is that is what you expect
GreyMat likes this.
__________________
best regards


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

Old   August 9, 2022, 10:37
Default
  #4
New Member
 
Piyush Rawat
Join Date: Jul 2022
Posts: 14
Rep Power: 3
GreyMat is on a distinguished road
Hello AlexanderZ thanks for the reply, it was helpful.
I want to ask one more thing, I have a used a negative sign for buoyance force, is it correct?
GreyMat 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
multiRegionHeater error ordinary OpenFOAM Running, Solving & CFD 2 June 9, 2020 17:43
the format of adding volVectorField term into equation linyanx OpenFOAM Programming & Development 1 March 16, 2017 09:27
conjugateHeatFoam + interFoam farhagim OpenFOAM Programming & Development 15 July 19, 2016 07:55
viscosity term in discetrization momentum equation hans-186 Main CFD Forum 4 April 1, 2013 13:34
How to? Extra term in k-e equation. Implicit-Explicit be_inspired OpenFOAM Programming & Development 1 March 19, 2013 10:50


All times are GMT -4. The time now is 15:37.