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

access boundary condition from solver

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2013, 03:26
Default access boundary condition from solver
  #1
New Member
 
Join Date: Oct 2012
Posts: 16
Rep Power: 13
pascool is on a distinguished road
Hi foamers,

I specified a fixedGradient boundary condition for the temperature in a patch at the wall.
How can I access this value from inside the solver to do some further calculations?

Any help appreciated !

Cheers,

Pascal
pascool is offline   Reply With Quote

Old   April 1, 2013, 16:33
Default
  #2
New Member
 
Join Date: Oct 2012
Posts: 16
Rep Power: 13
pascool is on a distinguished road
I figured it out by myself. I wanted to access the temperature gradient at the wall.
It's actually pretty easy. I somebody is interested to code is as follows:

Code:
scalarField gradTField = T.boundaryField()[heatedWallPatchID].snGrad();
pascool is offline   Reply With Quote

Old   April 30, 2015, 08:39
Default
  #3
Member
 
Mehtab
Join Date: Jan 2015
Posts: 41
Rep Power: 11
mehtab is on a distinguished road
Hi,

What should I do if I want to access temperature value at inlet in fvPatchFields to modify boundary condition.
mehtab is offline   Reply With Quote

Reply

Tags
access, boundary conditions, gradient

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Updating a boundary condition from the solver juho OpenFOAM Running, Solving & CFD 8 June 14, 2021 12:55
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
inlet boundary condition for simplefoam solver mcjicpm2 OpenFOAM Running, Solving & CFD 1 March 18, 2009 00:41
Boundary condition error depending on location of solver execution kjmaki OpenFOAM Running, Solving & CFD 0 June 18, 2008 15:04


All times are GMT -4. The time now is 14:02.