CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Multiple AMI on pimpleFoam causing decreasing time step size.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 16, 2019, 08:39
Default Multiple AMI on pimpleFoam causing decreasing time step size.
  #1
New Member
 
Join Date: Jul 2019
Posts: 14
Rep Power: 6
usr0830 is on a distinguished road
Hello,
I am working on a simulation with two AMIs representing two rotors. When I use pimpleFoam, the time step size starts to decrease rapidly (from the initial deltaT=e-3 to e-23). I have tried initialising the solution with potentialFoam, the issue persists. I have also checked if the cells are connected as suggested in this post (Multiple AMI rotations not working). However, the multiSolidBodyMotionFvMesh option is unavailable on pimpleFoam 'dynamicFvMesh'.

Here is the dynamicMeshDict file.

Quote:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

motionSolver solidBody;

cellZone rotating1-cells;

solidBodyMotionFunction rotatingMotion;

origin (0 0 0);
axis (0 0 1);
omega 125; // rad/s

cellZone rotating2-cells;

solidBodyMotionFunction rotatingMotion;

origin (0.65 0 0);
axis (0 0 1);
omega -125; // rad/s
// ************************************************** *********************** //
Here is the controlDict

Quote:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application pimpleFoam;

startFrom startTime;

startTime 0;

stopAt endTime;
//stopAt nextWrite;
//stopAt noWriteNow

endTime 0.5;

deltaT 1e-3;

writeControl adjustableRunTime;

writeInterval 0.002;

purgeWrite 0;

writeFormat ascii;

writePrecision 18;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

adjustTimeStep yes;

maxCo 20;

functions
{
#include "forces"
}
// ************************************************** *********************** //

Any leads on why the timestep decreases to such low values would be appreciated.

Thank you.


Edit:
I also noticed that only one of my rotors (rotating2 from the dynamicMeshDict) is rotating when I ran the moveDynamicMesh -checkAMI command. I have checked with some solutions suggested for this issue on this forum but they have proved fruitless. (example: dynamicMultiMotionSolverFvMesh: This warrants an error as follows "Unknown dynamicFvMesh type dynamicMultiMotionSolverFvMesh"
mergeOrSplitBaffles -split -overwrite: This returns zero connected cells.)
Along with this, I also observe the same error message about the aspect ratio as mentioned in the https://bugs.openfoam.org/view.php?id=1026.
If anybody faced a similar issue and solved it or has any ideas about this please do chime in.

Thank you.

Last edited by usr0830; July 18, 2019 at 10:44.
usr0830 is offline   Reply With Quote

Old   July 17, 2019, 05:49
Default
  #2
Senior Member
 
Kmeti Rao
Join Date: May 2019
Posts: 145
Rep Power: 7
Krao is on a distinguished road
Hi, I think this is due to the number of grids in the interface, please look into the number of elements in the interface and also the overall grid size of the domain. May I know how many cells you have

Regards
Krao is offline   Reply With Quote

Old   July 18, 2019, 08:53
Default
  #3
New Member
 
Join Date: Jul 2019
Posts: 14
Rep Power: 6
usr0830 is on a distinguished road
Quote:
Originally Posted by Krao View Post
Hi, I think this is due to the number of grids in the interface, please look into the number of elements in the interface and also the overall grid size of the domain. May I know how many cells you have

Regards
Hello Krao,
Thank you for your reply. The number of cells on each moving interface is 78 and the total number of cells in the domain is 67,766. I have the same number of cells on both sides of the moving interface.
usr0830 is offline   Reply With Quote

Old   July 25, 2019, 04:03
Default
  #4
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Your step size goes down because you set it according to the Courant number (here capped at 20). One of your fields probably diverges.


Try capping the Courant to 0.5 as a test and/or running the case with no rotation (but with the AMI interfaces present).
louisgag 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
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 07:09
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 22:40
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


All times are GMT -4. The time now is 20:03.