<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">One way is to run these scripts from
within cubit. I don't know how to load cubit as a library from
within python.<br>
<br>
See the examples directory within specfem3d for an example how to
use this. I've attached a demo.<br>
<br>
best,<br>
Max<br>
<br>
On 11/08/2013 04:54 PM, <a class="moz-txt-link-abbreviated" href="mailto:s.khan-1@utwente.nl">s.khan-1@utwente.nl</a> wrote:<br>
</div>
<blockquote
cite="mid:B9351DEA74C14A4083C5260C14362C2A065F04@EXMBX22.ad.utwente.nl"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css" id="owaParaStyle"></style>
<div style="direction: ltr;font-family: Tahoma;color:
#000000;font-size: 10pt;">Dear All,
<div><br>
</div>
<div>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. </div>
<div><br>
</div>
<div>-------------------------------------------------------------------------------------------------------------------------------------</div>
<div>
<div>khan31332@itclx03:~/SPECFEM3D/examples/Basin$ <b>python
run_cubit2specfem3d.py</b></div>
<div>Traceback (most recent call last):</div>
<div> File "run_cubit2specfem3d.py", line 4, in
<module></div>
<div> import cubit</div>
<div>ImportError: No module named cubit</div>
<div>-------------------------------------------------------------------------------------------------------------------------------------</div>
<div>khan31332@itclx03:~/SPECFEM3D/examples/Basin$ <b>python
cubit2specfem3d.py</b></div>
<div>Traceback (most recent call last):</div>
<div> File "cubit2specfem3d.py", line 772, in <module></div>
<div> export2SESAME(path)</div>
<div> File "cubit2specfem3d.py", line 764, in export2SESAME</div>
<div> cubit.cmd('set info on')</div>
<div>NameError: global name 'cubit' is not defined</div>
</div>
<div>-------------------------------------------------------------------------------------------------------------------------------------</div>
<div><br>
</div>
<div>Thanks in advance.</div>
<div><br>
</div>
<div>Best regards,</div>
<div>Saad Khan</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
CIG-SEISMO mailing list
<a class="moz-txt-link-abbreviated" href="mailto:CIG-SEISMO@geodynamics.org">CIG-SEISMO@geodynamics.org</a>
<a class="moz-txt-link-freetext" href="http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo">http://geodynamics.org/cgi-bin/mailman/listinfo/cig-seismo</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
---------------------------
PhD Student
Institute of Computational Science
USI Lugano, Switzerland
+41 (0)44 633 7161</pre>
</body>
</html>