|
[Sponsors] |
Couldn't able to figure out the technique - NO problem with Compilation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 13, 2020, 23:47 |
Couldn't able to find a way in Numerical Solution - NO problem with Compilation
|
#1 | |
Senior Member
|
Hello Foamers,
In my work, I need to resolve 2 variables - pressure (p) and velocity (V) based on Continuity and Ergun Equations shown below: Quote:
By applying the operator () cross product on Eq. (2),
//Continuity (Eq.1) is substituted After computing velocity from Eq. (3), the pressure can be computed from Eq. (5) Expanding Eq. (3), we get, Expanding Eq. (5), we get, where,
I guess my syntax is right. I feel there might be some problem with equations derived above ? I solved it to the best of my knowledge. I'm hereby attaching my code and case files. If anyone have some ideas, kindly do share it to proceed further. Thank you **The above equations are referred from the following reference: https://aiche.onlinelibrary.wiley.co.../aic.690200519 Last edited by Kummi; January 20, 2020 at 04:33. |
||
January 14, 2020, 13:10 |
|
#2 |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
I took a quick look at the code you posted, and noticed that you are solving an equation for , so is getting updated.
You are not solving any equation for the velocity field, and neither are you updating the velocity explicitly. So your velocity field is not changing. The line Code:
(gradCurlUyx - gradCurlUxy) = ((Ux*gradUxy) - (Uy*gradUxx)); |
|
January 15, 2020, 07:28 |
|
#3 | ||||
Senior Member
|
Dear Adhiraj,
Thank you for your response. I missed to add logarithm term in above velocity equations Equs. (3a and b). Since the logarithm expressions are used for only scalar variables in OpenFOAM, I used chain rule for gradient and resolved. The below expression shows how the second term in Equ. (3a) evaluated by eliminated logarithm term. Issue with logarithm function in OpenFOAM So, Equs. (3a and b) will be changed as, Quote:
Quote:
Quote:
Quote:
Could you please brief your above comments and share your thoughts please. Thank you Last edited by Kummi; January 15, 2020 at 08:31. |
|||||
January 15, 2020, 11:39 |
|
#4 | |
Senior Member
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16 |
Quote:
You are trying to use an assignment statement, that too incorrectly. You need to create and solve a transport equation using OpenFOAM syntax. Look at your equation for to get a feel for the syntax. |
||
January 15, 2020, 14:38 |
|
#5 | ||||
Senior Member
|
Quote:
In previous case using Darcy's law, I implemented the following equations to resolve velocity and pressure as follows, Quote:
Quote:
https://openfoamwiki.net/index.php/ScalarTransportFoam Based on this link, when I try to define velocity equ as explicitly discretized terms, it fails in compilation too. Quote:
Thank you Last edited by Kummi; January 20, 2020 at 22:19. |
|||||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compilation problem on Linux System | Nitin Pathak | Fluent UDF and Scheme Programming | 6 | September 29, 2018 21:26 |
[OpenFOAM.org] OpenFOAM 2.4 ParaView 4.1 compilation problem | tubois | OpenFOAM Installation | 2 | October 23, 2015 07:56 |
code compilation problem with wmake | bmikuz | OpenFOAM Programming & Development | 2 | October 17, 2012 10:30 |
OpenFoam-1.5 on Solaris -- compilation problem calling octreeDataPoint(.) constructor | cincaipatron | OpenFOAM Installation | 9 | January 11, 2010 07:37 |
Compilation problem after modifying a solver. | PetSul | OpenFOAM Running, Solving & CFD | 2 | October 1, 2009 18:28 |