|
[Sponsors] |
September 9, 2014, 22:34 |
Zero gradient boundary condition
|
#1 |
New Member
Majid
Join Date: Jan 2014
Location: Canada
Posts: 23
Rep Power: 12 |
Hello everybody
I have a UDS which has a zero gradient normal to the wall boundary condition but I don't know how to impose that in FLUENT udf. I am not sure if zero flux boundary is the same, if so please let me know. I tried to use the F_AREA macro dotted by the gradient vector but I dont know how to set its value to zero so it would work. Thanks |
|
September 11, 2014, 03:45 |
|
#2 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
At a wall (where no 'background flow' can go through), zero flux UDS is the same as zero gradient UDS normal to the wall.
|
|
September 24, 2014, 11:07 |
|
#3 | |
Member
David
Join Date: Aug 2012
Posts: 48
Rep Power: 14 |
Quote:
i think I have made something similar recently but not with UDS but it can still help |
||
September 24, 2014, 11:12 |
|
#4 |
New Member
Majid
Join Date: Jan 2014
Location: Canada
Posts: 23
Rep Power: 12 |
David
As pakk said the zero flux boundary at the wall is the same as zero normal gradient, I used it and it did work. thanks Majid |
|
March 13, 2017, 10:55 |
|
#5 | |
Member
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9 |
Quote:
In Fluent Help it is: "Under User Defined Scalar Boundary Value, enter a constant value or select a user-defined function from the drop-down list for each scalar. If you select Specified Flux, your input will be the value of the flux at the boundary (that is, the negative of the term in parenthesis on the left-hand side of in the Theory Guide) dot [as in the dot product of] [as in the vector, n], where is the normal into the domain).(...)" I guess that to write zero normal gradient, I should select Specified Flux but what should I write after that??? Should I use a UDF?? What should include this UDF?? Thanks a looooooooooooot |
||
March 14, 2017, 11:23 |
|
#6 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Zero gradient is the same as zero flux, so you want the flux to be zero.
So what should you write after it... Zero! |
|
March 14, 2017, 12:57 |
|
#7 |
Member
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9 |
||
March 15, 2017, 05:12 |
|
#8 | |
Member
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9 |
Quote:
I have tried this (attached images) but it didn't work... The right profile (with zero gradient) should perform like the left one (without zero gradient in the walls and 0 Specific value in the walls)....I don't know where is the problem here. |
||
March 17, 2017, 05:30 |
|
#9 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
The right one has zero flux on all the walls.
The left one has zero flux one the upper walls, and zero value on the lower walls. These are different boundary condtions. Why would you expect them to give the same result? |
|
March 17, 2017, 07:37 |
|
#10 |
Member
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9 |
Yes, and it was also initialized with zero value on the lower part and another value for the upper part
[QUOTE=pakk;641119] The left one has zero flux one the upper walls, and zero value on the lower walls.[QUOTE] It is without zero flux and it was also initialized with zero value on the lower part and another value for the upper part. The only difference is the zero flux in the right one....That's why we expect a 0 value also in the lower part... |
|
March 17, 2017, 08:29 |
|
#11 |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
I don't understand what you mean.
Zero flux is NOT the same as zero value. You ask for zero flux, so you get zero flux. You did not ask for zero value, so you did not get zero value. How you initialize it, is not relevant. |
|
March 17, 2017, 12:34 |
I agree!
|
#12 |
Member
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9 |
Yes! I agree with u they are different things!
My problem comes out if I compare with CFX results... I used the configuration of zero flux in CFX (steady-state simulation), and the profile for the variable was like left one (upper image). And I expect to find these same profile using the same configuration in Fluent... To perform these profiles in Fluent, I'm using a source acting over a UDS. These simulations are in steady-state, and I've detected some problems in the behaviour of the UDS in steady-state. Moreover, I've simulated this same case in transient conditions using Fluent, and for the different boundary conditions (right one and left one), I found very similar result for the two simulations (I attached an image), except near the walls at the inlet and the outlet, obviously due to the zero value condition. Sorry for being a bit obtuse cause my CFX-Fluent problems! My zero flux doubt is fixed! Thanks a lot! results_without_and_with_ZF_transient.jpg |
|
July 21, 2018, 11:54 |
|
#13 |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11 |
This is ONLY true when the no penetration condition is applied and there is no slip velocity between the scalar velocity and fluid velocity.
Last edited by randolph; July 23, 2018 at 09:33. |
|
July 23, 2018, 03:42 |
|
#14 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
The only slip velocity I know is the slip velocity between fluid and wall, and that is not relevant here. |
||
July 23, 2018, 09:40 |
|
#15 | |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11 |
Quote:
For fluid advected scalar (U_scalar = U_fluid), there is no slip velocity. Therefore, for the scalar transport, the no-flux (advection flux + diffusion flux = 0) BC on the wall can be simplified to zero-gradient (diffusion flux = 0) BC since the no penetration condition (U_wallnormal = 0, which indicts advection flux = 0 in the later scalar solver) has already been implemented in the fluid momentum solver. And the zero-gradient is what Fluent implement by default for the species. |
||
July 24, 2018, 05:05 |
|
#16 | |
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
But I am still puzzled by what you mean with "For fluid advected scalar (U_scalar = U_fluid), there is no slip velocity." For me, slip velocity means that U_fluid-U_wall is not equal to zero at the wall. But apparently you mean something else. But what? U_scalar-U_fluid? Is for you "slip velocity" the same as diffusion? I'm sorry, but I don't follow... |
||
July 26, 2018, 11:11 |
|
#17 | |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11 |
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No-slip condition for non-resolved boundary layer in open channel banks | Lupocci | Main CFD Forum | 1 | January 17, 2013 04:11 |
Pressure gradient boundary condition for LES | Far | CFX | 3 | November 19, 2012 18:13 |
Calculated gradient boundary condition similar to gammaContactAngle | adona058 | OpenFOAM Running, Solving & CFD | 0 | September 26, 2007 16:23 |
Slip boundary condition what is inside | normunds | OpenFOAM Running, Solving & CFD | 2 | June 4, 2007 07:45 |
pressure gradient boundary condition | kamesh | FLUENT | 0 | May 9, 2005 15:17 |