-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gmsh version must be >= 2.0 in PFC software mesh calling #784
Comments
|
Based on the line numbers of the error messages you posted, you are running FiPy 3.1.3 or older, which is at least three years old. Based on the fact that you're getting this error message, I'd guess that you're FiPy installation is five to seven years old. Please upgrade FiPy. |
Yes, you're right. FiPy is in version 3.1 as I mentioned in the explanation above. There is not any separated used gmsh software or library, the gmsh file is converted from vtk file by 'meshio' in gmsh -2 format. Is there any other solution way instead of upgrading? because FiPy and Python (version 2.7, which is embedded in PFC) are part of the main software, PFC, and connection between them are programmed by ITSASCA PFC programmers. Thus, the way to upgrade them is not easy as we thought. |
Is this one the same question as this Stackoverflow question? |
Are you using an extremely old version of itasca? I've never used it, but googling "itasca fipy" turns up:
It seems improbable that either of those is talking about a version of FiPy that was released in 2013. If they really haven't upgraded in that long, then @jkfurtney (CTO of Itasca) offered this on our mailing list many years ago (when it was still necessary):
|
No, this is for the later stage. This error is appeared after trying to import the mesh, which mentioned in that link as 'worked', into PFC software by FiPy embedded lib. |
my version is not very old but there are lots of improvements on the next version, as I searched. I think errors that I'm facing to are solved in the new version. I tried Mr. Furtney solution way, that pass this error and I'm now facing with new error which, I think, is related to my windows variables ... . |
I see. It looks like Itasca 5 was last updated in mid-2019. I assume they have their reasons for both embedding FiPy and not updating it in a recently-supported version. If they're running a Python interpreter, it should be possible for you to manually update FiPy, but you'd need to ask the Itasca developers how to do that.
OK, what is the new error? |
Before anything else, thank you for your follow-up and responses dear Dr. Guyer, The new error is : Traceback (most recent call last): |
You're welcome
FiPy supports both Python 2.7 and Python 3.x. We test on both.
This line of code is for converting a Gmsh GEO file to a Gmsh MSH file. I thought you already had an MSH file? What is it called? |
Is 'background=background', in line 1937, related to that you mentioned "converting a Gmsh GEO file to a Gmsh MSH file"? |
No, unless you provided a
You're trying to load The error at line 227 means that FiPy thinks it's trying to read GEO file. This can happen for two reasons:
Please show everything that you're doing to get to this point. Are these first lines of the traceback your code or are they Itasca code?
|
yes, 'converted.msh' was the converted one. |
Glad to hear it's working for you. |
Dear Dr.Guyer: When I input the code(with Mr. Furtney solution way) in the attachment in PFC6.0 (the software has built-in version 3.6.1 of Ipython), the following error message appears: IndexError Traceback (most recent call last) C:\Program Files\Itasca\PFC600\exe64\python36\lib\site-packages\fipy\meshes\gmshMesh.py in _parseElementFile(self) C:\Program Files\Itasca\PFC600\exe64\python36\lib\site-packages\fipy\meshes\gmshMesh.py in _parseTags(offset, currLineInts) IndexError: list index out of range During handling of the above exception, another exception occurred: PermissionError Traceback (most recent call last) C:\Program Files\Itasca\PFC600\exe64\python36\lib\site-packages\fipy\meshes\gmshMesh.py in init(self, arg, communicator, order, background) C:\Program Files\Itasca\PFC600\exe64\python36\lib\site-packages\fipy\meshes\gmshMesh.py in read(self) PermissionError: [WinError 32] Another program is using this file, and the process cannot access it : 'C:\Users\chenyong\AppData\Local\Temp\tmpvgib8l76Elements' |
I haved used FiPy.Gmsh3D(.msh) to open gmsh2 file by python v2.7.9, within PFC software which using FiPy v3.1, and the error below was appeared, I would be appreciated if you could help me to solve this error. By my searching, some other PFC users was struggling with this error. FiPy and Python couldn't be updated to newer versions.
The text was updated successfully, but these errors were encountered: