|
[Sponsors] |
November 14, 2019, 13:33 |
A patch with two types
|
#1 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
I am referring to the boundary file residing inside folder constant/polyMesh.
Perhaps these are stupid questions. 1) Can a type be both wall and cyclic ? I am thinking of the periodic set-up of blades in a compressor. 2) I have a patch of type wall since I will solve Navier Stokes equations near the interface between air and a solid. However, this interface also separates two different meshes and the same patch also needs to be of type mappedPatch because I use swak4Foam's groovyBC for an electric field boundary condition. Unfortunately, OF complains that the patch cannot be of both types.What can be done ? Have a great day, Marc |
|
November 18, 2019, 23:47 |
|
#2 |
Member
Join Date: Mar 2019
Posts: 86
Rep Power: 7 |
OK, fine. If nobody knows, I'll stick with openFoam's
patchToPatchInterpolation.faceInterpolate(othersid epatch.patchInternalField()); use the above for your patch and in a file variableValueYourFieldVarFvPatchScalarField.C the following excerpt: void variableValueYourFieldVarFvPatchScalarField::updat eCoeffs() { if (updated()) { return; } operator==(*this); fixedValueFvPatchScalarField::updateCoeffs(); } which will be called if in dictionary 0/YourFieldVar, your patch has type variableValueYourFieldVar This way, I can keep type wall for the your patch in the boundary file. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
y+ and u+ values with low-Re RANS turbulence models: utility + testcase | florian_krause | OpenFOAM | 114 | August 23, 2023 06:37 |
[Other] dynamicTopoFVMesh and pointDisplacement | RandomUser | OpenFOAM Meshing & Mesh Conversion | 6 | April 26, 2018 08:30 |
kEpsilon model patch types in boundary file | Outbound | OpenFOAM Pre-Processing | 3 | April 7, 2016 11:49 |
createPatch Segmentation Fault (CORE DUMPED) | sam.ho | OpenFOAM Pre-Processing | 2 | April 21, 2014 03:01 |
CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 03:34 |