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

help me cyclicAMI

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 29, 2016, 09:57
Default help me cyclicAMI
  #1
Member
 
bye bye my blue
Join Date: Sep 2016
Posts: 37
Rep Power: 1
bye bye my blue is an unknown quantity at this point
Sponsored Links
20161129_225017.jpg


Hi everyone

I wanna make AMI like this picture

it is just x-y side and i 'll make to 3D.

the circle is cylinder and I wanna rotate cylinder with AMI.

constant/boundary is
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

4
(
inlet
{
type patch;
nFaces 106;
startFace 16702;
}
outlet
{
type patch;
nFaces 96;
startFace 16808;
}
walls
{
type patch;
nFaces 1804;
startFace 16904;
}
circle
{
type patch;
nFaces 66;
startFace 18708;
}
)

// ************************************************** *********************** //

Next, I modified this file (adding AMI2)
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class polyBoundaryMesh;
location "constant/polyMesh";
object boundary;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

5
(
inlet
{
type patch;
nFaces 106;
startFace 16702;
}
outlet
{
type patch;
nFaces 96;
startFace 16808;
}
walls
{
type patch;
nFaces 1804;
startFace 16904;
}
circle
{

type cyclicAMI;
matchTolerance 0.0001;
neighbourPatch AMI2;
transform noOrdering;
nFaces 66;
startFace 18708;
}

AMI2
{

type cyclicAMI;
matchTolerance 0.0001;
neighbourPatch circle;
transform noOrdering;
nFaces 66;
startFace 18708;
}




)

// ************************************************** *********************** //

and run createBaffles
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.0-665f1db4c1f1
Exec : createBaffles -dict system/createBafflesDict -overwrite
Date : Nov 29 2016
Time : 21:45:44
Host : "PCL"
PID : 13027
Case : /media/pcl/e5754578-443c-4ba6-b934-dfa4db653676/OpenFOAM/pcl-4.0/run/dymesh_ex1
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading baffle criteria from createBafflesDict

Not converting faces on non-coupled patches.

Reading geometric fields

Reading volScalarField p
Reading volScalarField nut
Reading volScalarField k
Reading volScalarField epsilon
Reading volVectorField U
Created zone interface at index 0 with 222 faces
Patch 'circle' already exists. Only moving patch faces - type will remain the same
Patch 'AMI2' already exists. Only moving patch faces - type will remain the same


--> FOAM FATAL ERROR:
Problem : Patch AMI2 starts at 18708
Current face counter at 18774
Are patches in incremental order?

From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2451.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::polyTopoChange::addMesh(Foam::polyMesh const&, Foam::List<int> const&, Foam::List<int> const&, Foam::List<int> const&, Foam::List<int> const&) at ??:?
#3 Foam::polyTopoChange::polyTopoChange(Foam::polyMes h const&, bool) at ??:?
#4 ? at ??:?
#5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6 ? at ??:?
///////
Current face counter at 18774
Are patches in incremental order?
//// it is error..//


how can I solve it??
bye bye my blue is offline   Reply With Quote
Sponsored Links

Old   December 2, 2016, 07:54
Default
  #2
Senior Member
 
khedar
Join Date: Oct 2016
Posts: 110
Rep Power: 2
khedar is on a distinguished road
i guess you can't simply change boundary file. If you created your mesh using blockMesh then blockMeshDict has to be modified to take into account of AI interface. otherwise if you created this using some meshing software then you need to create an interface at the the boundary of the circle.
khedar is offline   Reply With Quote

Old   December 4, 2016, 07:40
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,843
Blog Entries: 6
Rep Power: 32
Tobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi,

you can not simply change the boundary file and add a new patch ... the topology of your mesh is defined by your meshing strategy and is stored in the point, cell and face files that are located in the polyMesh folder. If you really want to make an AMI, you have to use other techniques. Check out the tutorials that come with OpenFOAM. There you will find the answer.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Time step continuity error lpz_michele OpenFOAM Running, Solving & CFD 0 October 12, 2015 06:05
cyclicAMI ... but only sometimes! chris_j_meyer OpenFOAM Running, Solving & CFD 1 April 16, 2015 03:40
Boundary Layer strange result fernexda OpenFOAM Running, Solving & CFD 14 January 15, 2015 08:21
problem with cyclicAMI and wall distance Maff OpenFOAM Bugs 5 August 14, 2014 14:41
CyclicAMI Boundary Condition CUBoulderPhDStudent OpenFOAM Running, Solving & CFD 0 May 21, 2014 18:34

Sponsored Links


All times are GMT -4. The time now is 00:53.