|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Zhiheng Wang
Join Date: Mar 2016
Posts: 72
Rep Power: 11 ![]() |
Hi, I have stuck in code where I am preprocesing Temperature values.
label patchID = mesh.boundaryMesh().findPatchID("inlet"); scalarField InletTGrad=T.boundaryField()[patchID].snGrad(); const scalarField HEIGHT = 1.0/mesh.deltaCoeffs().boundaryField()[patchID]; const fvBoundaryMesh& myBoundary = mesh.boundary(); forAll( myBoundary, fvPatchID ) / { const fvPatch& myPatch = myBoundary[patchID]; const vectorField& position = myPatch.Cf(); forAll( myPatch, i) { Ts.boundaryField()[fvPatchID][i] = Ts.boundaryField()[patchID][i]+HEIGHT*InletTGrad; } Problem is Ts is volScalarField and Height*InleGrad is scalarField How can I update my boundary values using this code plese Send your valuable suggetions. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Preprocessing for complex conjugate heat transfer (CHT) | akidess | OpenFOAM Pre-Processing | 0 | November 12, 2015 03:35 |
Preprocessing unstructured grids (tetrahedral mesh) | rakshith | Main CFD Forum | 4 | May 15, 2010 13:43 |
Preprocessing unstructured grids (tetrahedral mesh) | rakshith | Main CFD Forum | 0 | January 18, 2010 13:40 |
StarDesign preprocessing error | Nick | Siemens | 0 | May 24, 2008 22:56 |
Gambit preprocessing for periodic geometry | Karl Kevala | FLUENT | 7 | February 12, 2001 06:44 |