|
[Sponsors] |
July 20, 2011, 09:19 |
Integration along a line
|
#1 |
New Member
Dijun Pan
Join Date: Jun 2011
Posts: 13
Rep Power: 15 |
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 |
|
July 20, 2011, 20:24 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
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. |
|
July 21, 2011, 07:01 |
|
#3 | |
New Member
Dijun Pan
Join Date: Jun 2011
Posts: 13
Rep Power: 15 |
Quote:
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 |
||
July 21, 2011, 09:13 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
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. |
|
July 22, 2011, 15:12 |
|
#5 | |
New Member
Dijun Pan
Join Date: Jun 2011
Posts: 13
Rep Power: 15 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 03:09 |
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 | flakid | OpenFOAM Installation | 16 | December 28, 2010 09:48 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |