|
[Sponsors] |
Adding extra term in momentum equation using UDF |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Piyush Rawat
Join Date: Jul 2022
Posts: 14
Rep Power: 3 ![]() |
-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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Piyush Rawat
Join Date: Jul 2022
Posts: 14
Rep Power: 3 ![]() |
pls check the code.
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 ![]() ![]() |
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
__________________
best regards ****************************** press LIKE if this message was helpful |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Piyush Rawat
Join Date: Jul 2022
Posts: 14
Rep Power: 3 ![]() |
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? |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |