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

chtMultiRegionFoam -parallel fileName::stripInvalid()

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By crubio.abujas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 5, 2020, 13:07
Default chtMultiRegionFoam -parallel fileName::stripInvalid()
  #1
New Member
 
Dan Padrao
Join Date: Jun 2020
Posts: 14
Rep Power: 5
DanPad07 is on a distinguished road
Hi all,

I'm attempting to run a parallel chtMultiRegionFoam simulation in my onedrive but when I run this, it has the following error:

Build : v1812 OPENFOAM=1812
Arch : "LSB;label=32;scalar=64"
Exec : chtMultiRegionFoam -parallel
Date : Jun 05 2020
Time : 17:50:46
Host : DUIP74162
PID : 3477
fileName::stripInvalid() called for invalid fileName /mnt/c/Users/ppydp7/OneDrive-TheUniversityofNottingham/PhD/computationalWork/CFD/OpenFOAM/experiments/C1L1/test_parallel
For debug level (= 2) > 1 this is considered fatal

Since this is on onedrive, I have a feeling that it may be because there are spaces in the folder (OneDrive - The University of Nottingham) which I don't know how to remove. But this is strange because if I run chtMultiRegionFoam without it being in parallel then it works perfectly fine. Also everything else (e.g. blockMesh) works fine in this case.

If I copy and paste all my files and run them from a directory with no spaces (e.g. documents) then it also works so there is no problem with my simulation itself.

Does anyone know how to fix this or whats causing it? If it is the spaces in the onedrive folder name, how do I remove them or work around this issue?

Thanks,
Dan
DanPad07 is offline   Reply With Quote

Old   June 5, 2020, 14:39
Default Soft link + case or sudo mount
  #2
Senior Member
 
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9
crubio.abujas is on a distinguished road
It seems that to be the case... This is a poor man solution, but you can try making a soft link to a "safe" path. i.e:

Code:
ln -s "/mnt/c/Users/ppydp7/OneDrive - TheUniversityofNottingham/PhD/computationalWork/CFD/OpenFOAM/experiments" "/mnt/c/Users/ppydp7
/OFExperiments"
I've tried to run the case from inside the case folder and still doesn't work. It still reads the link. BUT, running it from outside with the -case flag worked for me. In your case try:
Code:
chtMultiRegionFoam -case OFExperiments/C1L1/test_parallel
It shall work.



Nevertheless there must to be a way to change the mounting point of the OneDrive to another path, I don't know if you have admin privileges in your computer, if so try:
Code:
mkdir -p /mnt/c/Users/ppydp7/OFExperiments
sudo mount -o bind "/mnt/c/Users/ppydp7/OneDrive - TheUniversityofNottingham/PhD/computationalWork/CFD/OpenFOAM/experiments" "/mnt/c/Users/ppydp7/OFExperiments"
That would create a safe path and you can run from the folder as if anything wrong happens. If that worked you may have to add it to the /etc/fstab to mount it automatically on started and avoid running that code each time...

I hope any of these some-how-unelegant tricks works for you!
HPE likes this.
crubio.abujas is offline   Reply With Quote

Old   June 5, 2020, 17:14
Default Solved!
  #3
New Member
 
Dan Padrao
Join Date: Jun 2020
Posts: 14
Rep Power: 5
DanPad07 is on a distinguished road
Hi Carlos,

Thanks for the help, I managed to mount the relevant directories and put them into /etc/fstab (I'll find out when I restart my computer whether I made it permanent or not) but the simulation is working perfectly now! I plan to be adding a lot of files to my onedrive so this is definitely the best method for me.

I'm quite new to both OpenFOAM and the Linux OS so I'm sorry if this was a basic solution.

Have a great weekend
DanPad07 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
Error running openfoam in parallel fede32 OpenFOAM Programming & Development 5 October 4, 2018 16:38
parallel performance of chtMultiRegionFoam eddi0907 OpenFOAM Running, Solving & CFD 4 December 17, 2015 07:15
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 18:45
Parallel operation of chtMultiRegionFoam pizzaice OpenFOAM Running, Solving & CFD 0 February 5, 2010 11:38


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