create a new boundary patch on an existing boundary
Hello FOAMers
I am trying to create a new boundary say for example of a square size of 0.2*0.3 mm in the middle of an existing wall boundary of size 2.5*2.5 mm. The geometry is too complicated already (it's a combustion chamber) and also i am required to demonstrate the usage of various tools and utilities of OpenFoam than just simple blockMesh and hence I don't want to create more blockMesh What I wish to do is to create a new boundary patch called inlet on the existing mesh. what i think is using setSet command after defining cellSet in the systems directory. But I have no idea how to do it! Code:
FoamFile |
solved the problem.
used setSet and createPatch for making the small inlet patch on an existing boundary patch. |
Hi, I am trying something similar here, could you explain what you did exactly as i struggle to find out how to best use these utilities.
I want to take a slice on my bottom wall and give it a specific boundary condition. The mesh is existing already, what steps do i need to do to create a slice of certain thickness on the bottom wall? Hope you can point me to the right way here Best wishes Martin |
Below steps worked for me in creating a new patch from an existing patch, without recreating the mesh.
General overview:
Detailed steps:
Example system/topoSetDict file Code:
FoamFile Now, assigning the newly created faceSet as a patch boundary. This is done using createPatch. Example system/createPatchDict file: Code:
FoamFile There is an alternate process suggested in https://www.cfd-online.com/Forums/op...oundaries.html. The issue I encountered with this approach was that I could not save an STL as the boundary faces contained largely hex cells. Error message said that 'only triangles can be saved as an STL'. Hope this helps. Happy foaming! |
Quote:
My topoSet and createPatch files are: TopoSet: actions ( { name f0; type faceSet; action new; /* source boxToFace; box (-0.2 -0.2 0)(0.2 0.2 0.001);*/ source cylinderToCell; p1 (0 0 0); p2 (0 0 -0.5); radius 4; } ); CreatePatch: pointSync false; // Patches to create. patches ( { // Name of new patch name inlet; // Type of new patch patchInfo { type patch; } // How to construct: either from 'patches' or 'set' constructFrom set; // If constructFrom = patches : names of patches. Wildcards allowed. patches ("periodic.*"); // If constructFrom = set : name of faceSet set f0; } ); Thanks! |
All times are GMT -4. The time now is 21:08. |