CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Cell Info

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2009, 00:20
Default Cell Info
  #1
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hi,
plz tell me how can i get info about a cell, after meshing has been done.plz tell me as I am a beginner and using version 1.5 of OpenFoam
mrj301988 is offline   Reply With Quote

Old   January 19, 2009, 01:34
Default Hi, if you need information
  #2
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 119
Rep Power: 17
tian is on a distinguished road
Hi,

if you need information about your mesh without paraview you can use the "checkMesh".

Bye
Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance.
tian is offline   Reply With Quote

Old   January 19, 2009, 01:47
Default hi thnkx for ur advice, I h
  #3
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hi

thnkx for ur advice, I have tried that,
i wanted info abt cells on a particular patch.
if u know then plz inform me.
mrj301988 is offline   Reply With Quote

Old   January 19, 2009, 02:07
Default hi if u know then plz tell
  #4
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hi

if u know then plz tell me, how can i find magnitude of forces acting on a cell, in paraview or without it
mrj301988 is offline   Reply With Quote

Old   January 19, 2009, 03:14
Default Hi, a) in paraview there ar
  #5
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 119
Rep Power: 17
tian is on a distinguished road
Hi,

a) in paraview there are some filters to show the mesh quality also. If you need only a particular patch than switch off the other patchs...

http://paraview.org/OnlineHelpCurrent/MeshQuality.html

b) If there is not a special filter for your case about forces (magnitude). You also can try to use the "calculator" in paraview and write down your own equation.

http://paraview.org/OnlineHelpCurrent/Calculator.html

Bye
Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance.
tian is offline   Reply With Quote

Old   January 19, 2009, 03:47
Default hi Tian thnkx for ur advice
  #6
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hi Tian

thnkx for ur advice
i will definetely try it
mrj301988 is offline   Reply With Quote

Old   January 19, 2009, 04:32
Default hi, when I use calculator f
  #7
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hi,

when I use calculator following message is shown,
plz do tell me how to rectify it?

ERROR: In /home/dm2/henry/OpenFOAM/ThirdParty/ParaView3.3-cvs/VTK/Common/vtkFunctionParser .cxx, line 1473
vtkFunctionParser (0x1e229a0): Syntax error: expecting a variable name; see position 0
mrj301988 is offline   Reply With Quote

Old   January 19, 2009, 05:02
Default Hi, you make some misstake
  #8
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 119
Rep Power: 17
tian is on a distinguished road
Hi,

you make some misstake in equation...

Excample:

you got from your solultion Scalars:

X_Velocity
Y_Velocity
Z_Velocity

Calculator Magnitude: sqrt((X_VELOCITY^2)+(Y_VELOCITY^2)+(Z_VELOCITY^2))

Result Arry Name: Result

Change the Display to: "Result"

Bye
Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance.
tian is offline   Reply With Quote

Old   January 19, 2009, 05:30
Default can u plz tell me the equation
  #9
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
can u plz tell me the equation in right format, to find force on each cell
mrj301988 is offline   Reply With Quote

Old   January 19, 2009, 06:28
Default plz tell me equation for force
  #10
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
plz tell me equation for force on each cell in case of a lid driven cavity.
mrj301988 is offline   Reply With Quote

Old   January 19, 2009, 07:24
Default Hi, about forces have a loo
  #11
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 119
Rep Power: 17
tian is on a distinguished road
Hi,

about forces have a look here:

http://www.cfd-online.com/cgi-bin/Op...how.cgi?1/8402

it seems there are some utilities about forces in OF...

Bye
Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance.
tian is offline   Reply With Quote

Old   January 20, 2009, 04:00
Default hi Tian thnkx for ur advice,p
  #12
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hi Tian
thnkx for ur advice,plz tell me for a lid driven cavity,for a particular patch e.g.moving wall how can i find the co-ordinates of face centre and the value of pressure at that point
mrj301988 is offline   Reply With Quote

Old   January 20, 2009, 04:10
Default Hi, if I remember well ther
  #13
Senior Member
 
tian's Avatar
 
Tian
Join Date: Mar 2009
Location: Berlin, germany
Posts: 119
Rep Power: 17
tian is on a distinguished road
Hi,

if I remember well there was some information about coordinates of face centre in the forum:

"
const vectorField& c = patch().Cf();

Now in variable c you have a vector of each face centre for all faces in your patch.

vectorField will give you a list of vectors for each face centre, each element of which contains the (x y z) coordinates.
"

About the pressure should be working similar...

Bye
Thomas
__________________
BIM HVACTool, The Green Building Simulation Tool for OpenFOAM, Energy Plus and Radiance.
tian is offline   Reply With Quote

Old   January 20, 2009, 06:10
Default hello, plz tell me how to c
  #14
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hello, plz tell me

how to calculate the force and moment on a patch or set of patches, e.g. to calculate the lift, drag and moment of an object in the flow.
how to calculate the normalised force and moment on a patch or set of patches, e.g. to calculate the lift, drag and moment coefficients of an object in the flow.
mrj301988 is offline   Reply With Quote

Old   January 21, 2009, 02:10
Default hi, thknx for advice, I cou
  #15
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hi,

thknx for advice, I could find all parameters,
plz do tell how can i find area of a cell
mrj301988 is offline   Reply With Quote

Old   January 21, 2009, 03:07
Default Hi Mat, @ "area of a cell":
  #16
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
Hi Mat,

@ "area of a cell": This is not well defined.

Are you after the total area of all faces of a cell, the area of a specific face of a cell or a list of areas for all faces of a patch?

Henrik
henrik is offline   Reply With Quote

Old   January 21, 2009, 03:12
Default hi Henrik I am after list of
  #17
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hi Henrik
I am after list of areas for all faces of a patch.
if u know then plz tell me
mrj301988 is offline   Reply With Quote

Old   January 21, 2009, 04:26
Default Hi Mat, Sure! const scal
  #18
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
Hi Mat,

Sure!

const scalarField& area = patch().magSf();

Henrik
henrik is offline   Reply With Quote

Old   January 21, 2009, 07:48
Default hi Henrik, plz tell me if t
  #19
New Member
 
Mat
Join Date: Mar 2009
Location: Mumbai, Maharashtra, India
Posts: 20
Rep Power: 17
mrj301988 is on a distinguished road
hi Henrik,

plz tell me if there is any utility to find area of a patch(all cells in a patch)
mrj301988 is offline   Reply With Quote

Old   January 22, 2009, 16:26
Default Hi Mat! You could always ab
  #20
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Mat!

You could always abuse the patchIntegrate-utility. Set the boundary condition for some field on that patch to 1 and run the utility on it. The value of the integral should be the patch area.

Bernhard
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
Simulating fire in a tunnel luca1992 OpenFOAM 14 August 16, 2017 13:50
[Gmsh] 3D coil mesh: can't create the volume? RomainBou OpenFOAM Meshing & Mesh Conversion 3 July 18, 2016 05:09
Journal file error magicalmarshmallow FLUENT 3 April 4, 2014 12:25
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
cell to cell relation CMB Siemens 1 December 4, 2003 04:05


All times are GMT -4. The time now is 09:45.