|
[Sponsors] |
March 27, 2013, 04:26 |
access boundary condition from solver
|
#1 |
New Member
Join Date: Oct 2012
Posts: 16
Rep Power: 14 |
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 |
|
April 1, 2013, 17:33 |
|
#2 |
New Member
Join Date: Oct 2012
Posts: 16
Rep Power: 14 |
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(); |
|
April 30, 2015, 09:39 |
|
#3 |
Member
Mehtab
Join Date: Jan 2015
Posts: 41
Rep Power: 11 |
Hi,
What should I do if I want to access temperature value at inlet in fvPatchFields to modify boundary condition. |
|
Tags |
access, boundary conditions, gradient |
|
|
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 |