|
[Sponsors] |
patchExpression with alpha in OF 2.2.0 - calculate heat flux |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 18, 2013, 17:31 |
patchExpression with alpha in OF 2.2.0 - calculate heat flux
|
#1 |
New Member
Join Date: Aug 2012
Posts: 13
Rep Power: 13 |
Hello,
I used the patchExpression "alpha)*area()*snGrad(h)" with swak4Foam to monitor the heat flux on a patch in OF 2.1.x. This worked very well. Since I have updated to OF 2.2.0 I get an error "Parser Error for driver PatchValueExpressionDriver at "1.2-3" :"field alpha not existing or of wrong type. Has anybody an idea how to acces the thermal diffusivity in OF 2.2.0 in a patchExpression? Or does anybody know another way to monitor the wallHeatFlux. Thanks RMF |
|
April 22, 2013, 18:36 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
alpha_ ( IOobject ( phasePropertyName("thermo:alpha"), mesh.time().timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), Will look at this as soon as I find the time. Bug report might speed it up
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
April 24, 2013, 09:11 |
|
#3 |
New Member
Join Date: Aug 2012
Posts: 13
Rep Power: 13 |
This is what I found out as well in the meantime: alpha is called thermo:alpha (I used the "bananas"-trick with a wirteRegisteredObject). But as you've assumed, swak4Foam does not accept the ":" in thermo:alpha.
For those, who have a similar problem: As a workaround I modified the solver and registered an additional field alpha, which is updated at the end of each timestep with the values from thermo:alpha. This is probably inefficient, but it is working for the moment. If there are any better ideas, I'd be glad to hear them. I will report a bug and hope you will find the time to modify swak4Foam in the near future. Anyway, thank you for your answer. Bye RMF |
|
April 24, 2013, 21:19 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
aliases { alpha thermo:alpha; }
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
April 28, 2013, 20:03 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 2, 2013, 04:49 |
|
#6 |
New Member
Join Date: Aug 2012
Posts: 13
Rep Power: 13 |
Thank you very much. You were really quick. But it's still not working for me (maybe it's my fault):
I changed my function to HeatLoss { type patchExpression; patches (CAVITYIN CAVITYBACK); verbose true; aliases { alpha thermo:alpha } expression"(alpha+alphat)*area()*snGrad(h)"; accumulations (sum); } but now I get the error message: No field of type scalar with the name alpha found Fields of type: volScalarField 17 ( thermo:mu ... Something changed, but it's still not working... Did I use the aliases wrong? The other variation I tested led to the old error message. Bye RMF Last edited by RMF; May 2, 2013 at 15:40. |
|
May 4, 2013, 07:23 |
|
#7 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
May 4, 2013, 09:05 |
|
#8 |
New Member
Join Date: Aug 2012
Posts: 13
Rep Power: 13 |
I am using the buoyantSimpleFoam solver of OF 2.2.0
Thanks Bye RMF |
|
May 4, 2013, 18:46 |
|
#9 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Seems like the aliasing wasn't added to ALL relevant functions. A fix is now pushed to the development repository on sourceforge
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
|
May 15, 2013, 13:50 |
|
#10 |
New Member
Join Date: Aug 2012
Posts: 13
Rep Power: 13 |
Sorry for the late reply: I was busy last week...but I now I had some time to test your modification. It's working now. Thank you very much!
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Total heat transf. rate vs Total surface heat flux | Renato Sousa | FLUENT | 1 | April 14, 2020 04:27 |
Wall Heat Flux & Temperature | Greg Perkins | FLUENT | 10 | November 20, 2015 10:32 |
Radiation interface | hinca | CFX | 15 | January 26, 2014 18:11 |
heat flux distribution | gtheo | CFX | 2 | April 27, 2011 04:36 |
monitoring dynamic heat flux through a surface | abdnakhi | FLUENT | 0 | August 15, 2005 10:57 |