|
[Sponsors] |
September 22, 2022, 04:50 |
Boundary conditions for a surfaceScalarField
|
#1 |
New Member
Sreehari Perumanath
Join Date: Jun 2022
Posts: 28
Rep Power: 3 |
Dear Foamers,
I'm new to use OF and I'm developing my own solver for my problem. I have a simple cubic geometry. In it, I have to define a 'surfaceScalarField payal' and I want to give pre-calculated values to it at every time step. It is easy to give values to the internal faces, so I'll skip that here. I give values to the boundary patches with: Code:
// to loop over all boundary faces forAll(payal.boundaryFieldRef(), patchID) { forAll(payal.boundaryFieldRef()[patchID],facei) { payal.boundaryFieldRef()[patchID][facei]=<aPre-calculatedValue>; } } Code:
// set values on patchID=1 same as patchID=0, because cyclicBC between patches 0,1 forAll(payal.boundaryFieldRef()[1],facei) { payal.boundaryFieldRef()[1][facei]=payal.boundaryFieldRef()[0][facei]; } Many thanks and have a great day/weekend! |
|
Tags |
correctboundaryconditions, cyclic boundary, surfacescalarfield |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 07:38 |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 07:30 |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 01:27 |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 08:44 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 06:28 |