|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Join Date: May 2017
Posts: 38
Rep Power: 10 ![]() |
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;
}
}
);
|
|
|
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2017
Posts: 28
Rep Power: 10 ![]() |
can you post the dynamicmeshdict and blockMesDict?
|
|
|
|
|
|
|
|
|
#3 |
|
Member
Join Date: May 2017
Posts: 38
Rep Power: 10 ![]() |
Hello,
I found a solution, thank you for your help |
|
|
|
|
|
|
|
|
#4 | |
|
New Member
Jose
Join Date: Dec 2017
Location: Madrid
Posts: 6
Rep Power: 9 ![]() |
Quote:
|
||
|
|
|
||
|
|
|
#5 |
|
New Member
Andy S.
Join Date: Jun 2018
Posts: 17
Rep Power: 9 ![]() |
||
|
|
|
|
|
|
|
#6 |
|
New Member
Aswin Chempanchery
Join Date: Jul 2022
Posts: 2
Rep Power: 0 ![]() |
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. |
|
|
|
|
|
![]() |
| Tags |
| cellzone, dynamicmeshdict, movingmesh, toposet |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |