|
[Sponsors] |
January 11, 2016, 07:53 |
How to get the x component of a point?
|
#1 |
New Member
Chengyu Wang
Join Date: Dec 2015
Posts: 7
Rep Power: 11 |
Hello Foamers!
I'm trying to modify decompose method, for which I need to get the x component of a point. A series of points is defined like this: Code:
pointField points Code:
points.component(vector::X) I tried points.component(vector::X)[0], points.component(vector::X).value(0), points.component(vector::X).component(0). But none of them works. Does anyone has an idea? I'd be very appreciate for your answer! Best regards Gerwang |
|
January 11, 2016, 08:18 |
|
#2 | |
New Member
Chengyu Wang
Join Date: Dec 2015
Posts: 7
Rep Power: 11 |
I figured out one way to do it, and now it works, just use:
Code:
points[0].component(vector::X) Quote:
|
||
Tags |
coordinate of points, pointfiels |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for searching the closest point to a certain point | princekar | Fluent UDF and Scheme Programming | 2 | April 26, 2015 05:53 |
block-structured mesh for t-junction | Robert@cfd | ANSYS Meshing & Geometry | 20 | November 11, 2011 05:59 |
Problem with UDF compiling for kTkLW model | Wantami | FLUENT | 0 | July 18, 2011 06:11 |
matching variable data with grid point data | anfho | OpenFOAM Programming & Development | 0 | May 6, 2011 16:28 |
UDF component in Cyliderical Velocity? | Hongchan Kim | FLUENT | 3 | April 24, 2001 13:20 |