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

UDS - DEFINE_PROFULE for internal faces

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2022, 12:26
Default UDS - DEFINE_PROFULE for internal faces
  #1
New Member
 
Peyman
Join Date: Jul 2021
Posts: 12
Rep Power: 5
p.norouzi.gv is on a distinguished road
I am trying to solve a UDS in a particular part of a pipe (attached file). I prepared a UDF for the source term. Now I am trying to define a face-loop for boundary condition in this section. I was wondering how I can make a loop for face boundary conditions in internal faces. I wrote the UDF, but it belongs to the external boundary. I have to define C0 and C1 as far as I know, but I could not define them.

I appreciate any help you can provide.


DEFINE_PROFILE(Boundray_FI,t,nv)
{

face_t f;
Thread *t0;
cell_t c, c0;
real x[ND_ND];
real time;
time=CURRENT_TIME;

begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
c0=F_C0(f,t);
t0=THREAD_T0(t);
F_PROFILE(f, t, nv) = C_UDSI(c0, t0, 0)+30*time;
}
end_f_loop(f,t)
}
Attached Images
File Type: jpg 2D.jpg (12.8 KB, 5 views)
p.norouzi.gv is offline   Reply With Quote

Reply


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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 06:29
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
foam-extend_3.1 decompose and pyfoam warning shipman OpenFOAM 3 July 24, 2014 09:14
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11


All times are GMT -4. The time now is 20:23.