|
[Sponsors] |
February 2, 2024, 05:13 |
[codedFixedValue] - reversing patch
|
#1 |
New Member
Dasha
Join Date: Sep 2023
Posts: 16
Rep Power: 3 |
Hello! I'm using 'codedFixedValue' for the inlet, which depends on the outlet patch.
I have a problem: the values on the inlet patch are 'mirrored' from the outlet patch. How can I fix this? Is there any possibility to reverse the face of the patch? Code:
forAll(TField, faceI) { TField[faceI] = fieldOAP[faceI] + 5; } https://imgur.com/D9jN5kV |
|
February 2, 2024, 10:05 |
|
#2 |
New Member
Join Date: May 2019
Posts: 16
Rep Power: 7 |
Hi
as an easy fix, you could maybe rewrite it to: Code:
forAll(TField, faceI) { TField[TField.size() - 1 - faceI] = fieldOAP[faceI] + 5; } |
|
February 2, 2024, 10:40 |
|
#3 |
New Member
Dasha
Join Date: Sep 2023
Posts: 16
Rep Power: 3 |
Thanks a lot!
|
|
Tags |
codedfixedvalue, facei, reverse patch |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OLAFLOW] The OLAFLOW Thread | Phicau | OpenFOAM Community Contributions | 459 | September 12, 2024 12:47 |
y+ and u+ values with low-Re RANS turbulence models: utility + testcase | florian_krause | OpenFOAM | 114 | August 23, 2023 06:37 |
steadyUniversalMRFFoam Tutorial fails in MixingPlane | HenrikJohansson | OpenFOAM Bugs | 0 | February 14, 2019 05:48 |
Near wall treatment in k-omega SST | Arnoldinho | OpenFOAM Running, Solving & CFD | 38 | March 8, 2017 14:48 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |