|
[Sponsors] |
June 11, 2015, 12:11 |
wallHeatFlux in rhoCentralFoam
|
#1 |
New Member
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12 |
Hi,
I would like to calculate the wallHeatFlux with rhoCentralFoam but i always get an error: "Trying to construct an genericFvPatchField on patch movingWall of field e" I am using OpenFoam 2.1.x but i have tried it with newer versions and i couldn't figure it out. Could anyone help me? |
|
June 12, 2015, 18:02 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: Please provide more details. For example, which tutorial case can be used for achieving the same result?
I ask this because I tried "compressible/rhoCentralFoam/forwardStep" and got a completely different error. |
|
June 12, 2015, 18:08 |
|
#3 |
New Member
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12 |
Hi Bruno,
I am trying my own case. A simple lid driven cavity flow.Here is my thermophysical properties.However,the problem arise from the T file and the smoluwskiJump property.I don't know why |
|
June 12, 2015, 18:37 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Chariton,
Still doesn't get me much. Are you certain you're using 2.1.x? Because I get this error message: Code:
--> FOAM FATAL ERROR: Not implemented From function basicThermo::h() in file basicThermo/basicThermo.C at line 260. FOAM aborting Either way, try adding this line to your "system/controlDict": Code:
libs ("librhoCentralFoam.so"); Note: if you already have the "libs" entry, then keep in mind it's a list, e.g.: Code:
libs ( "librhoCentralFoam.so" "libOpenFOAM.so" ); Bruno
__________________
|
|
June 12, 2015, 18:44 |
|
#5 |
New Member
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12 |
Hi Bruno,
I did modified the library.I am now moved to Openfoam 2.2.2. My problem is that if i include the rhoCentralFoam in the libraries i will not get any error at all. However, when i try to view the results, the wallHeatFlux is always 0. Similar problem can be found on the post below. http://www.cfd-online.com/Forums/ope...heat-flux.html I followed these instructions. The wallHeatFlux can work. My main questions-mentios are: 1)If i turn to OpenFoam 2.1.x i will get errors or not? 2)If i choose fixedValue in 0/T everything its ok. A friend of mine suggested me the below: snGrad(T) = grad(T) & n n is normal vector that you need to define it. But i don't know how to define the n normal vector. Could you help me defining that? Thanks Chariton |
|
June 12, 2015, 20:25 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer:
|
|
June 14, 2015, 13:35 |
|
#7 |
New Member
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12 |
Hi Bruno,
I have checked what you suggested me and i commented out that line but without any results. I have attached the test case if this can help |
|
June 14, 2015, 13:43 |
|
#8 |
New Member
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12 |
Hi Bruno,
I am attaching also the wallHeatFlux |
|
August 18, 2015, 17:06 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Chariton,
Sorry, but only today did I finally managed to look into this. I've tested the case "kn0.005" that you provided in post #7 and I was able to get results by doing the following steps:
edit: I went back and re-read your posts. So the problem was in visualizing the results. That's because you have to load the patches in ParaView, instead of the internal mesh, as shown in the attached image. Best regards, Bruno
__________________
Last edited by wyldckat; August 18, 2015 at 17:09. Reason: see "edit:" |
|
August 19, 2015, 14:23 |
|
#10 |
New Member
chariton christou
Join Date: Feb 2014
Posts: 26
Rep Power: 12 |
Hi Bruno,
Thank you for your reply and for your time. I figure it out by editing the code and now its ok. However, i will try your suggestion as well. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modify rhoCentralFoam: other equations of state | fivos | OpenFOAM Programming & Development | 5 | July 29, 2020 14:17 |
how to use wallHeatFlux for incompressible problem? | hswzzz | OpenFOAM Post-Processing | 1 | April 14, 2015 07:25 |
Something doens't work with wallHeatFlux utility or externalWallHeatFluxTemperat BC!! | zfaraday | OpenFOAM Post-Processing | 0 | February 5, 2015 17:47 |
problem with WallHeatFlux | Roman1 | OpenFOAM Running, Solving & CFD | 1 | January 24, 2014 11:31 |
rhoCentralFoam and wallHeatFlux | RomW | OpenFOAM Post-Processing | 8 | November 8, 2012 11:22 |