|
[Sponsors] |
How define Delta y(or x) between two neighbor cells for boundary condition ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 1, 2015, 11:41 |
How define Delta y(or x) between two neighbor cells for boundary condition ?
|
#1 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
Hi friends,
I want to add a boundary condition with below equation : a*grad(phi)+b*grad(T)=0 at wall. a,b are constant and phi,T is scalarField. grad(phi) is (phi-oldTime(phi))/delta y How i can define delta y between two neighbor cells? |
|
March 3, 2015, 14:20 |
|
#2 |
Senior Member
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22 |
I'm not sure if I understood well what you need, but if the delta you are referring is the face-center to cell-center distance you have to use the expression delta()
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in! |
|
March 4, 2015, 01:00 |
|
#3 |
Senior Member
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11 |
Hi Alex,
I want to calculate the space between mesh near the upper wall of a chanel and it's neighbor cell. for example : (T-oldTime(T))/y2-y1; y1=y position of mesh near the wall y2=y position of mesh near the Previous mesh. thank you, |
|
March 6, 2022, 07:49 |
|
#4 |
New Member
Kuang-Wu Lee
Join Date: Aug 2020
Posts: 2
Rep Power: 0 |
Hello Rapierrz, have you found the answer to this? I need to calculate the distance between mesh points, for a self-defined variable, too.
Thanks in advance! |
|
March 15, 2022, 23:30 |
|
#5 |
New Member
wuicylucy
Join Date: Mar 2022
Posts: 1
Rep Power: 0 |
Thank you for your very good and helpful article. The information in the article will help me a lot
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to setup the wall boundary condition of maxwell_slip_velocity_x_full UDF? | ailee0303 | Fluent UDF and Scheme Programming | 5 | November 12, 2024 22:37 |
Species Mole and Mass Fraction Macro | combustion | FLUENT | 18 | February 5, 2024 13:23 |
HELP----Surface Reaction UDF | Ashi | Fluent UDF and Scheme Programming | 1 | May 19, 2020 22:13 |
udf problem | eb.nabizadeh | Fluent UDF and Scheme Programming | 2 | March 1, 2013 01:28 |
Installing OF 1.6 on Mac OS X | gschaider | OpenFOAM Installation | 129 | June 19, 2010 10:23 |