CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

How to find a face that given a point (x,y,z)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 3, 2022, 21:46
Default How to find a face that given a point (x,y,z)
  #1
New Member
 
Join Date: Nov 2022
Posts: 10
Rep Power: 4
rephical is on a distinguished road
Hey all, I have this csv file which contains the x,y,z coordinates of photons (points) and the power per photon. Each face may have more than one point on them. My goal is to get the face that contains these points and assign a heat flux boundary condition to them.

How do I get the face a given point is currently in?
rephical is offline   Reply With Quote

Old   December 5, 2022, 02:40
Default
  #2
New Member
 
Prasant
Join Date: Sep 2020
Location: India
Posts: 13
Rep Power: 6
PKP_India is on a distinguished road
Quote:
Originally Posted by rephical View Post
Hey all, I have this csv file which contains the x,y,z coordinates of photons (points) and the power per photon. Each face may have more than one point on them. My goal is to get the face that contains these points and assign a heat flux boundary condition to them.

How do I get the face a given point is currently in?
you can access the centroid of the face using F_CENTROID(x,f,t) to locate the face where your photon coordinates lie. Then identify these faces and store them in F_UDMI and assign the heat flux B.C later.
PKP_India is offline   Reply With Quote

Reply

Tags
face, udf code


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
[OpenFOAM.org] Installing OpenFOAM-2.4.0-MNF on Ubuntu 18.0.4 mr35diamonds OpenFOAM Installation 4 March 4, 2023 00:40
[blockMesh] Floating Point Exception while generating wedge based mesh jns-v OpenFOAM Meshing & Mesh Conversion 9 July 8, 2021 06:36
Simulating fire in a tunnel luca1992 OpenFOAM 14 August 16, 2017 14:50
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
block-structured mesh for t-junction Robert@cfd ANSYS Meshing & Geometry 20 November 11, 2011 05:59


All times are GMT -4. The time now is 11:01.