jaabell / gmsh2opensees

http://www.joseabell.com
25 stars 5 forks source link

Unable to Open Example Files #5

Open clthrwy opened 1 month ago

clthrwy commented 1 month ago

Hello Jose,

I resolved some initial issues by installing clean copies of Opensees 3.5.1.12 and Python 3.11.

When running an example script, I get the following error: Exception: Unable to open file 'example3.msh' Which refers me to line 341 of the gmsh.py script: ierr = c_int() lib.gmshOpen( c_char_p(fileName.encode()), byref(ierr)) if ierr.value != 0: raise Exception(logger.getLastError())

I commented out the above, ran example1.py again, and received the following error: AttributeError: module 'gmsh2opensees' has no attribute 'get_elements_and_nodes_in_physical_group'

jaabell commented 1 month ago

I'm happy you figured it out!

Well that seems to be a problem with gmsh finding the file you want to analyze. Make sure you're in the correct working directory or otherwise provide a full path for the file.

Regards, JAA

On Fri, Jun 7, 2024 at 4:14 PM clthrwy @.***> wrote:

Hello Jose,

I resolved some initial issues by installing clean copies of Opensees 3.5.1.12 and Python 3.11.

When running an example script, I get the following error: Exception: Unable to open file 'example3.msh'

Gmsh does not open after running the script.

— Reply to this email directly, view it on GitHub https://github.com/jaabell/gmsh2opensees/issues/5, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJHQGH4CG5SEQPF3C5KTUTZGIIC5AVCNFSM6AAAAABI7H4V6CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2DCMBZHA2DAMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

clthrwy commented 1 month ago

Jose,

Thanks for your reply. I have made some changes per your suggestions to isolate my current issue:

When the "get_elements_and_nodes_in_physical_group" function (below) is called, image

the example programs throw "KeyError: 'Solid'" when the following line is run: elementTags, nodeTags, elementName, elementNnodes = g2o.get_elements_and_nodes_in_physical_group("Solid", gmsh.model)

(also shown below)

image

Thank you in advance for your help!!