Esempio n. 1
0
    def setup(self, make_virtual=False, verbose=True):
        self.collect_conn_info()

        # This uses the conn_info created above.
        self.dof_conns = {}
        setup_dof_conns(self.conn_info, dof_conns=self.dof_conns,
                        make_virtual=make_virtual, verbose=verbose)
Esempio n. 2
0
    def standalone_setup(self):
        from sfepy.fem import setup_dof_conns

        conn_info = {'aux' : self.get_conn_info()}

        setup_dof_conns(conn_info)

        materials = self.get_materials(join=True)

        for mat in materials:
            mat.time_update(None, [Struct(terms=[self])])
Esempio n. 3
0
    def standalone_setup(self):
        from sfepy.fem import setup_dof_conns

        conn_info = {'aux': self.get_conn_info()}

        setup_dof_conns(conn_info)

        materials = self.get_materials(join=True)

        for mat in materials:
            mat.time_update(None, [Struct(terms=[self])])
Esempio n. 4
0
    def standalone_setup(self):
        from sfepy.fem import setup_dof_conns

        conn_info = {"aux": self.get_conn_info()}
        variables = self.get_variables()

        ## fields = list(set([var.field for var in variables]))
        ## print fields

        setup_dof_conns(conn_info)

        self.assign_geometries({})

        materials = self.get_materials(join=True)
        ## print materials

        self.assign_caches()

        key = self.get_qp_key()
        qps = self.get_physical_qps()
        for mat in materials:
            for ig in self.igs():
                mat.update_data(None, self.region, key, ig, qps)
                mat.update_special_data(None, self.region.domain)