CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   word::stripInvalid() called for word r error (http://www.cfd-online.com/Forums/openfoam-solving/110121-word-stripinvalid-called-word-r-error.html)

immortality December 4, 2012 07:14

word::stripInvalid() called for word r error
 
Mean and max Courant Numbers = 0.106808 0.225305
deltaT = 1.11111e-07
Time = 1.11111e-07

diagonal: Solving for rho, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal: Solving for rhoUx, Initial residual = 0, Final residual = 0, No Iterations 0
diagonal: Solving for rhoUy, Initial residual = 0, Final residual = 0, No Iterations 0
swak4Foam: Allocating new repository for sampledGlobalVariables
smoothSolver: Solving for Ux, Initial residual = 0.00493778, Final residual = 1.54499e-17, No Iterations 3
smoothSolver: Solving for Uy, Initial residual = 1, Final residual = 9.94124e-17, No Iterations 3
diagonal: Solving for rhoE, Initial residual = 0, Final residual = 0, No Iterations 0
word::stripInvalid() called for word r
For debug level (= 2) > 1 this is considered fatal
Aborted

sandy May 11, 2013 08:46

I met the same problem. Who can tell me the reason?

wyldckat May 11, 2013 09:18

Greetings Sandy,

There isn't much information to work with. Only by seeing the list of files present in the folder "0" and the contents of those files, will I be able to tell you what the exact problem is.

This error message is usually associated to a space or invalid character in the name of a file or field. The "r" is the word already reduced to an acceptable word, but any invalid characters have already been discarded for this message.

Best regards,
Bruno

sandy May 11, 2013 22:17

Hi wyldckat, my file made by Solidworks. I don't know why to met this problem.

wyldckat May 12, 2013 06:03

Hi Sandy,

There are 2 details to always keep in mind when exporting to STL:
  • Always export to STL in ASCII or "coded" format (this means it'll be plain text).
  • Edit the resulting file with a text editor and look for the lines that start with "solid". Next to the word "solid" is the name of said solid; that name should be a single C/C++ word.
Examples of valid words:
  • wall
  • ladder
  • part_001_73_
Invalid names:
  • This was generated by productnamehere
  • part 001-73:
  • 70 inch wall
edit: You can export to binary STL if you want to, but it's advised to only do it when you've got more experience!

Best regards,
Bruno

edit: I've added this description here: http://openfoamwiki.net/index.php/Sn...id_solid_names :)


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