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

Volume of cells

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2003, 11:27
Default Volume of cells
  #1
vince
Guest
 
Posts: n/a
Hello everyone,

In a subroutine, I want to multiply a quantity (that I know the value) by the volume of the cell. My problem is to get the value of this volume. I have tried to use 'specvol'. Normally this variable can be get to the subroutine but I didn't succeed to do it.

Is anyone has an idea to get the volume of cell?

Thanks

Vince
  Reply With Quote

Old   August 5, 2003, 18:12
Default Re: Volume of cells
  #2
Glenn Horrocks
Guest
 
Posts: n/a
Hi Vince,

Which code are you using?

Glenn
  Reply With Quote

Old   August 6, 2003, 08:28
Default Re: Volume of cells
  #3
vince
Guest
 
Posts: n/a
Sorry for the omission, I use CFX 5.6.

Vince
  Reply With Quote

Old   August 6, 2003, 18:37
Default Re: Volume of cells
  #4
Glenn Horrocks
Guest
 
Posts: n/a
Hi Vince,

It looks like you are using CEL to calculate this. In the documentation, on P14 it says "specvol - units m^3 - Specific volume". I suspect this is a typo in the documentation as the units should be m^3 kg^-1 as specific volume is the inverse of density. This variable is not cell volume.

What you should be using is the Volume() function, shown on page 25.

The page numbers refer to the "CFX Expression Language" section of the documentation.

Glenn
  Reply With Quote

Old   August 8, 2003, 11:43
Default Re: Volume of cells
  #5
Ribeiro
Guest
 
Posts: n/a
Hi Glenn

The volume of cell in CEL is volcvol. I found it in the VARIABLES file (CFXROOT/etc/5.6/)

Cheers
  Reply With Quote

Old   August 13, 2003, 11:12
Default Re: Volume of cells
  #6
bo
Guest
 
Posts: n/a
seems that volume() can only be used to calculate the volume of a domain or a sub-domain, but a single cell.
  Reply With Quote

Old   August 13, 2003, 11:20
Default Re: Volume of cells
  #7
bo
Guest
 
Posts: n/a
I tried to use volcvol in my CEL FORTRAN subroutine like this: sub_for(x,y,z,T,t,volcvol)

But I got an error message: "Error in subroutine CEL_GETVAR : GET_FORCALC fails to get variable needed by Expression Language GETVAR originally called by subroutine DEF_USR_SRC"

Without volcvol, it works. Could you give me some hints how to make use of this varable?

i also tried to export this variable in CFX-Post but failed. Any suggestions?

Thanks.
  Reply With Quote

Old   August 13, 2003, 15:38
Default Re: Volume of cells
  #8
Ribeiro
Guest
 
Posts: n/a
The volcvol variable is exported to Post as Volume of Finite Volumes.

Indeed, I had some problems with this variable. Tried to use it with k-epsilon model and it didn't work. It is possible that this variable is not fully implemented since it is not listed in CFX-5 documentation. Cheers
  Reply With Quote

Old   August 13, 2003, 16:56
Default Re: Volume of cells
  #9
Robin
Guest
 
Posts: n/a
Guys,

Look up volcvol in $CFXROOT\etc\VARIABLES for the short name, long name (Post) and MMS name of this variable (and others, for that matter).

I'm pretty sure this is always available.

Robin
  Reply With Quote

Old   August 13, 2003, 18:30
Default Re: Volume of cells
  #10
bo
Guest
 
Posts: n/a
Thank all you guys.

I found out why I could not export volcvol (Volume of Finite Volumes) in CFX post: the locator I selected is a SOLID domain. It may be the same reason with my subroutine.

Then the question becomes: how can I read/export "Volume of Finite Volumes" of a SOLID domain?

What I did: Define the SOLID domain as a FLUID domain, export the volcvol information I need, read the exported volcvol in my sub.

Any better solutions? Why not allowed to read/export when it's defined as a solid domain?

Best regards,

Bo
  Reply With Quote

Old   August 15, 2003, 17:03
Default Re: Volume of cells
  #11
vince
Guest
 
Posts: n/a
Sorry if I wasn't answer before, but I wasn't in my office.

Bo: as you, I had a problem to call this variable. I tried in a subroutine with the name volcvol, and I had the same answer as yours with a problem of GETVAR. But as Robin said, I think it's however possible to call it in a subroutine. As a post variable, the only thing I can say, is that I have no problem to see this variable in using Fieldview (an equivalent of POST). I'm surprised that you have a problem only when it is a solid and not when it is a fluid. I will tell you more when I succed in calling this variable

Vince
  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
[snappyHexMesh] Number of cells in mesh don't match with size of cellLevel colinB OpenFOAM Meshing & Mesh Conversion 14 December 12, 2018 08:07
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 21:11
[snappyHexMesh] snappyHexMesh aborting Tobi OpenFOAM Meshing & Mesh Conversion 0 November 10, 2010 03:23
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
[snappyHexMesh] external flow with snappyHexMesh chelvistero OpenFOAM Meshing & Mesh Conversion 11 January 15, 2010 19:43


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