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

SonicFoam simulation probleme

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2010, 18:22
Default SonicFoam simulation probleme
  #1
Member
 
Alex
Join Date: Mar 2010
Posts: 33
Rep Power: 16
bruxellois is on a distinguished road
Dear Foamers!

I'm trying to simulate the exhaust of a muzzle, my mesh and my boundary conditions are ok (transient boundary condition (time-depended) ), i'm using sonicFoam (with perfect gas).

the simulation do not give any result (0 iteration all the time).

You can find my case directory here

http://www.4shared.com/file/hpAUp6tE/test64tar.html


Any help please.

Alex
Attached Files
File Type: gz 0.tar.gz (1.6 KB, 15 views)
bruxellois is offline   Reply With Quote

Old   September 5, 2010, 17:29
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Alex,

What version of OpenFOAM are you using and which gcc version did you use to build it?

To know the gcc version, run:
Code:
gcc -v
I haven't tried to run the case yet, but knowing the versions would help reducing the chances of "works for me, but not for you"

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 5, 2010, 17:35
Default
  #3
Member
 
Alex
Join Date: Mar 2010
Posts: 33
Rep Power: 16
bruxellois is on a distinguished road
Hi Bruno,

I'm using OpenFoam 1.7.0 and gcc version 4.4.3.

Best regards
bruxellois is offline   Reply With Quote

Old   September 5, 2010, 17:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Alex,

Well, that was easy... I didn't even need to run it. The problem is that you didn't notice that your write time is larger than your end time:
Code:
endTime         0.00007 ;
(...)
writeInterval   0.0005;
Therefore, if it did write a time folder >0, then there would be something veeeery wrong

And yes, I've made this mistake too in the past
Always keep in mind that with OpenFOAM (and probably other CFD applications too), you must handle input and output data with eagle eyes Otherwise, you might end up with a GIGO case (Garbage in - Garbage out).

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 5, 2010, 17:59
Default
  #5
Member
 
Alex
Join Date: Mar 2010
Posts: 33
Rep Power: 16
bruxellois is on a distinguished road
Hi Bruno,

I've notice this error ans i modified it

ndTime 0.007 ;
(...)
writeInterval 0.0005;

But there is no change, all the simulation is with O iterations (p,e, Ux..) so the result is the same of my initials conditions. I let it working for 10 hours without any change.

Any idea.

Thanks a lot.
bruxellois is offline   Reply With Quote

Old   September 5, 2010, 20:14
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Alex,

Let me first just warn you: I have a lot of experience in installing OpenFOAM in Linux and Windows, but sadly I don't have much experience actually using it

Nonetheless, I changed a bit the the times in the controlDict to:
Code:
endTime         0.0007 ;

deltaT          0.000008;

writeControl    runTime;

writeInterval   0.0001;
But I only let it run until it gave me a new time snapshot. The new snapshot was at 9.6e-5 seconds. Attached are the two snapshots, looking at the entrance zone and they compare U vectors with magnitude for color scale. The residues indicated that convergence is almost immediate, at least if deltaT allows for it to converge.
I can only assume two things from these two pictures:
  • the mesh could use some more refinement near the entrance... but I'm not sure about this.
  • the mesh doesn't have an outlet! If you are testing the exhaust of a muzzle, I can only assume that you don't want to compress the fluid inside the mesh volume.
Either way, if you run checkMesh, it reports a point that isn't exactly on the surface of one of the patches. Well, it's barely an error, when compared with the simulation domain...

My suggestion (as a pseudo-amateur) is to first test the mesh with icoFoam or simpleFoam, and see if the air can simply flow from one place to the other, without taking into account accuracy in turbulence and all that. Simply test the mesh if is a valid simulation domain.

Best regards and good luck!
Bruno
Attached Images
File Type: jpg snap0.jpg (10.7 KB, 20 views)
File Type: jpg snap9.6e-05.jpg (19.0 KB, 17 views)
__________________
wyldckat is offline   Reply With Quote

Old   September 5, 2010, 22:03
Default
  #7
Member
 
Alex
Join Date: Mar 2010
Posts: 33
Rep Power: 16
bruxellois is on a distinguished road
Hi Bruno,

Thanks for your response.

I had my mesh from a fluentMeshToFoam conversion, i've run the case under fluent and it gave a good result.


Best regards.
bruxellois is offline   Reply With Quote

Old   October 30, 2010, 12:06
Default
  #8
Member
 
kiran Ambilpur
Join Date: Jun 2010
Location: India
Posts: 50
Rep Power: 16
kiran is on a distinguished road
Send a message via Skype™ to kiran
Hi bruxe

how about your simulations. explain me your problem which your are facing now. snd a private msg.

regards
Ambilpur Kiran
kiran 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
energy in sonicFoam joern OpenFOAM Running, Solving & CFD 1 September 24, 2019 01:15
FSI TWO-WAY SIMULATION Smagmon CFX 1 March 6, 2009 14:24
Continuous vs interrupted simulation sega OpenFOAM Running, Solving & CFD 4 November 3, 2008 15:29
simulation of tundish probleme chankhar FLUENT 21 May 27, 2006 14:46
3-D Contaminant Dispersal Simulation Apple L S Chan Main CFD Forum 1 December 23, 1998 11:06


All times are GMT -4. The time now is 01:37.