|
[Sponsors] |
January 29, 2012, 15:53 |
SurfaceFields on paraFoam
|
#1 |
New Member
Javier Garcia
Join Date: Sep 2009
Posts: 7
Rep Power: 17 |
Dear Foamers,
I need to plot surfaceScalarFields (like phi) in paraFoam. I have modified interFoam solver to create some surfaceScalarFields (openFoam 2.1.0). When I run the solver the corresponding field-files are created nicely in their respective time-folders. I have already run foamToVTK -surfaceFields and I have got the VTK subdirectory. I have also used a Glyph filter. My problem is that I cannot see any surfaceScalarField in the "Color by" pop-up menu. so I am unable to plot them. Could anyone help me please? Thanks. Javier Garcia |
|
February 4, 2012, 18:05 |
surfaceFields
|
#2 |
New Member
Javier Garcia
Join Date: Sep 2009
Posts: 7
Rep Power: 17 |
Could anyone help me please?
Javier Garcia |
|
February 10, 2012, 16:18 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Javier and welcome to the forum!
If you attach one of those VTK files, or a small example case, it would be a lot easier to help you! Otherwise, all we can do is guess: the surface scalar field probably only has vectors, but no scalars. Most you can get is coloring based on length/magnitude of the vectors. Best regards, Bruno
__________________
|
|
February 10, 2012, 20:19 |
|
#4 |
New Member
Javier Garcia
Join Date: Sep 2009
Posts: 7
Rep Power: 17 |
Thanks wyldckat for your reply. I am using OpenFoam 2.1.0. I need to calculate the whole volume exiting a pipe, and take it into account in order to modify the pressure within a vessel. So I took interFoam as a starting point, and I have created a surfaceScalarField in createFileds.H called localVolume:
surfaceScalarField localVolume ( IOobject ( "localVolume", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), phi*scalar(0)*runTime.deltaT() ); Field localVolume is defined as (time integral of phi): localVolume = phi * runTime.deltaT() + localVolume; Later, I have created a groovyBC in patch inlet for p_rgh, using a variable called exitVolume in patch atmosphere: inlet { type groovyBC; value uniform 1; valueExpression "1/pow(1+0.001*exitVolume,1.4)"; gradientExpression "0"; fractionExpression "1"; variables "exitVolume{atmosphere}=sum(localVolume);"; } My case runs beautifully. My only problem is that I cannot see field localVolume (neither phi) in paraFoam, because it is a surfaceScalarField and it does not appear in any of the pull-down menus of fields offered in paraFoam. How should I proceed in order to visualize my field localVolume (or phi for that matter)? Could you, please, offer a step-by-step procedure to do so? I shall be very grateful if you could do it. Thanks and best regards. Javier Garcia |
|
February 11, 2012, 12:10 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Javier,
OK, now I understand. These fields are only points, although we can't display them directly. The solution is somewhat simple:
Bruno
__________________
|
|
February 11, 2012, 17:23 |
|
#6 |
New Member
Javier Garcia
Join Date: Sep 2009
Posts: 7
Rep Power: 17 |
Thank you very much Bruno. Now I can see some nice arrows of surfaceScalarField localVolume.
You have been most helpfull. Thanks and best regards. Javier Garcia |
|
October 3, 2016, 18:41 |
|
#7 |
Member
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 12 |
Old thread, but I'm having a hard time with this one.
I can load the surface gradient field i itend to watch following Wyldcat's steps.... but i can't make them appear in the surfaces. They appear all over the place though.... Any way to control the surface the glyph appears? Best regards, |
|
December 5, 2016, 14:33 |
|
#8 | |
Member
Camille Bilger
Join Date: Jul 2013
Posts: 43
Rep Power: 13 |
Quote:
I am trying to perform a similar task, with a surfaceVectorField (the interface normal extracted from interfaceProperties in interFoam, that I called nHat). It is being correctly outputted to the time folders, a long list of vectors, no scalars. I have run Code:
foamToVTK -surfaceFields but nHat does not appear in the drop down menu after applying the Glyph filter. How can I check that Code:
foamToVTK -surfaceFields Thank you for your help. |
||
December 6, 2016, 05:58 |
|
#9 |
Member
Camille Bilger
Join Date: Jul 2013
Posts: 43
Rep Power: 13 |
sorry I realised my mistake, the file to load being VTK/surfaceFields/surfaceFields_
|
|
March 31, 2022, 08:49 |
|
#10 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Hello kmou,
Can I know how did you extract nHat from interface properties in interfoam. I want nHatfv from interface properties. Can you tell me how to extract them. Thanks in advance. Last edited by saicharan662000@gmail.com; April 4, 2022 at 04:58. |
|
Tags |
parafoam, paraview, surfacefields, surfacescalarfields |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Unable to launch parafoam & | boonhow | ParaView | 5 | March 23, 2022 09:09 |
[OpenFOAM.com] paraFoam cannot open due to Qt issues - [Solved/Information] | u2berggeist | OpenFOAM Installation | 2 | July 2, 2018 18:03 |
[OpenFOAM] Problem with spaces in paraFoam execution | chrisb2244 | ParaView | 1 | November 9, 2013 16:06 |
[OpenFOAM] How to use paraFoam on a cluster | andreas | ParaView | 1 | March 6, 2013 18:11 |
[OpenFOAM] OpenFoam (Ubuntu): paraFoam via Xming+PuTTY | raketenmaid | ParaView | 4 | February 5, 2013 06:20 |