|
[Sponsors] |
chtMultiRegionFoam -parallel fileName::stripInvalid() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 5, 2020, 13:07 |
chtMultiRegionFoam -parallel fileName::stripInvalid()
|
#1 |
New Member
Dan Padrao
Join Date: Jun 2020
Posts: 14
Rep Power: 5 |
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 |
|
June 5, 2020, 14:39 |
Soft link + case or sudo mount
|
#2 |
Senior Member
Carlos Rubio Abujas
Join Date: Jan 2018
Location: Spain
Posts: 127
Rep Power: 9 |
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" Code:
chtMultiRegionFoam -case OFExperiments/C1L1/test_parallel 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" I hope any of these some-how-unelegant tricks works for you! |
|
June 5, 2020, 17:14 |
Solved!
|
#3 |
New Member
Dan Padrao
Join Date: Jun 2020
Posts: 14
Rep Power: 5 |
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 |
|
|
|
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 |