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

How can I define the cell centers without using writeCellCenters?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2011, 07:34
Default How can I define the cell centers without using writeCellCenters?
  #1
New Member
 
Taylorreihe
Join Date: Dec 2010
Posts: 4
Rep Power: 15
Taylorreihe is on a distinguished road
Hello,

I want to define the cell centers so I have the coordinates for my Velocity U and my pressure p without using the command writeCellCenters. I have a mesh that do not move. Can somebody help me and know a method to avoid that the coordinates are written in every time directory?

Thank you in advance.
Taylorreihe is offline   Reply With Quote

Old   April 21, 2011, 08:35
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi

You can typically write

Code:
writeCellCentres -help
to see the available options. In your case you can use either

Code:
writeCellCentres -latestTime
writeCellCentres -time <VALUE>
depending on the time folder, where you want the values to be written.

Best regards

Niels
ngj is offline   Reply With Quote

Old   April 23, 2011, 17:35
Default
  #3
New Member
 
Taylorreihe
Join Date: Dec 2010
Posts: 4
Rep Power: 15
Taylorreihe is on a distinguished road
Hi Niels,

thank you very much :-)! It's quite simple :P.

Have a nice weekend.

Best regards,
Kris
Taylorreihe is offline   Reply With Quote

Old   May 5, 2011, 06:54
Default
  #4
New Member
 
Join Date: Mar 2011
Posts: 6
Rep Power: 15
sakro is on a distinguished road
Hi, my question is pretty much related to this thread =)
is it possible to get cell centers only for a cellSet? Not for every cell in my mesh?
sakro is offline   Reply With Quote

Old   February 19, 2016, 12:46
Default
  #5
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
I have some trouble with this utility.
I used it on the channel395 tutorial case and grid points don't make any sense:
Y is defined from 0 to 2 in blockMeshDict, but values for both block start from zero to 1. Also the second block is upside down.
There is only 15 unique Z values while there should be 30. Also there is no block in the Z direction so one doesn't expects any irregularity in that direction.

I don't expect the values be ordered (since the grid is stored in an unstructured manner), but I would expect the grids to have correct physical positions. Does anyone knows how to achieve this?

Last edited by anishtain4; February 19, 2016 at 14:32.
anishtain4 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
Re: scalar transport equation problem Benny FLUENT 5 March 22, 2018 13:28
How can I get Help? Scalar transport_source term lig Fluent UDF and Scheme Programming 0 May 9, 2010 22:30
How to calculate the cell area Le FLUENT 0 February 18, 2007 22:15
How to define diffusivities in Fuel cell Model braket FLUENT 1 February 17, 2007 18:08
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24


All times are GMT -4. The time now is 04:41.