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

Two questions regarding DEFINE_PROFILE

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2016, 18:14
Default Two questions regarding DEFINE_PROFILE
  #1
Member
 
nm
Join Date: Mar 2013
Posts: 99
Rep Power: 11
nvarma is on a distinguished road
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,
nvarma is offline   Reply With Quote

Old   July 7, 2016, 19:38
Default
  #2
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 16
`e` is on a distinguished road
Quote:
Originally Posted by nvarma View Post
1. the f_loop(): what is the order of looping?
Ordered by the face thread, face_t f (integer). They'll mostly be sequential in the mesh but won't be strictly structured.

Quote:
Originally Posted by nvarma View Post
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,
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.
`e` is offline   Reply With Quote

Old   July 13, 2016, 14:02
Default
  #3
Member
 
nm
Join Date: Mar 2013
Posts: 99
Rep Power: 11
nvarma is on a distinguished road
Quote:
Originally Posted by `e` View Post
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.
No I am not.

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
nvarma is offline   Reply With Quote

Old   July 13, 2016, 14:04
Default
  #4
Member
 
nm
Join Date: Mar 2013
Posts: 99
Rep Power: 11
nvarma is on a distinguished road
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?
nvarma is offline   Reply With Quote

Reply

Tags
fluent, profile, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 2 December 8, 2021 00:18
Map of the OpenFOAM Forum - Understanding where to post your questions! wyldckat OpenFOAM 10 September 2, 2021 05:29
Simple questions regarding CCM+ tutorials daniel1030 STAR-CCM+ 2 December 28, 2014 00:03
possible interview questions atturh Main CFD Forum 1 February 21, 2012 08:53
NACA0012 Validation Case Questions ozzythewise Main CFD Forum 3 August 3, 2010 14:39


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