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

access boundary condition from solver

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

Reply
 
LinkBack Thread Tools 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: 4
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: 4
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
 
Cummins
Join Date: Jan 2015
Posts: 30
Rep Power: 2
firefoam 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.
firefoam is offline   Reply With Quote

Reply

Tags
access, boundary conditions, gradient

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Updating a boundary condition from the solver juho OpenFOAM Running, Solving & CFD 7 March 18, 2011 10:42
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 01: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 05:29.