|
[Sponsors] |
Problem accessing data in point boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 28, 2018, 13:12 |
Problem accessing data in point boundary condition
|
#1 |
Member
|
Hello Foamers,
I am trying to implement a new boundary condition for a pointVectorField but I am facing a problem. I would like to get access to a variable (lets say U_ declared as a pointVectorField in my solver) on the patch under consideration inside the updateCoeffs() function of my new boundary condition. Then I want to perform a simple operation to modify the values of U_ and assign them to this boundary. I know that you can access volume (and surface) fields as follows Code:
const fvPatchField<vector>& U_ = patch().lookupPatchField<volVectorField, vector>("U"); Please note that I don't want to read the complete pointField but only the data residing on the patch I am interested in (points associated to the current boundary patch). This is because then I would need some sort of connectivity between the global point addressing and the local addressing to perform some calculations, which according to my knowledge is not available. If there is, please let me know since that would do the trick for me as well. Just for reference, the complete field could be read as Code:
const pointVectorField U_ = db.lookupObject<pointVectorField>("U");
__________________
Jibran Haider |
|
Tags |
boundary condition, lookupobject, point fields |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3D Windturbine simulation in SU2 | k.vimalakanthan | SU2 | 15 | October 12, 2023 06:53 |
My radial inflow turbine | Abo Anas | CFX | 27 | May 11, 2018 02:44 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
CFX fails to calculate a diffuser pipe flow | shenying0710 | CFX | 7 | March 26, 2013 05:13 |
the problem of my transient simulation "Floating point exception: Overflow " | alloveyou | CFX | 15 | November 22, 2012 12:14 |