CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How define Delta y(or x) between two neighbor cells for boundary condition ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2015, 10:41
Question 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
rapierrz is on a distinguished road
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?
rapierrz is offline   Reply With Quote

Old   March 3, 2015, 13:20
Default
  #2
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 21
zfaraday will become famous soon enough
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!
zfaraday is offline   Reply With Quote

Old   March 4, 2015, 00:00
Default
  #3
Senior Member
 
Hesam
Join Date: Feb 2015
Posts: 139
Rep Power: 11
rapierrz is on a distinguished road
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,
rapierrz is offline   Reply With Quote

Old   March 6, 2022, 06:49
Default
  #4
New Member
 
Kuang-Wu Lee
Join Date: Aug 2020
Posts: 2
Rep Power: 0
kuangwulee is on a distinguished road
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!
kuangwulee is offline   Reply With Quote

Old   March 15, 2022, 22:30
Default
  #5
New Member
 
wuicylucy
Join Date: Mar 2022
Posts: 1
Rep Power: 0
wuicylucy is on a distinguished road
Thank you for your very good and helpful article. The information in the article will help me a lot
__________________
wordle solver tiny fishing
wuicylucy is offline   Reply With Quote

Reply


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
Species Mole and Mass Fraction Macro combustion FLUENT 18 February 5, 2024 12:23
How to setup the wall boundary condition of maxwell_slip_velocity_x_full UDF? ailee0303 Fluent UDF and Scheme Programming 4 January 13, 2021 08:14
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 1 May 19, 2020 21:13
udf problem eb.nabizadeh Fluent UDF and Scheme Programming 2 March 1, 2013 00:28
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 129 June 19, 2010 09:23


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