|
[Sponsors] |
January 30, 2022, 12:26 |
UDS - DEFINE_PROFULE for internal faces
|
#1 |
New Member
Peyman
Join Date: Jul 2021
Posts: 12
Rep Power: 5 |
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) } |
|
|
|
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 |