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

[snappyHexMesh] How to assign consistently master/slave cyclics with createPatch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2021, 06:26
Default How to assign consistently master/slave cyclics with createPatch
  #1
New Member
 
Edoardo Gamba
Join Date: Dec 2019
Posts: 6
Rep Power: 6
Gambenius is on a distinguished road
Hi everyone, I'm working on a simpleFoam case of a FSAE car, I have modeled 3 fans using the fixedJump BC (also tried fanPressure with the fan curves but i get a lot of convergence problems).
I start from a surface stl of the fan, mesh it as a baffle in snappyHexMesh and then with createPatch i transform it into 2 couple patches, then with changeDictionary i set them as cyclics and apply the fixedJump BC.
My problem is really simple, createPatch chooses randomly who's master and who's slave, so in the end I have a 50% chance my fan is set up right (the jump needs to go in the +x direction).

Does anyone have an idea on how to make createPatch call master the patch on the -x side and slave the one opposite to it?

This problem is wasting my time since I have to check if the fan is actually blowing air and if it's not I need to use a changeDictionary just to change its fixedJump to a negative one to reverse the flow.

Thanks in advance
Gambenius is offline   Reply With Quote

Reply

Tags
createpatch, fixedjump, openfoam, snappyhexmesh


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
[mesh manipulation] createpatch not working when using layer addition in snappyHexMesh Dikkeunit OpenFOAM Meshing & Mesh Conversion 0 February 3, 2020 09:46
There is a bug in createPatch? feno102 OpenFOAM Pre-Processing 6 November 1, 2017 02:24
OF ext-3.2 new createPatch cyclics issue Jack001 OpenFOAM Pre-Processing 0 May 26, 2016 14:43


All times are GMT -4. The time now is 19:32.