CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

plot3dToFoam Patch Conservation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2017, 01:39
Default plot3dToFoam Patch Conservation
  #1
Member
 
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 11
pbrady2013 is on a distinguished road
Hi All,

So this question must have been asked before but my Google Fu appears to be letting me down.

I'm working with a c-topology and have an existing mesh from another project that I have to use that is in Plot3D format. Its a simple foil shape, nothing fancy. See attached for a 2D slice of the geometry. I can use the plot3dToFoam->autoPatch pipeline and get the model working fine as an external flow case: that is the outside boundaries are set as inlets and the vertical plane on the right hand side is an outlet. No problem.

Now, however, I want to change the simulation to check a case where the foil is in an enclosed water tunnel, so the top and bottom horizontal faces, which are so marked in the Plot3D file, become walls. The "C" shape on the left should remain an inlet.

Where I'm stuck is that autoPatch does not see the break between the C and the wall and merges these into one patch. Mathematically this makes sense as the model has a smooth change in the geometry there. Is there a way, though, to force a break at that location to create the separate patch sets that I want: an inlet and walls?

Thanks in advance,
-pete
Attached Images
File Type: png c-topo.png (4.5 KB, 16 views)
pbrady2013 is offline   Reply With Quote

Old   August 22, 2017, 23:49
Smile
  #2
Member
 
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 11
pbrady2013 is on a distinguished road
OK, so a couple of hours drilling through the manual and experimenting solved my issue. There is not an automatic method but my general work flow is:

  1. plot3dToFoam
  2. autoPatch -overwrite 80
  3. setSet -batch setSetBatchCommands.txt
  4. createPatch -overwrite
  5. renumberMesh -overwrite
  6. runApplication checkMesh
There is a bit of trial and error with Paraview to visualise the face sets for step 3 but otherwise the process is not too bad once you figure it out.
pbrady2013 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
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 13:48
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 18:57
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


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