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

define a cellzone with toposet

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes
  • 10 Post By TheMadHungarian
  • 1 Post By AshC

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 7, 2017, 07:24
Default define a cellzone with toposet
  #1
Member
 
Join Date: May 2017
Posts: 38
Rep Power: 9
decibelle is on a distinguished road
Hi,

I work on OF 1.6 on a case of external aerodynamic. I made my mesh with snappyHexMesh, you can see the result on the picture (it is a slice).

I would like to move the capsule (oscillation and rotation) inside the mesh with pimpleDyMFoam. To do this, I created dynamicMeshDict file with solidBodyMotionFvMeshCoeffs and oscillatingRotatingMotion. In this file I need a cellZone.

my problem is to create this cellzone. I created a topoSetDict file and I tried to define a cellzone with surfaceToCell, boundaryToFace or PatchToFace but it doesn't work all the mesh oscillate.

someone can help me?

thanks in advance

I joined the toposetdict file
Code:
/*
actions         // AVEC UNE BOX
(
*/
/*
    // Create cellZone for moving cells in inlet channel


   // Creation d'une box de cell

    {
        name    capsule_set;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {

              boxes ((-0.3 -0.3 -0.3) (0.3 0.3 0.3));
*/

/*
        //Creation cell set a partir stl

    {
        name    capsule_set;
       type    cellSet;
        action  new;
        source  surfaceToCell;
        sourceInfo
        {

            file     "/openfoam/mesh/movingMesh/constant/triSurface/muse_c_shape.stl";
            outsidePoints     ( (0.03873170167 0.08200000226 0)
                                (1.146990041e-18 0.08200000226 -0.03873170167)
                                (-0.03873170167 0.08200000226 0)
 (1.146990041e-18 0.08200000226 0.03873170167)
                                (0.202000007 0 0)
                                (0.1951169968 0 0.05228139833)
                                (0.1951169968 0 -0.05228139833)
                                (0.1749369949 0 -0.1010000035)
                                (0.1428360045 0 -0.1428360045)
                                (0.1010000035 0 -0.1749369949)
                                (0.05228139833 0 -0.1951169968)
                                (6.123230127e-18 0 -0.202000007)
                                (-0.05228139833 0 -0.1951169968)
                                (-0.1010000035 0 -0.1749369949)
                                (-0.1428360045 0 -0.1428360045)
                                (-0.1749369949 0 -0.1010000035)
                                (-0.1951169968 0 -0.05228139833)
                                );
             includeCut        false;
             includeInside     false;
             includeOutside    false;
             nearDistance      10;
             curvature         10;
         }
     }

    // creation de la zone de cell a partir de la box precedente
    {
         name    capsule_zone;
         type    cellZoneSet;
         action  new;
         source  setToCellZone;
         sourceInfo
         {
                 set             capsule_set;
        }
     }



        // creation de faceset

      {
        name    capsule_face_set;
        type    faceSet;
       action  new;
        source  cellToFace;
        sourceInfo
        {
                set             capsule_set;
              option          all;
        }
    }

   // creation de face zone
      {
        name    capsule_face_zone;
        type    faceZoneSet;
        action  new;
        source  setToFaceZone;
        sourceInfo
        {
                faceSet             capsule_face_set;
        }
    }



);
*/

/*
actions         //A PARTIR DE PATCH
(
        // face set a partir de patch
{
      name    capsule_face_set;
      type    faceSet;
      action  new;
      source  patchToFace;
      sourceInfo
      {
              name              capsule;
      }
    }

       // cell set a partir de face set
 {
      name    capsule_set;
      type    cellSet;
      action  new;
      source  faceToCell;
      sourceInfo
      {

              set             capsule_face_set;
              option          any;
      }
  }

         // cell zone a partir de cell set
 {
      name    capsule_zone;
      type    cellZoneSet;
      action  new;
      source  setToCellZone;
      sourceInfo
      {
                set             capsule_set;

        }
    }


);
*/



actions         // A PARTIR DE BOUNDARY
(
        // face set a partir de boundary
{
      name    capsule_face_set;
      type    faceSet;
      action  new;
      source  boundaryToFace;
      sourceInfo
      {

              name              capsuleGroup;
      }
    }

/*      // invert
{
      name    capsule_face_set;
      type    faceSet;
      action  invert;

    }
*/


       // face zone a partir de face set
 {
      name    capsule_face_zone;
      type    faceZoneSet;
      action  new;
      source  setToFaceZone;
      sourceInfo
      {

              faceSet             capsule_face_set;

      }
  }

         // cell set a partir de face zone
 {
      name    capsule_cell;
      type    cellSet;
      action  new;
      source  faceZoneToCell;
      sourceInfo
      { name             capsule_face_zone;
                option          slave;

        }
    }

        // cell zone a partir de cell set

 {
      name    capsule_zone;
      type    cellZoneSet;
      action  new;
      source  setToCellZone;
      sourceInfo
     {

               set             capsule_cell;


        }
    }

);
Attached Images
File Type: png shm.png (49.7 KB, 402 views)
decibelle is offline   Reply With Quote

Old   July 3, 2017, 13:47
Default
  #2
New Member
 
Join Date: Mar 2017
Posts: 28
Rep Power: 9
saatt is on a distinguished road
can you post the dynamicmeshdict and blockMesDict?
saatt is offline   Reply With Quote

Old   July 4, 2017, 04:23
Default
  #3
Member
 
Join Date: May 2017
Posts: 38
Rep Power: 9
decibelle is on a distinguished road
Hello,
I found a solution, thank you for your help
decibelle is offline   Reply With Quote

Old   December 19, 2017, 11:04
Default
  #4
New Member
 
Jose
Join Date: Dec 2017
Location: Madrid
Posts: 6
Rep Power: 9
jlorenzo is on a distinguished road
Quote:
Originally Posted by decibelle View Post
Hi,

I work on OF 1.6 on a case of external aerodynamic. I made my mesh with snappyHexMesh, you can see the result on the picture (it is a slice).

I would like to move the capsule (oscillation and rotation) inside the mesh with pimpleDyMFoam. To do this, I created dynamicMeshDict file with solidBodyMotionFvMeshCoeffs and oscillatingRotatingMotion. In this file I need a cellZone.

my problem is to create this cellzone. I created a topoSetDict file and I tried to define a cellzone with surfaceToCell, boundaryToFace or PatchToFace but it doesn't work all the mesh oscillate.

someone can help me?

thanks in advance

I joined the toposetdict file
Code:
/*
actions         // AVEC UNE BOX
(
*/
/*
    // Create cellZone for moving cells in inlet channel


   // Creation d'une box de cell

    {
        name    capsule_set;
        type    cellSet;
        action  new;
        source  boxToCell;
        sourceInfo
        {

              boxes ((-0.3 -0.3 -0.3) (0.3 0.3 0.3));
*/

/*
        //Creation cell set a partir stl

    {
        name    capsule_set;
       type    cellSet;
        action  new;
        source  surfaceToCell;
        sourceInfo
        {

            file     "/openfoam/mesh/movingMesh/constant/triSurface/muse_c_shape.stl";
            outsidePoints     ( (0.03873170167 0.08200000226 0)
                                (1.146990041e-18 0.08200000226 -0.03873170167)
                                (-0.03873170167 0.08200000226 0)
 (1.146990041e-18 0.08200000226 0.03873170167)
                                (0.202000007 0 0)
                                (0.1951169968 0 0.05228139833)
                                (0.1951169968 0 -0.05228139833)
                                (0.1749369949 0 -0.1010000035)
                                (0.1428360045 0 -0.1428360045)
                                (0.1010000035 0 -0.1749369949)
                                (0.05228139833 0 -0.1951169968)
                                (6.123230127e-18 0 -0.202000007)
                                (-0.05228139833 0 -0.1951169968)
                                (-0.1010000035 0 -0.1749369949)
                                (-0.1428360045 0 -0.1428360045)
                                (-0.1749369949 0 -0.1010000035)
                                (-0.1951169968 0 -0.05228139833)
                                );
             includeCut        false;
             includeInside     false;
             includeOutside    false;
             nearDistance      10;
             curvature         10;
         }
     }

    // creation de la zone de cell a partir de la box precedente
    {
         name    capsule_zone;
         type    cellZoneSet;
         action  new;
         source  setToCellZone;
         sourceInfo
         {
                 set             capsule_set;
        }
     }



        // creation de faceset

      {
        name    capsule_face_set;
        type    faceSet;
       action  new;
        source  cellToFace;
        sourceInfo
        {
                set             capsule_set;
              option          all;
        }
    }

   // creation de face zone
      {
        name    capsule_face_zone;
        type    faceZoneSet;
        action  new;
        source  setToFaceZone;
        sourceInfo
        {
                faceSet             capsule_face_set;
        }
    }



);
*/

/*
actions         //A PARTIR DE PATCH
(
        // face set a partir de patch
{
      name    capsule_face_set;
      type    faceSet;
      action  new;
      source  patchToFace;
      sourceInfo
      {
              name              capsule;
      }
    }

       // cell set a partir de face set
 {
      name    capsule_set;
      type    cellSet;
      action  new;
      source  faceToCell;
      sourceInfo
      {

              set             capsule_face_set;
              option          any;
      }
  }

         // cell zone a partir de cell set
 {
      name    capsule_zone;
      type    cellZoneSet;
      action  new;
      source  setToCellZone;
      sourceInfo
      {
                set             capsule_set;

        }
    }


);
*/



actions         // A PARTIR DE BOUNDARY
(
        // face set a partir de boundary
{
      name    capsule_face_set;
      type    faceSet;
      action  new;
      source  boundaryToFace;
      sourceInfo
      {

              name              capsuleGroup;
      }
    }

/*      // invert
{
      name    capsule_face_set;
      type    faceSet;
      action  invert;

    }
*/


       // face zone a partir de face set
 {
      name    capsule_face_zone;
      type    faceZoneSet;
      action  new;
      source  setToFaceZone;
      sourceInfo
      {

              faceSet             capsule_face_set;

      }
  }

         // cell set a partir de face zone
 {
      name    capsule_cell;
      type    cellSet;
      action  new;
      source  faceZoneToCell;
      sourceInfo
      { name             capsule_face_zone;
                option          slave;

        }
    }

        // cell zone a partir de cell set

 {
      name    capsule_zone;
      type    cellZoneSet;
      action  new;
      source  setToCellZone;
      sourceInfo
     {

               set             capsule_cell;


        }
    }

);
Hi, I'm also having troubles to define the cellZone in order to use solidBodyMotionFvMesh, could you please share how you solved your problem?
jlorenzo is offline   Reply With Quote

Old   September 27, 2019, 18:26
Default
  #5
New Member
 
Andy S.
Join Date: Jun 2018
Posts: 17
Rep Power: 8
TheMadHungarian is on a distinguished road
Quote:
Originally Posted by decibelle View Post
Hello,
I found a solution, thank you for your help

Ah, my friend, it would be very helpful to us all if you let us know what was the solution you found....after all that is the goal of this forum.


Thanks
Andy
TheMadHungarian is offline   Reply With Quote

Old   August 10, 2022, 06:53
Default
  #6
New Member
 
Aswin Chempanchery
Join Date: Jul 2022
Posts: 2
Rep Power: 0
AshC is on a distinguished road
Hello,
Hope you are well.
When you find solutions to your problems ,Please post it online so others can solve similar problems in the future as well.
K-al-Eps-o likes this.
AshC is offline   Reply With Quote

Reply

Tags
cellzone, dynamicmeshdict, movingmesh, toposet


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
HELP----Surface Reaction UDF Ashi Fluent UDF and Scheme Programming 1 May 19, 2020 22:13
Laminar Kinetic Energy Model (Walters 2008) logoswort Fluent UDF and Scheme Programming 2 May 19, 2017 20:41
Define new turbulence model in Fluent micro11sl Fluent UDF and Scheme Programming 55 October 27, 2016 18:25
udf problem eb.nabizadeh Fluent UDF and Scheme Programming 2 March 1, 2013 01:28
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation 129 June 19, 2010 10:23


All times are GMT -4. The time now is 11:51.