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

reconstructPar --> fileName::stripInvalid() called for invalid fileName commandtouse

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

Like Tree25Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 24, 2015, 16:46
Default
  #21
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quote:
Originally Posted by AJAY BHANDARI View Post
Please suggest what should i do?? Any help will be appreciated..
Quick answer: Quoting myself from two previous posts:
  1. Quote:
    Originally Posted by wyldckat View Post
    Not enough information. Please follow the instructions given on this thread: http://www.cfd-online.com/Forums/ope...-get-help.html
  2. Quote:
    Originally Posted by wyldckat View Post
    [...] this is a frequently asked question, I've added to the FAQ: http://openfoamwiki.net/index.php/FA..._invalid.22.3F
And please do keep in mind that we cannot see what you do not show us, nor can we see what you do not share with us. Because that error message alone can mean several things, depending on the exact context.
wyldckat is offline   Reply With Quote

Old   May 18, 2016, 15:29
Default
  #22
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,759
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I ran into this error today and have been tinkering with it. None of my OF utilities were working and all threw the same error so I thought I had a messed up build. But eventually I found it was just a space in a folder name.
LuckyTran is offline   Reply With Quote

Old   July 1, 2016, 11:00
Default
  #23
New Member
 
Vijaya Kumar. G
Join Date: Jun 2016
Location: Chennai, India & Aachen, Germany
Posts: 20
Rep Power: 10
VIJAYA KUMAR is on a distinguished road
As mentioned in the above threads, Directory and Mesh file names which are irregular (contains underscore, other symbols) are poisonous. I too was down with this problem. Changed all my file names and case directory names as simple Numbers and Characters
VIJAYA KUMAR is offline   Reply With Quote

Old   October 3, 2016, 12:13
Default
  #24
New Member
 
gned
Join Date: Oct 2012
Posts: 18
Rep Power: 14
gned is on a distinguished road
dear mark,
I'm quite out of space in my ssd disk of my laptop by now. So I would often have the need to try/run/visualize some cases on an external USB I have, but which unfortunately is recognized as TOSHIBA EXT by the system, with a whitespace in the name! Is this possible modifying some files as fileName.H to make OF digest these names strings?
gned is offline   Reply With Quote

Old   October 6, 2016, 16:39
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quote:
Originally Posted by gned View Post
dear mark,
I'm quite out of space in my ssd disk of my laptop by now. So I would often have the need to try/run/visualize some cases on an external USB I have, but which unfortunately is recognized as TOSHIBA EXT by the system, with a whitespace in the name! Is this possible modifying some files as fileName.H to make OF digest these names strings?
Quick answer: You can try using symbolic links. For example, if you run:
Code:
mkdir -p $FOAM_RUN
cd $FOAM_RUN
ln -s "/media/username/TOSHIBA EXT"  usbdisk
it will:
  1. Create
  2. and go into the default folder that OpenFOAM assigns to the user for running cases inside;
  3. and then creates a symbolic link path to the USB disk.
I'm assuming you are using Ubuntu, therefore you need to change the "username" word with your own user-name.

Using quotes for the path with spaces is necessary. The alternative would be to use the backslash:
Code:
ln -s /media/username/TOSHIBA\ EXT  usbdisk
Once the symbolic link is created, you can now go into the symbolic folder:
Code:
cd usbdisk
and then navigate to the folder where you have the cases from there onwards.

Note: You don't need to delete the symbolic link when you safely eject the USB disk.
__________________
wyldckat is offline   Reply With Quote

Old   January 11, 2017, 17:08
Default
  #26
New Member
 
RK_Token
Join Date: Jan 2016
Location: Germany
Posts: 5
Rep Power: 10
RK_Token is on a distinguished road
Just in case, it may help someone.
I had the same problem but in my case I had a jupyter notebook file saved at the simulation case folder, with a space in its name "notebook name.ipynb". This was enough to break the reconstructPar command.
wyldckat likes this.
RK_Token is offline   Reply With Quote

Old   January 11, 2017, 17:50
Default
  #27
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Quick question @RK_Token: Which OpenFOAM version were/are you using?

I ask this because if it's one of the more recent versions, we can still have this fixed much sooner than later.

And I am very glad that Python based Jupyter Notebooks are being used along with OpenFOAM!
wyldckat is offline   Reply With Quote

Old   January 11, 2017, 18:13
Default
  #28
New Member
 
RK_Token
Join Date: Jan 2016
Location: Germany
Posts: 5
Rep Power: 10
RK_Token is on a distinguished road
Hey @wyldckat I'm using OpenFOAM-4.1 64bit

Quote:
#+TITLE: README for [[http://openfoam.org/version/4-1][OpenFOAM-4.1]]
#+AUTHOR: The OpenFOAM Foundation
#+DATE: 28th June 2016
If you need more information let me know.
wyldckat likes this.
RK_Token is offline   Reply With Quote

Old   February 8, 2017, 07:26
Default
  #29
New Member
 
zhuyuehan
Join Date: Feb 2017
Posts: 2
Rep Power: 0
john zhu is on a distinguished road
You may want to make a backup and copied some file then renamed it. and there is a space in the name of your execution file.
john zhu is offline   Reply With Quote

Old   October 10, 2017, 07:18
Default
  #30
Member
 
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 9
Jingxue Wang is on a distinguished road
I also meet this problem just now.

I make a new folder and then copy all the inner files into this. And it worked.
Jingxue Wang is offline   Reply With Quote

Old   December 15, 2017, 03:49
Default
  #31
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by olesen View Post
Spaces in directory and file names are pure poison for OpenFOAM (and several other bits of Unix software). Try renaming to something without space/tab etc and see if that does the trick.

FWIW this longstanding problem has now been fixed in the upcoming OpenFOAM-v1712 release. Now the POSIX readDir will silently (or noisily) drop file and directory names with weird characters that would cause OpenFOAM problems.
RK_Token likes this.
olesen is offline   Reply With Quote

Old   December 25, 2018, 01:39
Default
  #32
New Member
 
Purn Prakash
Join Date: Nov 2018
Posts: 27
Blog Entries: 1
Rep Power: 8
purnp2 is on a distinguished road
Hello!
I faced a similar issue and solved it successfully.
>>
Create databases as time
fileName::stripInvalid() called for invalid fileName 02vectorvelmag.png
For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)
>>
Solution>>>>>
the file name "02vectorvelmag.png" is actually a .png file saved in my caseDirectory which is actually named as "02 vector vel mag.png" which I saved during post-processing of another case.
So, I removed this file to another location and run the intended command once again. it worked.
purnp2 is offline   Reply With Quote

Old   July 19, 2020, 16:32
Default
  #33
New Member
 
Siavash
Join Date: Jun 2020
Posts: 2
Rep Power: 0
sia23 is on a distinguished road
Quote:
Originally Posted by olesen View Post
Spaces in directory and file names are pure poison for OpenFOAM (and several other bits of Unix software). Try renaming to something without space/tab etc and see if that does the trick.
That solved my problem. Thank you!
I had one space in my directory name.
sia23 is offline   Reply With Quote

Old   January 11, 2021, 18:18
Default
  #34
New Member
 
John Wooten, PhD
Join Date: Dec 2020
Location: Oak Ridge TN
Posts: 18
Rep Power: 5
Woo37830 is on a distinguished road
Quote:
Originally Posted by mattijs View Post
you have an invalid named file somewhere. After stripping out the invalid characters it is 'commandtouse'.
I had this mistake and found that I had made a backup copy of system and called it system.copy. That gave the error invalidFileName systemcopy

Perhaps it's something as simple as an extra file or directory in you setup folders.
Woo37830 is offline   Reply With Quote

Old   December 8, 2022, 22:27
Default
  #35
New Member
 
Join Date: Sep 2022
Posts: 19
Rep Power: 4
hogglife is on a distinguished road
Maybe useful for someone. I met the similar error, i.e.

for time = 0LUID_inner
fileName::stripInvalid() called for invalid fileName FLUID_inner
For debug level (= 2) > 1 this is considered fatal

when I run the case from Allrun script. But it run without this error if I input the same command in terminal. Finally I find there are two blank lines after the command which the above error emit. After delete these two blank lines, it runs successfully.

I am new and not sure if you have already know this.
hogglife is offline   Reply With Quote

Reply

Tags
commandtouse, filename, reconstructpar, stripinvalid

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
reconstructParMesh not working with an axisymetric case francesco OpenFOAM Bugs 4 May 8, 2009 06:49


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