|
[Sponsors] |
January 20, 2016, 06:48 |
boundaryField access for derived variables
|
#1 |
New Member
Join Date: Sep 2015
Location: California, US
Posts: 3
Rep Power: 10 |
Hello OFoamers, I'm relatively new to OpenFOAM community. I'm facing an issue while defining boundary condition to one of the variables in a custom solver using openfoam.
In particular, I'm calculating Flux of a quantity, which is function of two other independent variables. But I need to provide boundary conditions for the flux but not the independent variables. Independent variables may have "calculated" BC. Here is a part of createFields.H, showing one possible situation. "Flux" requires a boundary condition to solve the physics correctly, but the solver is not reading boundaryField while running. I think that it occurs because I'm not providing 'mesh' condition instead of equation for "Flux" in IOobject. The "Flux" is also being used in another PDE solution. Code:
volVectorField Flux ( IOobject ( "Flux", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), N*U ); Thanks in advance, ABHI Last edited by abhiv; February 3, 2016 at 22:33. |
|
May 31, 2017, 19:29 |
|
#2 |
Member
Sugajen
Join Date: Jan 2012
Location: Tempe, USA
Posts: 52
Rep Power: 14 |
Hi Abhi,
I have a similar situation. Did you figure out a way? Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[DesignModeler] DesignModeler Scripting: How to get Full Command Access | ANT | ANSYS Meshing & Geometry | 53 | February 16, 2020 15:13 |
Access boundaryMesh / boundaryField on cellZone | Nucleophobe | OpenFOAM Programming & Development | 17 | November 13, 2019 12:27 |
Reading Additional Data Quantities from Fluent into Tecplot | fremder | Tecplot | 9 | December 16, 2016 15:35 |
UDF Data Access Macro | Woo Meng Wai | FLUENT | 0 | November 6, 2007 20:23 |
Access to the derivatives of quantities at cells | Parsa Zamankhan | FLUENT | 0 | September 18, 2007 19:30 |