|
[Sponsors] |
July 26, 2012, 08:49 |
Find patch-type
|
#1 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51 |
Hi together,
I wanna find a patch type while initializing the thermodynamics: Therefor I can find patches with FixedValues like: Code:
forAll(T_.boundaryField(), patchi) { if (isA<fixedValueFvPatchScalarField>(T_.boundaryField()[patchi])) { Info << "Patch Fixed Temperature " << patchi << endl; patch_type.push_back(1); } } Code:
forAll(T_.boundaryField(), patchi) { Info << <fixedValueFvPatchScalarField>T_.boundaryField()[patchi] << endl; if (isA<fixedValueFvPatchScalarField>(T_.boundaryField()[patchi])) { Info << "Patch Fixed Temperature " << patchi << endl; patch_type.push_back(1); } else if (isA<wallHeatTransferFvPatchScalarField>(T_.boundaryField()[patchi])) { Info << "Patch wallHeatTransfer " << patchi << endl; patch_type.push_back(2); } Well is there an lnInclude file missing? Tobi |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
second order schemes | marine | OpenFOAM | 67 | April 11, 2022 19:19 |
[Commercial meshers] Fluent3DMeshToFoam | simvun | OpenFOAM Meshing & Mesh Conversion | 50 | January 19, 2020 16:33 |
[swak4Foam] Air Conditioned room groovyBC | Sebaj | OpenFOAM Community Contributions | 7 | October 31, 2012 15:16 |
Need help with boundary conditions: open to atmosphere | Wolle | OpenFOAM | 2 | April 11, 2011 08:32 |
Pressure instability with rhoSimpleFoam | daniel_mills | OpenFOAM Running, Solving & CFD | 44 | February 17, 2011 18:08 |