CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

sampleDict Bug

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 9, 2011, 11:51
Default
  #5
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
Quote:
Originally Posted by akidess View Post
I would sample alpha and p along the walls, and use a python script to filter out values you don't want.
Good suggestion. But I see a potential problem though:

Say my phases are 0 and 1. So I know the interface or free surface occurs at 0.5. I can find out using sampleDict what the phase values are along the vertical surface. The accuracy of the phase value will depend on how many points I sample the phase along the wall vertically. So if I have 40 cells in the vertical direction, then I must sample the phase at more than 40 points - say 60 points. Now I will need to compute where the phase transition ("0.5") occurs and correlate that with all the points the pressures are measured. So there will have to be two sets of interpolation:
1. Find where 0.5 phase occurs and record the height
2. Find the corresponding height in the pressure value file. Interpolate between the values in the event there is no exact match.

Too bad OpenFOAM does not have this utility. An unfortunately I am not great at C++
musahossein is offline   Reply With Quote

 

Tags
alpha1, patches, sampledict


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
Bug about MULES::implicitSolve for interPhaseChangeFoam in OF-1.6 chiven OpenFOAM Bugs 18 April 18, 2013 22:56
Ercoftac centrifugal pump case study bug, Openfoam 1.6-ext (Floating point exception) ArianeJasmin OpenFOAM Programming & Development 1 April 4, 2012 14:11
Serious bug in LES interface fs82 OpenFOAM Bugs 21 November 16, 2009 08:15
Bug reports Mattijs Janssens (Mattijs) OpenFOAM 0 January 10, 2005 10:05
Forum y2k Bug Jonas Larsson Main CFD Forum 1 January 5, 2000 10:22


All times are GMT -4. The time now is 14:02.