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

Fatal Error in file POSIX.C

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 7, 2010, 08:49
Default Fatal Error in file POSIX.C
  #1
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
Hi foamers,

When I run "decomposePar" to my case, I got error stories again as follow:

--> FOAM FATAL ERROR:

Couldn't creat directory "/home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/processor1"

From function Foam::mkDir(const fileName&, mode_t)
in file POSIX.C at line 423.FOAM exiting



I check the POSIX.C file at line 423, the code were written as follows:

default:
{
FatalErrorIn("Foam::mkDir(const fileName&, mode_t)")
<< "Couldn't create directory " << pathName
<< exit(FatalError);

return false;
}



What is wrong with it? Who can help me out? Thanks.

Sandy
sandy is offline   Reply With Quote

Old   February 7, 2010, 19:51
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Sandy,

Have you tried making the directory manually? There might already be a file named "processor1" or you might have reduced permissions on the case folder, for some strange reason...

So, try this:
Code:
mkdir /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/processor1
If that also gives an error, than try:
Code:
ls -la /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/
If that also gives out and error saying "not found", than there might be some misconfiguration somewhere... like for example:
  • your user name in your Linux box isn't "user", and for some reason, the environment variables got mixed when defined by the bashrc script at $HOME/OpenFOAM/OpenFOAM-1.6.x/etc;
  • the file decomposeParDict (if I'm not mistaken) has the address to the case folder mistyped;
  • you might have launched decomposePar with the -case argument, and didn't provide the correct address.
Now, in case the command ls -la does give you a list of files and folders, check for the existence of a file or folder processor1, or check the permissions and ownership of the files and folders present there.

Additionally, in case you edited out your true user name and put in "user", it could be due to your user name having special characters or spaces in the name, thus making OpenFOAM to throw an error... although in Linux that shouldn't be an issue.

Best regards,
Bruno Santos
wyldckat is offline   Reply With Quote

Old   February 7, 2010, 20:34
Default
  #3
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings Sandy,

Have you tried making the directory manually? There might already be a file named "processor1" or you might have reduced permissions on the case folder, for some strange reason...

So, try this:
Code:
mkdir /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/processor1
If that also gives an error, than try:
Code:
ls -la /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/
If that also gives out and error saying "not found", than there might be some misconfiguration somewhere... like for example:
  • your user name in your Linux box isn't "user", and for some reason, the environment variables got mixed when defined by the bashrc script at $HOME/OpenFOAM/OpenFOAM-1.6.x/etc;
  • the file decomposeParDict (if I'm not mistaken) has the address to the case folder mistyped;
  • you might have launched decomposePar with the -case argument, and didn't provide the correct address.
Now, in case the command ls -la does give you a list of files and folders, check for the existence of a file or folder processor1, or check the permissions and ownership of the files and folders present there.

Additionally, in case you edited out your true user name and put in "user", it could be due to your user name having special characters or spaces in the name, thus making OpenFOAM to throw an error... although in Linux that shouldn't be an issue.

Best regards,
Bruno Santos
If that, sir, how and when I can get the passport, you think?
sandy is offline   Reply With Quote

Old   February 8, 2010, 00:00
Default
  #4
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 249
Rep Power: 9
Ahmed is on a distinguished road
Your error message, openfoam cannot create a directory, and Bruno Santos is telling you to create this folder manually and see what is wrong there
Ahmed is offline   Reply With Quote

Old   February 8, 2010, 07:25
Thumbs up
  #5
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
WOW, it is amazing ... I solved them! Thanks, anyway...

Last edited by sandy; February 8, 2010 at 08:58.
sandy is offline   Reply With Quote

Old   February 8, 2010, 16:49
Default
  #6
Senior Member
 
Ahmed
Join Date: Mar 2009
Location: NY
Posts: 249
Rep Power: 9
Ahmed is on a distinguished road
Lee
I do not read private messages, you have anything to say, say it here.
Again, the openfoam error message is very clear, the programme cannot create the folder, see why
Ahmed is offline   Reply With Quote

Old   February 8, 2010, 19:31
Default
  #7
Senior Member
 
Sandy Lee
Join Date: Mar 2009
Posts: 207
Rep Power: 9
sandy is on a distinguished road
Quote:
Originally Posted by Ahmed View Post
Lee
I do not read private messages, you have anything to say, say it here.
Again, the openfoam error message is very clear,
Hi Ahmed, Children can not know even simple words, Who can teach them, you think?


Quote:
Originally Posted by Ahmed View Post
the programme cannot create the folder, see why
Why? ..
sandy is offline   Reply With Quote

Old   February 9, 2010, 07:05
Default
  #8
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,301
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Sandy,

Can you run:
Code:
ls -la /home/user/OpenFOAM/user-1.6.x/tutorials/multiphase/interPhaseChangeFoam/cavitatingBullet/
And post the output here?

Best regards,
Bruno
wyldckat 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
tecio compilation errors in latest 1.6.x rsamuel OpenFOAM Bugs 1 December 22, 2009 04:34
Version 15 on Mac OS X gschaider OpenFOAM Installation 120 December 2, 2009 11:23
Compiling gmshFoam with OpenFOAM-1.5 BlGene Open Source Meshers: Gmsh, Netgen, CGNS, ... 10 August 6, 2009 04:26
Compiling OpenFOAM13 on AMD64 with Redhat Enterprise mbeaudoin OpenFOAM Installation 20 June 17, 2008 06:43
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24


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