|
[Sponsors] |
July 7, 2016, 19:14 |
Two questions regarding DEFINE_PROFILE
|
#1 |
Senior Member
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13 |
Hi,
I have some questions regarding the udf DEFINE_PROFILE thhats making modeling very difficult. 1. the f_loop(): what is the order of looping? 2. Is there any what to apply a temperature field (T(x,y,x)) using this macro, in 3-D. ie, I do not have function, but I have values of T at discrete points. Similar to "read profile", But I don't know if I can apply that profile using DEFINE_PROFILE, |
|
July 7, 2016, 20:38 |
|
#2 |
Senior Member
Join Date: Mar 2015
Posts: 892
Rep Power: 18 |
Ordered by the face thread, face_t f (integer). They'll mostly be sequential in the mesh but won't be strictly structured.
DEFINE_PROFILE is for boundaries. Are you creating a source generation term? You could add source terms to the energy equation with DEFINE_SOURCE. Otherwise, you could modify the solution with DEFINE_ADJUST (beginning of each iteration) -- but be careful of convergence issues when modifying field variables. |
|
July 13, 2016, 15:02 |
|
#3 | |
Senior Member
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13 |
Quote:
I have wall1 and wall2 (among other things in the model). Both are boundary walls. I want to set a heat flux BC for wall 2. Qwall2(z)= Qwall1(z) Since heatflux varies spatially, I want a way to map this heat-flux to wall 2. Can I do this within the udf? -------------------- that was my first question. Second was regarding the f_loop macro so that I can map from one face thread to other. thanks |
||
July 13, 2016, 15:04 |
|
#4 |
Senior Member
nm
Join Date: Mar 2013
Posts: 100
Rep Power: 13 |
Just to simplify,
If I have Q(x,y,z) at discrete points (ie. a matrix/tensor), can I apply this on a wall through a udf? |
|
Tags |
fluent, profile, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Frequently Asked Questions about Installing OpenFOAM | wyldckat | OpenFOAM Installation | 3 | November 14, 2023 12:58 |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
Simple questions regarding CCM+ tutorials | daniel1030 | STAR-CCM+ | 2 | December 28, 2014 01:03 |
possible interview questions | atturh | Main CFD Forum | 1 | February 21, 2012 09:53 |
NACA0012 Validation Case Questions | ozzythewise | Main CFD Forum | 3 | August 3, 2010 15:39 |