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

pimpleDyMfoam simulation keeps blowing up

Register Blogs Community New Posts Updated Threads Search

Like Tree15Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2013, 02:29
Default
  #41
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
I can not share the CAD model as it belongs to some company. But here are SHM and files that I used to generate mesh.

Meanwhile I'll prepare another CAD model that I can share and come back here.
Attached Files
File Type: txt snappyHexMeshDict1.txt (2.6 KB, 19 views)
File Type: txt snappyHexMeshDict2.txt (2.6 KB, 13 views)
vasava is offline   Reply With Quote

Old   May 3, 2013, 02:43
Default
  #42
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 14
A.Wendy is on a distinguished road
Quote:
Originally Posted by vasava View Post
I can not share the CAD model as it belongs to some company. But here are SHM and files that I used to generate mesh.

Meanwhile I'll prepare another CAD model that I can share and come back here.
maybe it iis best if you just create a dummy STl-file and upload the case with this geometry.

andy
A.Wendy is offline   Reply With Quote

Old   May 3, 2013, 04:20
Default
  #43
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Meanwhile can you explain how AMI is generated?
vasava is offline   Reply With Quote

Old   May 3, 2013, 04:33
Default
  #44
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 14
A.Wendy is on a distinguished road
Quote:
Originally Posted by vasava View Post
Meanwhile can you explain how AMI is generated?
Hi,

I normally work with OpenFOAM 1.6 extend with the integrated GGI.
But the AMI should be more or less the same.

1. Create two seperate meshes.
a) one for the static mesh
b) one for the rotating mesh

2. Merge both meshes with "mergeMeshes".
a) create a copy of one mesh and merge this copy with the other mesh
mergeMeshes copiedCase otherCase

3. modify the boundary file of the merged mesh
a) got to the merged case -> cobnstant -> polymesh. open the file boundary in a text editor
b) have a look at the patches wich are the base of your AMI
c) change first patch (e.g. AM1)

AMI1
{
type cyclicAMI; <- change type
nFaces 22416; <- use here original data from boundary file
startFace 1733766; <- use here original data from boundary file
matchTolerance 0.0001;
neighbourPatch AMI2; <- use name of patch from other mesh
transform noOrdering;
}

d) do same procedure to the second ami-patch just with the other patch names.


save the file and try to run the calculation with "pimpleDyMFoam"

best wishes

Andy
HenningW likes this.
A.Wendy is offline   Reply With Quote

Old   May 3, 2013, 07:03
Default
  #45
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Thanks. I am trying it now. Hope it works.
vasava is offline   Reply With Quote

Old   May 6, 2013, 07:03
Default
  #46
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Quote:
Originally Posted by A.Wendy View Post
Hi,
1. Create two seperate meshes.
a) one for the static mesh
b) one for the rotating mesh
When I create the mesh with stl files, the process creates two folders 0.1 and 0.2. I assume 0.2 has the latest mesh and then copy it to the constant folder (and then do merging). Is this correct?

The second question: The merging operation seems to work fine but when I check the merged mesh the cellZones, faceZones and pointZones files are empty. What do you think is going wrong?
vasava is offline   Reply With Quote

Old   May 6, 2013, 07:07
Default
  #47
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 14
A.Wendy is on a distinguished road
Quote:
Originally Posted by vasava View Post
When I create the mesh with stl files, the process creates two folders 0.1 and 0.2. I assume 0.2 has the latest mesh and then copy it to the constant folder (and then do merging). Is this correct?

The second question: The merging operation seems to work fine but when I check the merged mesh the cellZones, faceZones and pointZones files are empty. What do you think is going wrong?
you can use for snappy HExMesh the following line to write the mesh to the 0-folder/constant-folder

snappyHexMesh -overwrite


the zoning should be done after mergeing the meshes i think
A.Wendy is offline   Reply With Quote

Old   May 6, 2013, 09:11
Default
  #48
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Well I tried the '-overwrite' but the problem of empty files still persists.

By the way how do you make your stl file? Do you export it as one surface or export it as one file containing several surfaces (inlet, outlet, wall etc)?

I will post this in the main forum as well.
vasava is offline   Reply With Quote

Old   May 7, 2013, 03:34
Default
  #49
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Here is link to the case files. The case is minimal so you have to start from scratch. Sorry about that but the files were too big.

http://www.mediafire.com/?y9i5lj4b1xxw3cr

Please let me know if you need something.

I am working with the propeller example to see if I can find some hints.
vasava is offline   Reply With Quote

Old   May 7, 2013, 05:22
Default
  #50
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 14
A.Wendy is on a distinguished road
Quote:
Originally Posted by vasava View Post
Here is link to the case files. The case is minimal so you have to start from scratch. Sorry about that but the files were too big.

http://www.mediafire.com/?y9i5lj4b1xxw3cr

Please let me know if you need something.

I am working with the propeller example to see if I can find some hints.
I am working on it.
but my Computer has only few ressources left so it will take some time...

andy
A.Wendy is offline   Reply With Quote

Old   May 7, 2013, 05:31
Default
  #51
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
I appreciate your help. I am now following the propeller example where use of multiple stl files and AMI is demonstrated.

Thanks again.
vasava is offline   Reply With Quote

Old   May 7, 2013, 08:35
Default
  #52
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 14
A.Wendy is on a distinguished road
hi,

i just had a look at your case.
your setup of geometry will not work this way. your sliding patch have to be of a cylindrical shape. but yours is not. even i would change the snappy hex mesh entries.
i think it would be more easy to have a geometry of the rotating part of your mixer not of the fluid.
the axis of your mixer is also moving so i would put it into the moving domain too.

if the tank is cylindrical you may not need to create with a stl file. you can use blockMesh and snappy Hexmesh only.
can you upload a stl/obj. file of the mixer only?

andy
A.Wendy is offline   Reply With Quote

Old   May 7, 2013, 09:00
Default
  #53
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Here is link to the impeller and mixer files.

http://www.mediafire.com/?g5bb7tqlq1bubnp

Thanks!!
vasava is offline   Reply With Quote

Old   May 7, 2013, 09:18
Default
  #54
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 14
A.Wendy is on a distinguished road
hi,

i need the geometrie of the tank and blades not of the computational area.
A.Wendy is offline   Reply With Quote

Old   May 8, 2013, 03:31
Default
  #55
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
Here is the link to those files. http://www.mediafire.com/?xmzqjhcu354go3r
vasava is offline   Reply With Quote

Old   May 8, 2013, 09:58
Default
  #56
Member
 
Andreas Wendy
Join Date: Aug 2012
Posts: 73
Rep Power: 14
A.Wendy is on a distinguished road
Quote:
Originally Posted by vasava View Post
Here is the link to those files. http://www.mediafire.com/?xmzqjhcu354go3r
Hi

here you find the "cleaned" case. just run the Allrun file. The boundary ist changed by hand maybe you can automatize it.

if you have quest just send a massage

http://ubuntuone.com/3ZKPM8nv9xDgZaSkhsVcoO

best wishes

andy
A.Wendy is offline   Reply With Quote

Old   May 10, 2013, 04:17
Default
  #57
Senior Member
 
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23
vasava will become famous soon enough
I will check the case soon. Thank you very much for the help. I will get back if I am stuck somewhere.
vasava is offline   Reply With Quote

Old   May 24, 2013, 13:56
Default trying to generate oscillating motion
  #58
New Member
 
Bhupesh
Join Date: Jun 2012
Location: Germany
Posts: 14
Rep Power: 14
bhups45 is on a distinguished road
I have successfully tried the cubo.tar.gz case that was uploaded earlier in this thread and i was able to run it successfully.
Now i want to change the rotation motion to osclillatinLinearMotion using same solidBodyMotionFvMesh only used in cubo example. For that I have changed the dynamicMeshDict file like this :

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

dynamicFvMesh solidBodyMotionFvMesh;

motionSolverLibs ( "libfvMotionSolvers.so" );

solidBodyMotionFvMeshCoeffs
{
cellZone region0;

solidBodyMotionFunction oscillatingLinearMotion;
oscillatingLinearMotionCoeffs
{
amplitude (3 0 0);
omega 12.5892;//4*pi
}
}


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

But I am not able to get the solution for it. It is showing following error at the end:


#0 Foam::error:rintStack(Foam::Ostream&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2 in "/lib/x86_64-linux-gnu/libc.so.6"
#3 double Foam::sumProd<double>(Foam::UList<double> const&, Foam::UList<double> const&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#4 Foam::PBiCG::solve(Foam::Field<double>&, Foam::Field<double> const&, unsigned char) const in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#5 Foam::fvMatrix<double>::solveSegregated(Foam::dict ionary const&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
#6 Foam::fvMatrix<double>::solve(Foam::dictionary const&) in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so"
#7 Foam::fvMatrix<double>::solve() in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so"
#8 Foam::incompressible::RASModels::kOmegaSST::correc t() in "/opt/openfoam220/platforms/linux64GccDPOpt/lib/libincompressibleRASModels.so"
#9
in "/opt/openfoam220/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
#10 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#11
in "/opt/openfoam220/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
Floating point exception (core dumped)

please help me out with this......
bhups45 is offline   Reply With Quote

Old   June 5, 2013, 10:59
Default
  #59
Member
 
Andrew Glassby
Join Date: Sep 2009
Posts: 65
Rep Power: 17
ADGlassby is on a distinguished road
Hi Linneman, I wonder if I could ask a couple of question of you about AMI.

I am trying to mesh a geometry (Similar in some respects to the mixerVesselAMI2D example) using snappyHexMesh I have split the geometry into moving and static then recombined after meshing. However my model is in 2D so I have followed the advice to flattenMesh then ExtrudeMesh between the castellatedMesh and the Snap stages of sHM. This seems to give me a really smooth looking mesh.

I have hit a major problem though since when, after I manipulate the mesh, I run it using pimpleDymFoam my WHOLE domain rotates and not just the rotor (in the rotating zone).

When I come to create the face and cell Zones is there a specific way in which I should do this? Also I understand from the discussion that AMI requires BOTH the moving and static face/cellZones to be created. I have tried to do this but still the WHOLE domain rotates. I wonder if I have generated some kind of bridge between the two zones while I am creating them??

Is it possible that topoSet or setSet doesn't like working in just 2D? having only 1 cell in the Z direction? is it possible to have a cellZone and a faceZone with only one cell in a given direction?

Finally since I am working in 2D when I am meshing should I mesh with snappyHexMesh without the empty front and back patches (eg define them in blockMeshDict as patch or wall first) then convert them to empty at the end using createPatch?

Sorry I have asked so many questions but I seem to be learning so much but not necessarily of the right stuff at the right time!

Hope you can help me out.

Best Regards

Andrew
ADGlassby is offline   Reply With Quote

Old   June 6, 2013, 03:03
Default
  #60
Senior Member
 
linnemann's Avatar
 
Niels Nielsen
Join Date: Mar 2009
Location: NJ - Denmark
Posts: 556
Rep Power: 27
linnemann will become famous soon enough
Hi to properly create the cellZones dont use topoSet or setSet when you have multiple meshes.

use this command instead

Code:
splitMeshRegions -makeCellZones
That will create cellZones based on the meshRegions and region0 will be the master mesh and region1 will be the mesh you merged with the master and so forth.

Best
__________________
Linnemann

PS. I do not do personal support, so please post in the forums.
linnemann 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
Solar Radiation in OpenFOAM plainstyle OpenFOAM Running, Solving & CFD 15 July 8, 2014 05:43
Simulation of a complex wing in solidworks flow simulation niels1900 FloEFD, FloWorks & FloTHERM 6 April 20, 2011 11:44
pimpleDyMFoam stability problems cnsidero OpenFOAM Running, Solving & CFD 3 January 29, 2011 13:36
Continuous vs interrupted simulation sega OpenFOAM Running, Solving & CFD 4 November 3, 2008 15:29
strange simulation error Ralf Schmidt FLUENT 2 May 4, 2007 14:02


All times are GMT -4. The time now is 16:08.