|
[Sponsors] |
July 18, 2013, 11:41 |
The initial value of User Defined Scalars
|
#1 |
New Member
Leon Chen
Join Date: Aug 2012
Location: ShenZhen, China
Posts: 9
Rep Power: 14 |
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. |
|
September 23, 2015, 05:55 |
|
#2 |
Member
Join Date: Nov 2014
Posts: 42
Rep Power: 12 |
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 ? |
|
September 23, 2015, 06:20 |
|
#3 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
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. |
||
September 23, 2015, 15:58 |
|
#4 |
Member
Join Date: Nov 2014
Posts: 42
Rep Power: 12 |
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 |
|
September 23, 2015, 18:22 |
|
#5 | |
Senior Member
Bruno Machado
Join Date: May 2014
Posts: 271
Rep Power: 13 |
Quote:
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. |
||
Tags |
initial value, udf, uds |
|
|
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 |