[CIG-SEISMO] cubit2specfem3d.py problem

Max Rietmann max.rietmann at usi.ch
Fri Nov 8 08:02:12 PST 2013


One way is to run these scripts from within cubit. I don't know how to 
load cubit as a library from within python.

See the examples directory within specfem3d for an example how to use 
this. I've attached a demo.

best,
Max

On 11/08/2013 04:54 PM, s.khan-1 at utwente.nl wrote:
> Dear All,
>
> I have created a geometrical model in cubit named 3rd_mesh.cub. I am 
> unable to figure out how to specify this file to 'cubit2specfem3d.py'. 
> I am trying to use 'cubit2specfem3d.py' and 'run_cubit2specfem3d.py' 
> but i receive the following messages.
>
> -------------------------------------------------------------------------------------------------------------------------------------
> khan31332 at itclx03:~/SPECFEM3D/examples/Basin$ *python 
> run_cubit2specfem3d.py*
> Traceback (most recent call last):
>   File "run_cubit2specfem3d.py", line 4, in <module>
>     import cubit
> ImportError: No module named cubit
> -------------------------------------------------------------------------------------------------------------------------------------
> khan31332 at itclx03:~/SPECFEM3D/examples/Basin$ *python cubit2specfem3d.py*
> Traceback (most recent call last):
>   File "cubit2specfem3d.py", line 772, in <module>
>     export2SESAME(path)
>   File "cubit2specfem3d.py", line 764, in export2SESAME
>     cubit.cmd('set info on')
> NameError: global name 'cubit' is not defined
> -------------------------------------------------------------------------------------------------------------------------------------
>
> Thanks in advance.
>
> Best regards,
> Saad Khan
>
>
>
> _______________________________________________
> CIG-SEISMO mailing list
> CIG-SEISMO at geodynamics.org
> http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo


-- 
---------------------------
PhD Student
Institute of Computational Science
USI Lugano, Switzerland
+41 (0)44 633 7161

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://geodynamics.org/pipermail/cig-seismo/attachments/20131108/f5929d76/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: block_mesh.py
Type: text/x-python
Size: 1858 bytes
Desc: not available
URL: <http://geodynamics.org/pipermail/cig-seismo/attachments/20131108/f5929d76/attachment.py>


More information about the CIG-SEISMO mailing list