CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

How to obtain pressure values on the zeroGradient boundaries of the domain?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2019, 10:01
Default How to obtain pressure values on the zeroGradient boundaries of the domain?
  #1
Senior Member
 
Deep
Join Date: Oct 2017
Posts: 180
Rep Power: 9
deepbandivadekar is on a distinguished road
As the solution progresses, for each written time-step (in each time folder), OF writes the field data for involved variables (U/p/T...). This data is also written on each boundary patch as a nonuniform list (scalar or vector depending on the variable) except for those patches where boundary condition is set to zeroGradient.

Is there a way to force OF to write those out?

Some background to the question: I use functionObject surfaceFieldValue to obtain the data on a patch. I need to assign the values obtained for this patch to another with same number of cells but I noticed that the ordering of the cells varies with no specific pattern for two different computers. (I don't know the reason for this behaviour.) So am trying to see if I can directly use these values from the time folder instead which should have the correct order (because this is what is used in Paraview to render the data). I need p,T and U at this boundary. While, T and U get printed for the patch in the time folder, p doesn't because for this patch I have set zeroGradient as the boundary condition unlike for U and T.

Can anyone give me some clues?

Thanks
deepbandivadekar is offline   Reply With Quote

Old   June 22, 2021, 10:35
Default
  #2
New Member
 
Hugh Irving
Join Date: Mar 2021
Posts: 3
Rep Power: 5
Hugh_ is on a distinguished road
Did you end up finding a solution to this?

I have essentially the same problem;
I'm looking for the field values at the outlet patch of a model, so that it can be used for the inlet of another.
Some of these are set to zeroGradient and so values are not written in lists in the time directories.
If anyone knows an alternative way to get lists of these values I'd really appreciate it!

[Edit]: As soon as I posted, this Murphy's law came into effect and I remembered paraview can be used to export a handy csv of all the patch data!

Last edited by Hugh_; June 22, 2021 at 11:36. Reason: Somewhat embarrassingly fixed my own problem
Hugh_ is offline   Reply With Quote

Old   June 22, 2021, 13:17
Default
  #3
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
Another way is extracting these values by postProcessing.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with pressure drops and values KiruBiru CFX 2 November 24, 2017 06:34
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 11:20
Sudden increase the residual of Maxwell's equations hsezsz CFX 2 October 13, 2016 07:58
Domain Imbalance HMR CFX 5 October 10, 2016 06:57
injection problem Mark New FLUENT 0 August 4, 2013 02:30


All times are GMT -4. The time now is 00:22.