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

Integration along a line

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2011, 08:19
Default Integration along a line
  #1
New Member
 
Dijun Pan
Join Date: Jun 2011
Posts: 13
Rep Power: 14
zcesd47 is on a distinguished road
Hi all friends,

I have a problem which required the Z coordinate at a polyline and integrate it with respected to x . eg. Z^2dx

How can I create variable which gives me the Z^2 value at the polyline?

Thank you in advance

Dijun
zcesd47 is offline   Reply With Quote

Old   July 20, 2011, 19:24
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,696
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Two ideas:

1) Generate a user variable defined as z^2, and integrate that alone the polyline.
2) use a CEL expression like lineInt(z^2)@polyline and calculate it directly. This can be done in the table view.
ghorrocks is offline   Reply With Quote

Old   July 21, 2011, 06:01
Default
  #3
New Member
 
Dijun Pan
Join Date: Jun 2011
Posts: 13
Rep Power: 14
zcesd47 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Two ideas:

1) Generate a user variable defined as z^2, and integrate that alone the polyline.
2) use a CEL expression like lineInt(z^2)@polyline and calculate it directly. This can be done in the table view.
Hi, Ghorrocks,

thanks for your help again.
But if I use lengthInt()@Polyline 1, the result will be the integration with respected to polyline. I try to use the z^2 in the polyline but integrate it with respected to x.

Regards

Dijun
zcesd47 is offline   Reply With Quote

Old   July 21, 2011, 08:13
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,696
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I see. You might be able to transform the integral into a with respect to length (dl) integral using a chain rule or something like that. Been so long since I have done that sort of stuff I can't remember off the top of my head.

Otherwise export the points of your polyline including XYZ values of the points and then you can do the integration in another package like excel, tecplot or matlab.
ghorrocks is offline   Reply With Quote

Old   July 22, 2011, 14:12
Default
  #5
New Member
 
Dijun Pan
Join Date: Jun 2011
Posts: 13
Rep Power: 14
zcesd47 is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
I see. You might be able to transform the integral into a with respect to length (dl) integral using a chain rule or something like that. Been so long since I have done that sort of stuff I can't remember off the top of my head.

Otherwise export the points of your polyline including XYZ values of the points and then you can do the integration in another package like excel, tecplot or matlab.
Thank you very much! I didn't figure out the way you said but I did the integration by using areaInt_z at the surface then divided by the width of the surface
zcesd47 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
[Gmsh] Problem with Gmsh nishant_hull OpenFOAM Meshing & Mesh Conversion 23 August 5, 2015 02:09
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 14:00
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 00:21.