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

OpenFOAM killing itself before even starting solution

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 6, 2021, 03:20
Unhappy OpenFOAM killing itself before even starting solution
  #1
New Member
 
Jason Bavosky
Join Date: Apr 2021
Location: Mumbai
Posts: 13
Rep Power: 5
Jay22kar is on a distinguished road
Hello foamers,

Recently I considered using AWS for one of my simulations.
I zipped my case directory, copied from my PC to the remote PC, and unzipped it.
As soon as I start the simulation, it starts reading U file & KILLS itself.

The case runs normally in my PC but KILLS itself on the AWS. Please have a look at the screenshot.

The only difference is - my OpenFOAM version is 2006(.com version) & the remote AWS PC contains OpenFOAM V8(.org version)..

PS - Even decomposePar wasn't working before. I copied decomposeParDict file from V8 motorbike tutorial to one of the case & then decomposePar worked!

Has anyone faced such issues? Any solutions?
Thanks
Attached Images
File Type: jpg AWS error.JPG (53.3 KB, 17 views)
Jay22kar is offline   Reply With Quote

Old   May 8, 2021, 18:54
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 748
Rep Power: 14
Tobermory will become famous soon enough
Is the data in the U file stored in binary or ASCII? If binary, then will may have problems if the hardware architecture of the 2 platforms (PC, AWS) is different ... write the data files out in ASCII (I seem to remember there is a utility for that?), transfer and then try again (you can switch back to binary writes once you have kicked off the simulations again).
Tobermory is offline   Reply With Quote

Old   May 10, 2021, 02:54
Default
  #3
New Member
 
Jason Bavosky
Join Date: Apr 2021
Location: Mumbai
Posts: 13
Rep Power: 5
Jay22kar is on a distinguished road
Hello Tobermory,

It's a simple U file containing patches and BCs- which is default in ASCII version, right?

I tried running the case on my friend's PC which had OpenFOAM V8 installed. And it did run! So version is not the culprit I guess.

As far as the binary-ASCII type is concerned, I uploaded another 2D case from my PC, which also worked on AWS! So, if that was the issue, even the 2D case should not have run, right?
Tell me what do you think?

Also, I am not "very" familiar with ubuntu systems, I am still learning, so I would really appreciate if you shed more light on it or any utilities etc.
Thanks
Jay22kar is offline   Reply With Quote

Old   May 10, 2021, 09:54
Default
  #4
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 748
Rep Power: 14
Tobermory will become famous soon enough
Quote:
Originally Posted by Jay22kar View Post
Hello Tobermory,

It's a simple U file containing patches and BCs- which is default in ASCII version, right?

I tried running the case on my friend's PC which had OpenFOAM V8 installed. And it did run! So version is not the culprit I guess.

As far as the binary-ASCII type is concerned, I uploaded another 2D case from my PC, which also worked on AWS! So, if that was the issue, even the 2D case should not have run, right?
Tell me what do you think?
Well, this is not entirely the case. Take a look at a binary boundary file and you will find that the header is ASCII, and sois the bulk of the boundary data at the end - ie you can read it in a text editor. The binary parts of the file are the lists of internalField data and boundary patch data ... UNLESS they are simple, eg zeroGradient boundary condition or uniform value across the patch or field, in which case the entry will still be in ASCII.

So your 2D example doesn't rule out binary incompatibility as an issue. Have a quick look at the 2D case boundary files - are they all ASCII? Now look at your full case example - are parts of the files in binary (eg the values appear garbled in a text editor)? Probably yes.

The utility I was talking about is foamFormatConvert - that allows you to rewrite a binary file as ASCII, and can help when porting data from one machine type to another. The ASCII file will be big, ofc, so you probably want to gzip it before transferring across.
Tobermory is offline   Reply With Quote

Reply

Tags
simulation crash, version 8


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
Convergence Centurion2011 FLUENT 48 June 15, 2022 00:29
OpenFOAM killing itself before even starting solution Jay22kar OpenFOAM 1 May 6, 2021 04:19
big difference between clockTime and executionTime LM4112 OpenFOAM Running, Solving & CFD 21 February 15, 2019 04:05
Starting point for OpenFOAM yesaswi92 OpenFOAM 2 January 16, 2014 12:20
Parallel solution in OpenFOAM makaveli_lcf OpenFOAM Running, Solving & CFD 0 September 21, 2009 09:07


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