|
[Sponsors] |
extract Field value inside boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 27, 2015, 12:56 |
extract Field value inside boundary condition
|
#1 |
Member
Mehtab
Join Date: Jan 2015
Posts: 41
Rep Power: 11 |
Hi Foamer,
I want to implement a boundary condition for temperature which depends on mass flow rate and net heat flux Q at same patch. How can i read a field value at a patch inside a boundary condition class? Please help. Thanks in advance. |
|
April 28, 2015, 02:06 |
|
#2 |
Senior Member
Jan
Join Date: Jul 2009
Location: Hamburg
Posts: 137
Rep Power: 19 |
Hi Cummins,
this should work: Code:
const fvMesh& mesh = patch().boundaryMesh().mesh(); const volScalarField& alpha = mesh.lookupObject<volScalarField>("alpha.water"); Jan |
|
April 28, 2015, 05:32 |
|
#3 | |
Member
Mehtab
Join Date: Jan 2015
Posts: 41
Rep Power: 11 |
Quote:
Thank you very much for your response. In my problem, I need specific heat Cp and mass flux at a patch in order to calculate my temperature at the same patch. Code:
const fvMesh& mesh = patch().boundaryMesh().mesh(); const surfaceScalarField& phi = mesh.lookupObject<surfaceScalarField>"phi"); const volScalarField& Cp = mesh.lookupObject<volScalarField>"Cp"); What variable should I use for specific heat calculation (Cp)? I think it should be updated from thermophysical properties. Thanks in advance... |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mixed inflow/outflow downstream boundary condition question | peob | OpenFOAM Running, Solving & CFD | 3 | February 3, 2017 10:54 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 06:28 |
Error finding variable "THERMX" | sunilpatil | CFX | 8 | April 26, 2013 07:00 |
Velocity profile boundary condition | Tuca | FLOW-3D | 1 | April 23, 2013 12:02 |
meshing F1 front wing | Steve | FLUENT | 0 | April 17, 2003 12:37 |