CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] A patch with two types

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2019, 12:33
Default A patch with two types
  #1
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
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
celestial is offline   Reply With Quote

Old   November 18, 2019, 22:47
Default
  #2
Member
 
Join Date: Mar 2019
Posts: 86
Rep Power: 7
celestial is on a distinguished road
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.
celestial is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 05:37
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 07:30
kEpsilon model patch types in boundary file Outbound OpenFOAM Pre-Processing 3 April 7, 2016 10:49
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 02:01
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 02:34


All times are GMT -4. The time now is 09:54.