Problem importing .cdb file. #1307
-
I am trying to import a mesh from an existing .cdb files. The file contains the information regarding mesh and BCs. I have used two methods. If I use \n\n *** ERROR *** CP = 0.906 TIME= 05:42:05\n The element option SOLID185 was either not ordered with this ANSYS installation or the appropriate product was not selected for this session. Contact your ANSYS support person for more information. The second method I used is Traceback (most recent call last):
File "C:\Users\Manarshhjot Singh\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\core\interactiveshell.py", line 3398, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-3-a1628878c93d>", line 1, in <cell line: 1>
print(ele)
File "C:\Users\Manarshhjot Singh\AppData\Local\Programs\Python\Python39\lib\site-packages\ansys\mapdl\core\database\elems.py", line 64, in __str__
lines.append(f" Number of elements: {self.num()}")
File "C:\Users\Manarshhjot Singh\AppData\Local\Programs\Python\Python39\lib\site-packages\ansys\mapdl\core\database\elems.py", line 273, in num
return self.info(0, DBDef.DB_NUMDEFINED)
File "C:\Users\Manarshhjot Singh\AppData\Local\Programs\Python\Python39\lib\site-packages\ansys\mapdl\core\database\database.py", line 63, in wrapper
return function(self, *args, **kwargs)
File "C:\Users\Manarshhjot Singh\AppData\Local\Programs\Python\Python39\lib\site-packages\ansys\mapdl\core\database\elems.py", line 243, in info
result = self._db._stub.ElmIqr(request)
AttributeError: 'NoneType' object has no attribute 'ElmIqr'
mapdl.db.elems
Out[4]: <ansys.mapdl.core.database.elems.DbElems at 0x23ada47e8b0> |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @manarshhjot can you please verify the actual command you entered as Also, use the prep7 cdread command to read in the cdb file and not the input command, as good practice. Mike |
Beta Was this translation helpful? Give feedback.
Hi @manarshhjot can you please verify the actual command you entered as
mapdl.db.max_num
is not a valid command. I'm guessing that maybe you really enteredmapdl.db.elems.max_num
but would rather see proof (screen shot etc) of what was entered.Also, use the prep7 cdread command to read in the cdb file and not the input command, as good practice.
Mike