|
[Sponsors] |
How to change/set different boundary condition for particular cell region? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 3, 2021, 01:34 |
|
#21 | ||
Member
Sunag R A
Join Date: Jul 2019
Location: Bangalore, India
Posts: 82
Rep Power: 7 |
Dear Robin,
Quote:
I will work with faceCentres directly to get pointSet and update the same. Quote:
Below is the implementation. Code:
gland { type codedFixedValue; value #include "actualSkinData"; name glandsurface; code #{ const fvPatch& mesh = this->patch(); const vectorField& Cf = mesh.Cf(); const fvBoundaryMesh& boundaryMesh = mesh.boundaryMesh(); forAll(mesh.boundary()[patch], facei) { const label& face = boundaryMesh[patch].start() + facei; // Face index } #}; } https://drive.google.com/file/d/1i_q...ew?usp=sharing 1st image represents the temp values applied to the surface from external file and ran for 1 iteration. The pink dots are points which are extracted from controlDict #includeFunc surfaces. From this, faceCentres are also extracted. https://drive.google.com/file/d/1zxf...ew?usp=sharing 2nd Image is the cropped image to show the difference between temp values of where it is divided. https://drive.google.com/file/d/1aOB...ew?usp=sharing 3rd image is the patch divided image from points. Here green color represents the patch obtained after faceSet creation. In this, some faces with T=0 are missing. https://drive.google.com/file/d/1pBI...ew?usp=sharing 4th image is the cropped image of the new BC. Comparing 2nd and 4th cropped images, along the edges of the temp gradient, some faces are not captured from pointSet. I can provide you the complete case. Regards, Sunag R A. Last edited by sunagra27; May 3, 2021 at 07:03. |
|||
Tags |
boundary condition, chtmultiregionsimpefoam, heat and mass transfer, temperature |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] refineWallLayer Error | Yuby | OpenFOAM Meshing & Mesh Conversion | 2 | November 11, 2021 12:04 |
Fatal overflow in linear solver. | iamnotfajar | CFX | 9 | October 28, 2020 05:47 |
accessing internal cell gradient field at boundary when applying boundary condition | vishalsacharya | OpenFOAM Programming & Development | 7 | February 25, 2019 16:36 |
Problem in setting Boundary Condition | Madhatter92 | CFX | 12 | January 12, 2016 05:39 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 05:41 |