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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 27, 2013, 04:26
Default access boundary condition from solver
  #1
New Member
 
Join Date: Oct 2012
Posts: 16
Rep Power: 14
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, 17:33
Default
  #2
New Member
 
Join Date: Oct 2012
Posts: 16
Rep Power: 14
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, 09: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


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


All times are GMT -4. The time now is 04:19.