|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 11 ![]() |
Hello everyone,
I need to create a patch from a given mesh. I can visualize the mesh in paraview and I can keep trace of the cells label ( or number ) in this enviroment, which afterwards I'd like to use to generate the new patch. My problem is then how to implement that in openFoam by using the topoSetDict. Can anyone suggest me ho to set the dictionary? My only mean is the list of the cells , which are going to make up the patch. Thanks |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Alex
Join Date: Jan 2014
Posts: 126
Rep Power: 13 ![]() |
Hi Lorenzo,
maybe this is useful for you! ![]() http://www.cfd-online.com/Forums/ope...reate-new.html Cheers Alex |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 11 ![]() |
Thnaks for the suggestion, I followed the entries in the dictionary you pointed me out , in particular :
{ name jetCells; type cellSet; action new; source cylinderToCell; sourceInfo { p1 (0 0 0); p2 (0 0 1); radius 0.0018; } } { name jetFaces; type faceSet; action new; source cellToFace; sourceInfo { set jetCells; option all; } }and I costumized it according to my needs :I just changed the name of each set (jetCells --> c0 and jetFaces --> f0) and using labelToCell instead of cylinderToCell for the first set , specifying in this entry the cell labels I got through paraview . When I type topoSet in the command line I would expect as a result the creation of a folder "sets" under constant/polymesh/sets . Within this folder "sets" only the cellSet c0 is present , while f0, ( that should have been created as faceSet from the cellSet c0 ) is missing. This brings about problems when I run createPatch since the patch I would like to create need the missing faceSet f0. I can show you my topoSetDict for more clearness: /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object topoSetDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // actions ( { name c0; type cellSet; action new; source labelToCell; sourceInfo { value ( 0 1 2 3) } } { name f0; type faceSet; action add; source cellToFace; sourceInfo { set c0; option all; } } ); Can you find out where I wrong? |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 ![]() |
Hi,
For the faceSet, is there a reason why the action is "add" instead of "new"? I don't see a previous definition for "f0", so am curious as to why the action stated is "add". Cheers, Antimony |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 11 ![]() |
Hi Antimony,
I think it was my mistake, btw I changed it in new as mentioned. Still the problem is there. It seems the action on f0 is not being read at all . |
|
![]() |
![]() |
![]() |
![]() |
#6 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 ![]() |
Hi,
You are missing a semi-colon after "value (0 1 2 3)"... Cheers, Antimony |
|
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Lorenzo
Join Date: Oct 2015
Location: Graz
Posts: 49
Rep Power: 11 ![]() |
Ok, fixed .The semi-colon was missing.
Thanks a lot!!! ![]() |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Foam::error::PrintStack | almir | OpenFOAM Running, Solving & CFD | 92 | May 21, 2024 08:56 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) | cfdonline2mohsen | OpenFOAM | 3 | October 21, 2013 10:28 |
Cyclic boundaries in OF 21x | morard | OpenFOAM | 25 | May 13, 2013 23:35 |
Courant number, patches, etc | oort | OpenFOAM | 1 | July 24, 2009 19:05 |