Esempio n. 1
0
def test_convert_no_use_function_names(tmpdir):
    vm_file = os.path.join(testfiles_path, 'vm1.dat')
    pyscript = str(tmpdir.mkdir('tmpdir').join('vm1.py'))
    clines = pyansys.convert_script(vm_file,
                                    pyscript,
                                    loglevel='ERROR',
                                    use_function_names=False)
Esempio n. 2
0
def test_convert(tmpdir):
    vm_file = os.path.join(testfiles_path, 'vm1.dat')
    pyscript = str(tmpdir.mkdir("tmpdir").join('vm1.py'))
    clines = pyansys.convert_script(vm_file, pyscript, loglevel='ERROR')
    assert len(clines)

    if pyansys.has_ansys:
        exec(open(pyscript).read())
Esempio n. 3
0
def test_convert(tmpdir):
    vm_file = os.path.join(testfiles_path, 'vm1.dat')
    pyscript = str(tmpdir.mkdir('tmpdir').join('vm1.py'))
    clines = pyansys.convert_script(vm_file, pyscript, loglevel='ERROR')
    assert len(clines)
import pyansys
import os

inputfile = 'without_crack_4layers.txt'
pyscript = 'with_crack_4layers.py'
pyansys.convert_script(inputfile, pyscript)