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

The initial value of User Defined Scalars

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2013, 11:41
Default The initial value of User Defined Scalars
  #1
New Member
 
Leon Chen
Join Date: Aug 2012
Location: ShenZhen, China
Posts: 9
Rep Power: 14
759599290 is on a distinguished road
Hi everyone, I defined several UDSs in FLUENT, does someone know the default initial value of UDSs ? I really need help here.
Thanks in advance.
759599290 is offline   Reply With Quote

Old   September 23, 2015, 05:55
Default
  #2
Member
 
Join Date: Nov 2014
Posts: 42
Rep Power: 12
Maryam-A is on a distinguished road
Hi.
How did you solve your problem.
maybe this is my mistake, too.
I set 0.02 for UDS(0) in inlet , but while initializing it wasn't shown!
So. how can I defined a initial value as UDS ?
Maryam-A is offline   Reply With Quote

Old   September 23, 2015, 06:20
Default
  #3
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Maryam-A View Post
Hi.
How did you solve your problem.
maybe this is my mistake, too.
I set 0.02 for UDS(0) in inlet , but while initializing it wasn't shown!
So. how can I defined a initial value as UDS ?
Are you referring to boundary condition or initial values?

To initialize values you can define it either through the fluent menu or using a DEFINE_INIT macro. Another way yet not most correct is to initialize your code and then patch it with the values you want in the regions you want.

Boundary condition for the UDS should be imposed in the boundary menu accordingly.
Bruno Machado is offline   Reply With Quote

Old   September 23, 2015, 15:58
Default
  #4
Member
 
Join Date: Nov 2014
Posts: 42
Rep Power: 12
Maryam-A is on a distinguished road
Hi
thankyou for quick reply.
to say I have many questions again:

1- for setting initial value for UDS I can only use DEFINE_INIT macro?
2- what does patch exactly do (I couldnt understand from fluent help)
3- I know my uds vale change in domain but not very much ( its volume fraction concentration) so for example when I want to investigate (bulk volume fraction=0.02) Where I should set it?
4- for boundary condition at inlet I use T=300 and Re=51.3 so I calculate velocity By using phi=0.02 at viscosity(phi,T), So should I set UDs=0.02 at inlet again?

sorry for grammar.
Regards
Maryam-A is offline   Reply With Quote

Old   September 23, 2015, 18:22
Default
  #5
Senior Member
 
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13
Bruno Machado is on a distinguished road
Quote:
Originally Posted by Maryam-A View Post
Hi
thankyou for quick reply.
to say I have many questions again:

1- for setting initial value for UDS I can only use DEFINE_INIT macro?
2- what does patch exactly do (I couldnt understand from fluent help)
3- I know my uds vale change in domain but not very much ( its volume fraction concentration) so for example when I want to investigate (bulk volume fraction=0.02) Where I should set it?
4- for boundary condition at inlet I use T=300 and Re=51.3 so I calculate velocity By using phi=0.02 at viscosity(phi,T), So should I set UDs=0.02 at inlet again?

sorry for grammar.
Regards
1- You can define in the same place where you define other initial conditions as well.
2- when you patch some variable, you give the value you want to the variable. you can start a simulation, run a few iterations for example, and define some value different than the one computed so far.
3- i didn't get you question.
4- not sure of what you mean. in your inlet boundary you should define how much of phi are you inputting. This value may change side your domain if you have source terms in this UDS.
Bruno Machado is offline   Reply With Quote

Reply

Tags
initial value, udf, uds


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
problem with Min/max rho tH3f0rC3 OpenFOAM 8 July 31, 2019 10:48
Simulation seems to converge but crashes suddenly xxxx OpenFOAM 16 September 12, 2014 09:07
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 06:55
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 02:37.