CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Manupulating the values of field variables in adjacent to cetain cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2017, 00:36
Default Manupulating the values of field variables in adjacent to cetain cell
  #1
Member
 
Upuli
Join Date: Feb 2016
Posts: 68
Rep Power: 10
upuli is on a distinguished road
Dear members

I want manipulate the field variable U(velocity) of the North and south cells adjacent to cell[I]. How can I do that ? There are ways to calculate the all cells(North,South,East and West) adjacent to cell[I]. But how can I calculate value only in North and South cells in OpenFOAM.

Thanks
Upuli
upuli is offline   Reply With Quote

Old   July 18, 2017, 08:47
Default
  #2
Senior Member
 
fumiya's Avatar
 
Fumiya Nozaki
Join Date: Jun 2010
Location: Yokohama, Japan
Posts: 266
Blog Entries: 1
Rep Power: 18
fumiya is on a distinguished road
I think there is no universal method but you can do by comparing the coordinates of the adjacent cell centers.

Best regards,
Fumiya
__________________
[Personal]
fumiya is offline   Reply With Quote

Old   July 24, 2017, 00:59
Default
  #3
Member
 
Upuli
Join Date: Feb 2016
Posts: 68
Rep Power: 10
upuli is on a distinguished road
Dear Fumiya

I am not familiar with how to write the code for that.Can you please explain or direct me to some place where I can find the instructions to write the code for my purpose.

Thanking you
upuli 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
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 04:27
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 14:38
How to Reference an Adjacent Cell in a UDF ? jeff8541 FLUENT 0 March 8, 2011 10:33
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51


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