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

CEL expression for projected area?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 8, 2011, 15:45
Question CEL expression for projected area?
  #1
Member
 
Kisorthman Vimalakanthan
Join Date: Apr 2011
Posts: 46
Rep Power: 14
k.vimalakanthan is on a distinguished road
Hi Guys,

Could anyone please help with the exact CEL expression to compute the projected area (normal to x axis)of an Iso clip (3D surface)?

I have tried:

area()@IsoClip1 = seems to give me a very large value
area_x()@IsoClip1 = Seems to give me a smaller value than expected (in the order of 10)

Lastly I was told to try

IsoClip1.area_x()@IsoClip1

Which gives an error message as such:

"ERROR
The following unrecognised name was referenced: IsoClip1.area_x."

Any help is greatly appreciated,
Thanks in advance.
__________________
Kisorthman Vimalakanthan
Dept. of Power and Propulsion
Cranfield University
Email: k.vimalakanthan@gmail.com

Last edited by k.vimalakanthan; November 8, 2011 at 16:11.
k.vimalakanthan is offline   Reply With Quote

Old   November 8, 2011, 17:35
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If your iso clip is wrinkly it will have a massive area. The area_x function will not give you the projected area if it is a folded or wrinkly surface.

I would try to define a new iso clip surface which is flat and the area of that should not be a problem.
ghorrocks is offline   Reply With Quote

Old   November 8, 2011, 17:47
Default
  #3
Member
 
Kisorthman Vimalakanthan
Join Date: Apr 2011
Posts: 46
Rep Power: 14
k.vimalakanthan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
If your iso clip is wrinkly it will have a massive area. The area_x function will not give you the projected area if it is a folded or wrinkly surface.

I would try to define a new iso clip surface which is flat and the area of that should not be a problem.
Thanks ghorrocks,

Basically I'm trying to calculate force operating (projected) area of the small span wise section of a turbine blade (iso clip), which is fairly smooth in this case. This will help me to calculate the coefficient of thrust and torque value for this annulus element.

Do you have any other CEL expressions that I could use to preform this area calculation?

Thanks in advance
__________________
Kisorthman Vimalakanthan
Dept. of Power and Propulsion
Cranfield University
Email: k.vimalakanthan@gmail.com
k.vimalakanthan is offline   Reply With Quote

Old   November 8, 2011, 17:50
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you want the force then use the force_x/y/z functions.
ghorrocks is offline   Reply With Quote

Old   November 8, 2011, 20:00
Default
  #5
Member
 
Kisorthman Vimalakanthan
Join Date: Apr 2011
Posts: 46
Rep Power: 14
k.vimalakanthan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
If you want the force then use the force_x/y/z functions.
Well CFX Post calculates the forces and moments (thrust and torque) on the iso clip fine, but I'm trying to calculate the non dimensional torque and thrust* for this anulus element. This require the force operating area (projected area).

i.e. Ct = Thrust / (q*dA)

so Ct = force_x()@IsoClip1/(DynH*dA)

I need to find the exact 'dA' that this force (force_x()@IsoClip1) was calculated on.
__________________
Kisorthman Vimalakanthan
Dept. of Power and Propulsion
Cranfield University
Email: k.vimalakanthan@gmail.com
k.vimalakanthan is offline   Reply With Quote

Old   November 8, 2011, 23:22
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The area() and area_x() functions should work. Can you give more details as to why it is wrong? Can you show and image of what you are doing?
ghorrocks is offline   Reply With Quote

Old   November 9, 2011, 12:13
Default
  #7
Member
 
Kisorthman Vimalakanthan
Join Date: Apr 2011
Posts: 46
Rep Power: 14
k.vimalakanthan is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
The area() and area_x() functions should work. Can you give more details as to why it is wrong? Can you show and image of what you are doing?
Hi ghorrocks,

Unfortunately, I'm not in a position to display the image of the geometry, however I have found this in the CFX manual:

"area
The area function is used to calculate the area of a 2-D location"

and

"An error is raised if the location specified is not a 2-D Object"

Does this mean that, the projected area of a 3D surface cannot be computed in CFX Post?
I have tried using TecPlot but had no luck too
__________________
Kisorthman Vimalakanthan
Dept. of Power and Propulsion
Cranfield University
Email: k.vimalakanthan@gmail.com
k.vimalakanthan is offline   Reply With Quote

Old   November 9, 2011, 19:17
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The area function returns the area of a surface body. The surface can be twisted in space, it will return the surface area of the whole body. The error shows you are giving it a point, line or solid body and you cannot use the area function on them.

I do not know off hand how to get projected areas but it should be possible. You will probably have to do some playing around to get it.
ghorrocks is offline   Reply With Quote

Old   July 2, 2023, 14:57
Default CEL expression for projected area on direction vector?
  #9
New Member
 
Join Date: Dec 2015
Posts: 3
Rep Power: 10
Archiboss is on a distinguished road
Hi Guys,

Could anyone please help with the exact CEL expression to compute the projected area (normal to direction vector) of several surfaces?

I have tried:

area([0.7071 0.7071 0])@[surface_1 surface_2]

Which gives an error message
Archiboss is offline   Reply With Quote

Old   July 2, 2023, 20:10
Default
  #10
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,665
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Generate a coordinate system for your direction vector. Then use the area_x/y/z function in that coordinate system to get the projected area. The function can only accept one surface reference, so for multiple surfaces you are going to have to call the function once per surface and sum them up.
Archiboss likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   July 3, 2023, 11:17
Default
  #11
Senior Member
 
Join Date: Jun 2009
Posts: 1,788
Rep Power: 31
Opaque will become famous soon enough
First of all, the documentation is the source of information for the syntax of the CEL functions. You should also understand how the description of the syntax is done.

Notice [ ] are used for optional features, and they are not supposed to be typed. For example,

[Fluid Name].massFlow()@Locator

means you can type

MyExpression = massFlow()@Locator
MyFluidExpression = Water.massFlow()@Locator

In the case of directions, you can type

MyProjArea = area_x()@Locator
MyProjAreaLocalFrame = area_x_Coord 1()@Locator

Locator must be a 2D object, it does not mean it is a flat surface but any surface, not a point or a volume.

On the projected area, keep in mind that the projected area of a sphere is always zero in any direction. So be careful if that is what you want.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Old   July 3, 2023, 12:54
Default
  #12
New Member
 
Join Date: Dec 2015
Posts: 3
Rep Power: 10
Archiboss is on a distinguished road
Thank you for the answer. It helps.
Archiboss is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CEL expression vmlxb6 CFX 1 March 18, 2011 07:39
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
CFX Solver Memory Error mike CFX 1 March 19, 2008 08:22
Lift, Drag Vs time chart,calculations Jamesd69climber CFX 8 February 17, 2005 18:23


All times are GMT -4. The time now is 13:37.