|
[Sponsors] |
Small toolkit for reconstructing and interpolating fields |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 14, 2012, 20:33 |
Small toolkit for reconstructing and interpolating fields
|
#1 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
After looking into the issue described in this thread: http://www.cfd-online.com/Forums/ope...rsion-dat.html - I decided to look deeper into this and created a couple of hopefully useful utilities based on OpenFOAM technology for both direct usage, as well as educational purposes:
Best regards, Bruno
__________________
|
|
January 19, 2015, 13:56 |
|
#2 |
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22 |
Dear Bruno,
I'm working in a case where I need to create some fields with the function object ExpressionField. These fields are of the type surfaceScalarField (I tried to do it with volScalarFields but I had problems since these fields are manipulated only at patches). As they are surfaceScalarFields I can't display them in paraview, for this reason I asked in another thread what I could do regarding this issue. I was told about the tool you developed (you can find more info here:using swak4foam to implement a BC for heat convection with h(Tamb,Twall)) so I gave it a try to see if it was what I really needed. At first, it looked like it was going to suit my needs perfectly. However, when I tried it I found out that it was developed to work only for single domain cases (it has no -region flag). My case is a multi region one so, as far as I know, this tool is not usable in my case. Is there any solution to it? Thanks in advance. Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! |
|
January 19, 2015, 15:48 |
|
#3 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Alex,
Quote:
If you want to try and solve this on your own, have a look at the source codes for the utilities in OpenFOAM. You can find the path to their main folder by running: Code:
echo $FOAM_UTILITIES Bruno
__________________
|
||
January 19, 2015, 16:00 |
|
#4 | |
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22 |
Quote:
Thanks. Best regards, Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! |
||
January 25, 2015, 17:42 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Alex,
I've pushed just now the requested change. The "-region" should now work as intended... uh, after you download/"git pull" to update the source code and then rebuild, otherwise it won't work Problem is that the utility "reconstructSurfaceField" will not do what you're looking for. More details are explained here:
If you need to see the surface scalar fields, then try using the following steps (should work with OpenFOAM 2.*):
Best regards, Bruno
__________________
|
|
Tags |
interpolate, reconstruct |
|
|