Beispiel #1
0
class DeltaTest(TestCase):
	
	def setUp(self):
		self.command = split("matlab -maci -nojvm -nosplash -r")
		self.system = Simulator(repulsion = 1, chemical_potential = 0.5, hopping = 2, timestep = 0.1)
		self.state = self.system.initial()
		
	def testImport(self):
		s = self.system
		script = "Delta_M(%f, %f, %f, %f, 2, 1, %f, %s, %s); quit" % (s.hopping, s.repulsion, s.repulsion/abs(s.repulsion), s.chemical_potential, sqrt(s.timestep), mform(self.state.cdr[0,:,:]), mform(self.state.cdr[1,:,:]))
		child = Popen(self.command + [script], cwd="../laura")
Beispiel #2
0
	def setUp(self):
		self.command = split("matlab -maci -nojvm -nosplash -r")
		self.system = Simulator(repulsion = 1, chemical_potential = 0.5, hopping = 2, timestep = 0.1)
		self.state = self.system.initial()