Open planestress opened 1 week ago
@germa89 @mikerife Please help me.
@planestress Can you share the static.cdb file?
@planestress Can you share the static.cdb file?
Of course,here it is. static.zip
Hi @planestress @germa89 Thanks for sharing the cdb file. So there are a few things wrong with the file that the PyMAPDL Reader Archive reader expects. I don't have access to FRANC3D so I don't know if you can change the settings there to address these issues or not.
1 The file is not really a CDB file, it is an input file. I diffrentiate between an 'cdb' file and an 'input' file in the content. This cdb file has APDL to run a solution and post-processing. True cdb files have just the FEM. It should not make a difference to the PyMAPDL Reader but if you read the cdb into MAPDL then you need to know this...well if you don't want to do the solve etc.
If you do want to import into MAPDL you may want to edit out the commands that change the working directory and the filename in the cdb file.
2 PyMAPDL Reader expects the NBLOCK and EBLOCK commands to have the max entity number and the count on the lines. You can find the help on the cdb commands here.
3 The nodes in the NBLOCK should be in ascending order, for PyMAPDL Reader, but the last node defined in the file is not the node with the largest ID.
Mike
π Before submitting the issue
π Description of the bug
I used
archive=pymapdl_reader.Archive('static.cdb')
command to read elements and nodes informations from the cdb file,where "static.cdb" is a file produced by software FRANC3D,an error occurred asIf I use this command read other uncracked models' cdb file it worked.
π Steps to reproduce
Creat a uncracked model and caculate with ANSYS and import it into FRANC3D,then introduce a crack to the model and save the file,there will be a cdb file generated.Next,read this cdb file with
pymapdl_reaader.Archive
command,the error will occur.π» Which operating system are you using?
Windows
π Which ANSYS version are you using?
19.2
π Which Python version are you using?
3.11
π¦ Installed packages