Пример #1
0
    def run(self):
        strahl.create_input(self.params, working_directory)
        curdir = os.getcwd()
        os.chdir(working_directory)
        os.system('./strahl a')
        os.chdir(curdir)

        of = os.path.join(working_directory,'result','Arstrahl_result.dat')
        self.result = strahl.viz.read_results(of)
Пример #2
0
import strahl

params = strahl.defaultParams()

t, flx = strahl.rectangular_pulse(length=5e-3, max_value=2.5e23)

params['impurity.influx'] = (t, flx)
params['numerical.time.dt'] = 1e-4
params['numerical.time.final'] = 0.5

strahl.create_input(params, './wk')
Пример #3
0
import strahl

strahl.create_input(strahl.defaultParams(), "./wk")