prompt
stringlengths
174
59.5k
completion
stringlengths
7
228
api
stringlengths
12
64
""" Functions to visualize the geometry elements and numbering and orientation of their facets (edges and faces). The standard geometry elements can be plotted by running:: $ python sfepy/postprocess/plot_facets.py """ import numpy as nm import matplotlib.pyplot as plt from sfepy.linalg import (get_perpendiculars,...
make_axis_rotation_matrix(n, da)
sfepy.linalg.make_axis_rotation_matrix
""" Functions to visualize the geometry elements and numbering and orientation of their facets (edges and faces). The standard geometry elements can be plotted by running:: $ python sfepy/postprocess/plot_facets.py """ import numpy as nm import matplotlib.pyplot as plt from sfepy.linalg import (get_perpendiculars,...
GeometryElement(key)
sfepy.discrete.fem.geometry_element.GeometryElement
# c: 21.09.2008 import os import numpy as nm from sfepy import data_dir from sfepy.fem import MeshIO filename_mesh = data_dir + '/meshes/2d/special/circle_in_square.mesh' ## filename_mesh = data_dir + '/meshes/2d/special/circle_in_square_small.mesh' ## filename_mesh = data_dir + '/meshes/3d/special/cube_sphere.mesh' ...
MeshIO.any_from_filename(filename_mesh, prefix_dir=conf_dir)
sfepy.fem.MeshIO.any_from_filename
from sfepy import data_dir filename_meshes = ['/meshes/3d/cylinder.mesh', '/meshes/3d/cylinder.vtk', '/meshes/various_formats/small2d.mesh', '/meshes/various_formats/small2d.vtk', '/meshes/various_formats/octahedron.node', '...
UserMeshIO(mesh_hook)
sfepy.fem.meshio.UserMeshIO
from sfepy import data_dir filename_meshes = ['/meshes/3d/cylinder.mesh', '/meshes/3d/cylinder.vtk', '/meshes/various_formats/small2d.mesh', '/meshes/various_formats/small2d.vtk', '/meshes/various_formats/octahedron.node', '...
Mesh.from_file(filename, prefix_dir=conf_dir)
sfepy.fem.Mesh.from_file
from sfepy import data_dir filename_meshes = ['/meshes/3d/cylinder.mesh', '/meshes/3d/cylinder.vtk', '/meshes/various_formats/small2d.mesh', '/meshes/various_formats/small2d.vtk', '/meshes/various_formats/octahedron.node', '...
MeshIO.any_from_filename(filename, prefix_dir=conf_dir)
sfepy.fem.MeshIO.any_from_filename
from sfepy import data_dir filename_meshes = ['/meshes/3d/cylinder.mesh', '/meshes/3d/cylinder.vtk', '/meshes/various_formats/small2d.mesh', '/meshes/various_formats/small2d.vtk', '/meshes/various_formats/octahedron.node', '...
assert_(conn.shape[0] == mesh.n_els[ig])
sfepy.base.testing.assert_
from sfepy import data_dir filename_meshes = ['/meshes/3d/cylinder.mesh', '/meshes/3d/cylinder.vtk', '/meshes/various_formats/small2d.mesh', '/meshes/various_formats/small2d.vtk', '/meshes/various_formats/octahedron.node', '...
assert_(conn.shape[1] == mesh.n_e_ps[ig])
sfepy.base.testing.assert_
# 10.07.2007, c # last revision: 25.03.2008 from sfepy import data_dir filename_meshes = ['/meshes/3d/cube_medium_tetra.mesh', '/meshes/3d/cube_medium_tetra.mesh', '/meshes/3d/cube_medium_hexa.mesh'] filename_meshes = [data_dir + name for name in filename_meshes] all_your_bases =...
IndexedStruct()
sfepy.base.base.IndexedStruct
from __future__ import absolute_import import numpy as nm import numpy.linalg as nla from sfepy.base.base import find_subclasses, assert_, Struct from sfepy.linalg import combine, insert_strided_axis from six.moves import range from functools import reduce # Requires fixed vertex numbering! vertex_maps = {3 : [[0, 0,...
assert_(ii == n_nod)
sfepy.base.base.assert_
from __future__ import absolute_import import numpy as nm import numpy.linalg as nla from sfepy.base.base import find_subclasses, assert_, Struct from sfepy.linalg import combine, insert_strided_axis from six.moves import range from functools import reduce # Requires fixed vertex numbering! vertex_maps = {3 : [[0, 0,...
insert_strided_axis(sbase, 0, ori.shape[0])
sfepy.linalg.insert_strided_axis
from __future__ import absolute_import import numpy as nm import numpy.linalg as nla from sfepy.base.base import find_subclasses, assert_, Struct from sfepy.linalg import combine, insert_strided_axis from six.moves import range from functools import reduce # Requires fixed vertex numbering! vertex_maps = {3 : [[0, 0,...
combine([ik] * dim)
sfepy.linalg.combine
""" Explicit time stepping solvers for use with DG FEM """ import numpy as nm import numpy.linalg as nla # sfepy imports from sfepy.base.base import get_default, output from sfepy.solvers import TimeSteppingSolver from sfepy.solvers.solvers import SolverMeta from sfepy.solvers.ts import TimeStepper from sfepy.solvers....
TimeStepper.from_conf(self.conf)
sfepy.solvers.ts.TimeStepper.from_conf
""" Explicit time stepping solvers for use with DG FEM """ import numpy as nm import numpy.linalg as nla # sfepy imports from sfepy.base.base import get_default, output from sfepy.solvers import TimeSteppingSolver from sfepy.solvers.solvers import SolverMeta from sfepy.solvers.ts import TimeStepper from sfepy.solvers....
output('initial residual: %e' % err, verbose=self.verbose)
sfepy.base.base.output
""" Explicit time stepping solvers for use with DG FEM """ import numpy as nm import numpy.linalg as nla # sfepy imports from sfepy.base.base import get_default, output from sfepy.solvers import TimeSteppingSolver from sfepy.solvers.solvers import SolverMeta from sfepy.solvers.ts import TimeStepper from sfepy.solvers....
get_default(nls, self.nls)
sfepy.base.base.get_default
""" Explicit time stepping solvers for use with DG FEM """ import numpy as nm import numpy.linalg as nla # sfepy imports from sfepy.base.base import get_default, output from sfepy.solvers import TimeSteppingSolver from sfepy.solvers.solvers import SolverMeta from sfepy.solvers.ts import TimeStepper from sfepy.solvers....
get_default(ls_eps_a, 1.0)
sfepy.base.base.get_default
""" Explicit time stepping solvers for use with DG FEM """ import numpy as nm import numpy.linalg as nla # sfepy imports from sfepy.base.base import get_default, output from sfepy.solvers import TimeSteppingSolver from sfepy.solvers.solvers import SolverMeta from sfepy.solvers.ts import TimeStepper from sfepy.solvers....
get_default(ls_eps_r, 1.0)
sfepy.base.base.get_default
""" Explicit time stepping solvers for use with DG FEM """ import numpy as nm import numpy.linalg as nla # sfepy imports from sfepy.base.base import get_default, output from sfepy.solvers import TimeSteppingSolver from sfepy.solvers.solvers import SolverMeta from sfepy.solvers.ts import TimeStepper from sfepy.solvers....
get_default(ls_eps_a, 1.0)
sfepy.base.base.get_default
""" Explicit time stepping solvers for use with DG FEM """ import numpy as nm import numpy.linalg as nla # sfepy imports from sfepy.base.base import get_default, output from sfepy.solvers import TimeSteppingSolver from sfepy.solvers.solvers import SolverMeta from sfepy.solvers.ts import TimeStepper from sfepy.solvers....
get_default(ls_eps_r, 1.0)
sfepy.base.base.get_default
""" Explicit time stepping solvers for use with DG FEM """ import numpy as nm import numpy.linalg as nla # sfepy imports from sfepy.base.base import get_default, output from sfepy.solvers import TimeSteppingSolver from sfepy.solvers.solvers import SolverMeta from sfepy.solvers.ts import TimeStepper from sfepy.solvers....
get_default(ls_eps_a, 1.0)
sfepy.base.base.get_default
""" Explicit time stepping solvers for use with DG FEM """ import numpy as nm import numpy.linalg as nla # sfepy imports from sfepy.base.base import get_default, output from sfepy.solvers import TimeSteppingSolver from sfepy.solvers.solvers import SolverMeta from sfepy.solvers.ts import TimeStepper from sfepy.solvers....
get_default(ls_eps_r, 1.0)
sfepy.base.base.get_default
import numpy as nm from sfepy.terms.terms import Term, terms _msg_missing_data = 'missing family data!' class HyperElasticBase(Term): """ Base class for all hyperelastic terms in TL/UL formulation. `HyperElasticBase.__call__()` computes element contributions given either stress (-> rezidual) or tange...
Term.__init__(self, *args, **kwargs)
sfepy.terms.terms.Term.__init__
import numpy as nm from sfepy.terms.terms import Term, terms _msg_missing_data = 'missing family data!' class HyperElasticBase(Term): """ Base class for all hyperelastic terms in TL/UL formulation. `HyperElasticBase.__call__()` computes element contributions given either stress (-> rezidual) or tange...
terms.dq_def_grad(out_qp, vec, vg, econn, mode)
sfepy.terms.terms.terms.dq_def_grad
#!/usr/bin/env python """ Plot logs of variables saved in a text file by sfepy.base.log.Log class. The plot should be almost the same as the plot that would be generated by the Log directly. """ from __future__ import absolute_import import sys sys.path.append('.') from argparse import ArgumentParser, Action, RawDescr...
read_log(filename)
sfepy.base.log.read_log
""" Acoustic band gaps in a strongly heterogeneous elastic body, detected using homogenization techniques. A reference periodic cell contains two domains: the stiff matrix :math:`Y_m` and the soft (but heavy) inclusion :math:`Y_c`. """ from sfepy import data_dir from sfepy.base.base import Struct from sfepy.base.iouti...
InDir(__file__)
sfepy.base.ioutils.InDir
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(conf, self.conf)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(mtx, self.mtx)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(status, self.status)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
assert_(mtx.shape[0] == mtx.shape[1] == rhs.shape[0])
sfepy.base.base.assert_
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
make_get_conf(conf, kwargs)
sfepy.solvers.solvers.make_get_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
LinearSolver.process_conf(conf)
sfepy.solvers.solvers.LinearSolver.process_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
LinearSolver.__init__(self, conf, **kwargs)
sfepy.solvers.solvers.LinearSolver.__init__
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
make_get_conf(conf, kwargs)
sfepy.solvers.solvers.make_get_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
LinearSolver.process_conf(conf)
sfepy.solvers.solvers.LinearSolver.process_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
LinearSolver.__init__(self, conf, **kwargs)
sfepy.solvers.solvers.LinearSolver.__init__
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(eps_r, self.conf.eps_r)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(i_max, self.conf.i_max)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
make_get_conf(conf, kwargs)
sfepy.solvers.solvers.make_get_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
LinearSolver.process_conf(conf)
sfepy.solvers.solvers.LinearSolver.process_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
LinearSolver.__init__(self, conf, mg=None, **kwargs)
sfepy.solvers.solvers.LinearSolver.__init__
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(eps_r, self.conf.eps_r)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
make_get_conf(conf, kwargs)
sfepy.solvers.solvers.make_get_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
LinearSolver.process_conf(conf)
sfepy.solvers.solvers.LinearSolver.process_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
LinearSolver.__init__(self, conf, petsc=PETSc, pmtx=None, **kwargs)
sfepy.solvers.solvers.LinearSolver.__init__
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(eps_a, self.conf.eps_a)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(eps_r, self.conf.eps_r)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(i_max, self.conf.i_max)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
make_get_conf(conf, kwargs)
sfepy.solvers.solvers.make_get_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(eps_a, self.conf.eps_a)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(eps_r, self.conf.eps_r)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_default(i_max, self.conf.i_max)
sfepy.base.base.get_default
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
ensure_path(log_filename)
sfepy.base.ioutils.ensure_path
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
output('storing system to %s...' % output_dir)
sfepy.base.base.output
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
assert_(out == 0)
sfepy.base.base.assert_
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
output('reading solution...')
sfepy.base.base.output
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
output('elapsed: %.2f [s]' % elapsed)
sfepy.base.base.output
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
make_get_conf(conf, kwargs)
sfepy.solvers.solvers.make_get_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
State(equations.variables)
sfepy.discrete.state.State
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
make_get_conf(conf, kwargs)
sfepy.solvers.solvers.make_get_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
make_get_conf(conf, kwargs)
sfepy.solvers.solvers.make_get_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
get_standard_keywords()
sfepy.base.conf.get_standard_keywords
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
output.get_output_prefix()
sfepy.base.base.output.get_output_prefix
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
assert_(x0.shape[0] == rhs.shape[0])
sfepy.base.base.assert_
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
output.set_output_prefix(sub_prefix)
sfepy.base.base.output.set_output_prefix
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
Problem.from_conf(confi, init_equations=True)
sfepy.discrete.Problem.from_conf
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
State(pbi.equations.variables)
sfepy.discrete.state.State
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
output.set_output_prefix(master_prefix)
sfepy.base.base.output.set_output_prefix
import time import numpy as nm import warnings import scipy.sparse as sps warnings.simplefilter('ignore', sps.SparseEfficiencyWarning) from sfepy.base.base import output, get_default, assert_, try_imports, Struct from sfepy.solvers.solvers import make_get_conf, LinearSolver def standard_call(call): """ Dec...
output('umfpack not available, using superlu!')
sfepy.base.base.output
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
get_standard_keywords()
sfepy.base.conf.get_standard_keywords
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
locate_files('*.py', pdf_dir)
sfepy.base.ioutils.locate_files
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
output('...done')
sfepy.base.base.output
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
term_table.keys()
sfepy.terms.term_table.keys
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
output('trying "%s"...' % base)
sfepy.base.base.output
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
output('...ok')
sfepy.base.base.output
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
output('unused terms:')
sfepy.base.base.output
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
output('terms use:')
sfepy.base.base.output
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
ordered_iteritems(terms_use)
sfepy.base.base.ordered_iteritems
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
parse_definition(eq_conf)
sfepy.discrete.equations.parse_definition
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
output(' ' + name)
sfepy.base.base.output
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
output('...failed')
sfepy.base.base.output
#!/usr/bin/env python """ Show terms use in problem description files in the given directory. """ from __future__ import absolute_import import sys import six sys.path.append('.') import os from argparse import ArgumentParser from sfepy.base.base import output, dict_from_keys_init, ordered_iteritems from sfepy.base.co...
output(' ' + ex_name)
sfepy.base.base.output
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
LineProbe(p0, p1, n_point, share_geometry=True)
sfepy.discrete.probes.LineProbe
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
CircleProbe(centre, normal, r, n_point, share_geometry=True)
sfepy.discrete.probes.CircleProbe
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
output('using values:')
sfepy.base.base.output
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
output(' diffusivity:', options.diffusivity)
sfepy.base.base.output
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
output(' max. IC value:', options.ic_max)
sfepy.base.base.output
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
output('uniform mesh refinement level:', options.refine)
sfepy.base.base.output
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
Mesh.from_file(data_dir + '/meshes/3d/cylinder.mesh')
sfepy.discrete.fem.Mesh.from_file
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
FEDomain('domain', mesh)
sfepy.discrete.fem.FEDomain
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
FieldVariable('T', 'unknown', field, history=1)
sfepy.discrete.FieldVariable
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
FieldVariable('s', 'test', field, primary_var_name='T')
sfepy.discrete.FieldVariable
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
Integral('i', order=2*options.order)
sfepy.discrete.Integral
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
Equation('balance', t1 + t2)
sfepy.discrete.Equation
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
Equations([eq])
sfepy.discrete.Equations
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
Function('ic_fun', get_ic)
sfepy.discrete.Function
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
Problem('heat', equations=eqs)
sfepy.discrete.Problem
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
ScipyDirect({})
sfepy.solvers.ls.ScipyDirect
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
IndexedStruct()
sfepy.base.base.IndexedStruct
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
prepare_matrix(pb, state0)
sfepy.discrete.problem.prepare_matrix
#!/usr/bin/env python """ Transient Laplace equation (heat equation) with non-constant initial conditions given by a function, using commands for interactive use. The script allows setting various simulation parameters, namely: - the diffusivity coefficient - the max. initial condition value - temperature field appro...
IndexedStruct()
sfepy.base.base.IndexedStruct