コード例 #1
0
    def compute_field(self, t=0, spin=None):
        if spin is not None:
            m = spin
        else:
            m = self.spin

        micro_clib.compute_exchange_field_micro(m, self.field, self.energy,
                                                self.Ms_inv, self.A, self.dx,
                                                self.dy, self.dz, self.n,
                                                self.neighbours)

        return self.field
コード例 #2
0
    def compute_field(self, t=0):

        micro_clib.compute_exchange_field_micro(self.spin,
                                                self.field,
                                                self.energy,
                                                self.Ms_inv,
                                                self.A,
                                                self.dx,
                                                self.dy,
                                                self.dz,
                                                self.n,
                                                self.neighbours
                                                )

        return self.field
コード例 #3
0
ファイル: exchange.py プロジェクト: fangohr/fidimag
    def compute_field(self, t=0, spin=None):
        if spin is not None:
            m = spin
        else:
            m = self.spin

        micro_clib.compute_exchange_field_micro(m,
                                                self.field,
                                                self.energy,
                                                self.Ms_inv,
                                                self.A,
                                                self.dx,
                                                self.dy,
                                                self.dz,
                                                self.n,
                                                self.neighbours
                                                )

        return self.field