prompt
stringlengths
174
59.5k
completion
stringlengths
7
228
api
stringlengths
12
64
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. """ Compare various elastic materials w.r.t. uniaxial tension/compression test. Requires Matplotlib. """ from __future__ import absolute_import from argparse import ArgumentParser, RawDescriptionHelpFormatter import sys impo...
plt.show(fig2)
sfepy.base.plotutils.plt.show
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. """ Compare various elastic materials w.r.t. uniaxial tension/compression test. Requires Matplotlib. """ from __future__ import absolute_import from argparse import ArgumentParser, RawDescriptionHelpFormatter import sys impo...
output.set_output(filename='sfepy_log.txt', quiet=True)
sfepy.base.base.output.set_output
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. """ Compare various elastic materials w.r.t. uniaxial tension/compression test. Requires Matplotlib. """ from __future__ import absolute_import from argparse import ArgumentParser, RawDescriptionHelpFormatter import sys impo...
get_standard_keywords()
sfepy.base.conf.get_standard_keywords
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. """ Compare various elastic materials w.r.t. uniaxial tension/compression test. Requires Matplotlib. """ from __future__ import absolute_import from argparse import ArgumentParser, RawDescriptionHelpFormatter import sys impo...
Problem.from_conf(conf, init_equations=False)
sfepy.discrete.Problem.from_conf
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. """ Compare various elastic materials w.r.t. uniaxial tension/compression test. Requires Matplotlib. """ from __future__ import absolute_import from argparse import ArgumentParser, RawDescriptionHelpFormatter import sys impo...
stiffness_from_lame(dim=3, lam=lam, mu=mu)
sfepy.mechanics.matcoefs.stiffness_from_lame
import numpy as nm from sfepy.base.base import output, get_default, assert_, Struct def get_print_info(n_step): if n_step > 1: n_digit = int(nm.log10(n_step - 1) + 1) else: n_digit = 1 format = '%%%dd of %%%dd' % (n_digit, n_digit) suffix = '%%0%dd' % n_digit return n_digit, for...
get_default(dt, t1 - t0)
sfepy.base.base.get_default
import numpy as nm from sfepy.base.base import output, get_default, assert_, Struct def get_print_info(n_step): if n_step > 1: n_digit = int(nm.log10(n_step - 1) + 1) else: n_digit = 1 format = '%%%dd of %%%dd' % (n_digit, n_digit) suffix = '%%0%dd' % n_digit return n_digit, for...
get_default(step, ts.step)
sfepy.base.base.get_default
import numpy as nm from sfepy.base.base import output, get_default, assert_, Struct def get_print_info(n_step): if n_step > 1: n_digit = int(nm.log10(n_step - 1) + 1) else: n_digit = 1 format = '%%%dd of %%%dd' % (n_digit, n_digit) suffix = '%%0%dd' % n_digit return n_digit, for...
get_default(dt, self.dtime)
sfepy.base.base.get_default
r""" Elastic contact sphere simulating an indentation test. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) + \int_{\Gamma} \ul{v} \cdot f(d(\ul{u})) \ul{n}(\ul{u}) = 0 \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl} + \delta_{il} \delta_{jk...
MeshIO.any_from_filename(filename_mesh, prefix_dir=conf_dir)
sfepy.discrete.fem.MeshIO.any_from_filename
r""" Elastic contact sphere simulating an indentation test. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) + \int_{\Gamma} \ul{v} \cdot f(d(\ul{u})) \ul{n}(\ul{u}) = 0 \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl} + \delta_{il} \delta_{jk...
ContactSphere(csc['.c'], csc['.r'])
sfepy.mechanics.contact_bodies.ContactSphere
r""" Elastic contact sphere simulating an indentation test. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) + \int_{\Gamma} \ul{v} \cdot f(d(\ul{u})) \ul{n}(\ul{u}) = 0 \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl} + \delta_{il} \delta_{jk...
plot_points(ax, cs.centre[None, :], 'b*', ms=30)
sfepy.mechanics.contact_bodies.plot_points
r""" Elastic contact sphere simulating an indentation test. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) + \int_{\Gamma} \ul{v} \cdot f(d(\ul{u})) \ul{n}(\ul{u}) = 0 \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl} + \delta_{il} \delta_{jk...
plot_points(ax, pps[mask], 'kv')
sfepy.mechanics.contact_bodies.plot_points
r""" Elastic contact sphere simulating an indentation test. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) + \int_{\Gamma} \ul{v} \cdot f(d(\ul{u})) \ul{n}(\ul{u}) = 0 \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl} + \delta_{il} \delta_{jk...
plot_points(ax, pps[~mask], 'r.')
sfepy.mechanics.contact_bodies.plot_points
""" Global interpolation functions. """ import time import numpy as nm from sfepy.base.base import output, get_default_attr from sfepy.discrete.fem.mesh import make_inverse_connectivity from sfepy.discrete.fem.extmods.bases import find_ref_coors def get_ref_coors(field, coors, strategy='kdtree', close_limit=0.1, cach...
get_default_attr(cache, 'ref_coors', None)
sfepy.base.base.get_default_attr
""" Global interpolation functions. """ import time import numpy as nm from sfepy.base.base import output, get_default_attr from sfepy.discrete.fem.mesh import make_inverse_connectivity from sfepy.discrete.fem.extmods.bases import find_ref_coors def get_ref_coors(field, coors, strategy='kdtree', close_limit=0.1, cach...
get_default_attr(cache, 'mesh', None)
sfepy.base.base.get_default_attr
""" Global interpolation functions. """ import time import numpy as nm from sfepy.base.base import output, get_default_attr from sfepy.discrete.fem.mesh import make_inverse_connectivity from sfepy.discrete.fem.extmods.bases import find_ref_coors def get_ref_coors(field, coors, strategy='kdtree', close_limit=0.1, cach...
get_default_attr(cache, 'iconn', None)
sfepy.base.base.get_default_attr
""" Global interpolation functions. """ import time import numpy as nm from sfepy.base.base import output, get_default_attr from sfepy.discrete.fem.mesh import make_inverse_connectivity from sfepy.discrete.fem.extmods.bases import find_ref_coors def get_ref_coors(field, coors, strategy='kdtree', close_limit=0.1, cach...
get_default_attr(cache, 'kdtree', None)
sfepy.base.base.get_default_attr
r""" Thermo-elasticity with a given temperature distribution. Uses `dw_biot` term with an isotropic coefficient for thermo-elastic coupling. For given body temperature :math:`T` and background temperature :math:`T_0` find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) ...
stiffness_from_lame(3, lam=lam, mu=mu)
sfepy.mechanics.matcoefs.stiffness_from_lame
import numpy as nm from sfepy.linalg import dot_sequences from sfepy.terms.terms import Term, terms class PiezoCouplingTerm(Term): r""" Piezoelectric coupling term. Can be evaluated. :Definition: .. math:: \int_{\Omega} g_{kij}\ e_{ij}(\ul{v}) \nabla_k p \mbox{ , } \int_{\Omega} g_{k...
dot_sequences(mat, grad, mode='ATB')
sfepy.linalg.dot_sequences
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. from __future__ import print_function from __future__ import absolute_import import sys sys.path.append('.') import matplotlib as mlp import matplotlib.pyplot as plt from matplotlib.collections import PolyCollection from mp...
get_standard_keywords()
sfepy.base.conf.get_standard_keywords
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. from __future__ import print_function from __future__ import absolute_import import sys sys.path.append('.') import matplotlib as mlp import matplotlib.pyplot as plt from matplotlib.collections import PolyCollection from mp...
output.set_output(filename='sfepy_log.txt', quiet=True)
sfepy.base.base.output.set_output
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. from __future__ import print_function from __future__ import absolute_import import sys sys.path.append('.') import matplotlib as mlp import matplotlib.pyplot as plt from matplotlib.collections import PolyCollection from mp...
HomogenizationApp(conf, options, 'material_opt_micro:')
sfepy.homogenization.homogen_app.HomogenizationApp
#!/usr/bin/env python # This code was adapted from http://sfepy.org/doc-devel/mat_optim.html. from __future__ import print_function from __future__ import absolute_import import sys sys.path.append('.') import matplotlib as mlp import matplotlib.pyplot as plt from matplotlib.collections import PolyCollection from mp...
PDESolverApp(conf, options, 'material_opt_macro:')
sfepy.applications.PDESolverApp
""" Linearization of higher order solutions for the purposes of visualization. """ from __future__ import absolute_import import numpy as nm from sfepy.linalg import dot_sequences from sfepy.discrete.fem.refine import refine_reference from six.moves import range def get_eval_dofs(dofs, dof_conn, ps, ori=None): ""...
refine_reference(ps.geometry, 1)
sfepy.discrete.fem.refine.refine_reference
""" Linearization of higher order solutions for the purposes of visualization. """ from __future__ import absolute_import import numpy as nm from sfepy.linalg import dot_sequences from sfepy.discrete.fem.refine import refine_reference from six.moves import range def get_eval_dofs(dofs, dof_conn, ps, ori=None): ""...
dot_sequences(bf, edofs)
sfepy.linalg.dot_sequences
""" Linearization of higher order solutions for the purposes of visualization. """ from __future__ import absolute_import import numpy as nm from sfepy.linalg import dot_sequences from sfepy.discrete.fem.refine import refine_reference from six.moves import range def get_eval_dofs(dofs, dof_conn, ps, ori=None): ""...
refine_reference(ps.geometry, level + 2)
sfepy.discrete.fem.refine.refine_reference
#!/usr/bin/env python # 12.01.2007, c """ Solve partial differential equations given in a SfePy problem definition file. Example problem definition files can be found in ``examples/`` directory of the SfePy top-level directory. This script works with all the examples except those in ``examples/standalone/``. Both nor...
get_standard_keywords()
sfepy.base.conf.get_standard_keywords
#!/usr/bin/env python # 12.01.2007, c """ Solve partial differential equations given in a SfePy problem definition file. Example problem definition files can be found in ``examples/`` directory of the SfePy top-level directory. This script works with all the examples except those in ``examples/standalone/``. Both nor...
PDESolverApp(conf, options, output_prefix)
sfepy.applications.PDESolverApp
#!/usr/bin/env python # 12.01.2007, c """ Solve partial differential equations given in a SfePy problem definition file. Example problem definition files can be found in ``examples/`` directory of the SfePy top-level directory. This script works with all the examples except those in ``examples/standalone/``. Both nor...
debug_on_error()
sfepy.base.base.debug_on_error
#!/usr/bin/env python # 12.01.2007, c """ Solve partial differential equations given in a SfePy problem definition file. Example problem definition files can be found in ``examples/`` directory of the SfePy top-level directory. This script works with all the examples except those in ``examples/standalone/``. Both nor...
solver_table.keys()
sfepy.solvers.solver_table.keys
r""" Incompressible Stokes flow with Navier (slip) boundary conditions, flow driven by a moving wall and a small diffusion for stabilization. This example demonstrates the use of `no-penetration` and `edge direction` boundary conditions together with Navier or slip boundary conditions. Alternatively the `no-penetratio...
assert_(mode in {'lcbc', 'penalty'})
sfepy.base.base.assert_
r""" Incompressible Stokes flow with Navier (slip) boundary conditions, flow driven by a moving wall and a small diffusion for stabilization. This example demonstrates the use of `no-penetration` and `edge direction` boundary conditions together with Navier or slip boundary conditions. Alternatively the `no-penetratio...
assert_(term_mode in {'original', 'einsum'})
sfepy.base.base.assert_
r""" Incompressible Stokes flow with Navier (slip) boundary conditions, flow driven by a moving wall and a small diffusion for stabilization. This example demonstrates the use of `no-penetration` and `edge direction` boundary conditions together with Navier or slip boundary conditions. Alternatively the `no-penetratio...
UserMeshIO(mesh_hook)
sfepy.discrete.fem.meshio.UserMeshIO
r""" Incompressible Stokes flow with Navier (slip) boundary conditions, flow driven by a moving wall and a small diffusion for stabilization. This example demonstrates the use of `no-penetration` and `edge direction` boundary conditions together with Navier or slip boundary conditions. Alternatively the `no-penetratio...
define_box_regions(3, 0.5 * dims)
sfepy.homogenization.utils.define_box_regions
r""" Incompressible Stokes flow with Navier (slip) boundary conditions, flow driven by a moving wall and a small diffusion for stabilization. This example demonstrates the use of `no-penetration` and `edge direction` boundary conditions together with Navier or slip boundary conditions. Alternatively the `no-penetratio...
assert_(mode == 'penalty', msg='set mode=penalty to use u_order > 1!')
sfepy.base.base.assert_
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
output('using values:')
sfepy.base.base.output
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
output(" Young's modulus:", options.young)
sfepy.base.base.output
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
output(" Poisson's ratio:", options.poisson)
sfepy.base.base.output
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
output(' vertical load:', options.load)
sfepy.base.base.output
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
output('uniform mesh refinement level:', options.refine)
sfepy.base.base.output
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Mesh.from_file(data_dir + '/meshes/2d/its2D.mesh')
sfepy.discrete.fem.Mesh.from_file
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
FEDomain('domain', mesh)
sfepy.discrete.fem.FEDomain
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
FieldVariable('u', 'unknown', field)
sfepy.discrete.FieldVariable
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
FieldVariable('v', 'test', field, primary_var_name='u')
sfepy.discrete.FieldVariable
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
stiffness_from_youngpoisson(2, options.young, options.poisson)
sfepy.mechanics.matcoefs.stiffness_from_youngpoisson
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Material('Asphalt', D=D)
sfepy.discrete.Material
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Integral('i', order=2*options.order)
sfepy.discrete.Integral
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Integral('i', order=0)
sfepy.discrete.Integral
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Equation('balance', t1 - t2)
sfepy.discrete.Equation
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Equations([eq])
sfepy.discrete.Equations
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
ScipyDirect({})
sfepy.solvers.ls.ScipyDirect
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
IndexedStruct()
sfepy.base.base.IndexedStruct
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Newton({}, lin_solver=ls, status=nls_status)
sfepy.solvers.nls.Newton
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Problem('elasticity', equations=eqs, nls=nls, ls=ls)
sfepy.discrete.Problem
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
output(nls_status)
sfepy.base.base.output
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
project_by_component(strain, strain_qp, component, order)
sfepy.discrete.projections.project_by_component
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
project_by_component(stress, stress_qp, component, order)
sfepy.discrete.projections.project_by_component
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Viewer('its2D_interactive.vtk')
sfepy.postprocess.viewer.Viewer
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
LineProbe(p0, p1, n_point)
sfepy.discrete.probes.LineProbe
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
output('refine %d...' % ii)
sfepy.base.base.output
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Conditions([xsym, ysym])
sfepy.discrete.conditions.Conditions
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
Integrals([integral_vn])
sfepy.discrete.Integrals
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
output('probe %d:' % ii)
sfepy.base.base.output
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
ordered_iteritems(results)
sfepy.base.base.ordered_iteritems
#!/usr/bin/env python """ Diametrically point loaded 2-D disk, using commands for interactive use. See :ref:`sec-primer`. The script combines the functionality of all the ``its2D_?.py`` examples and allows setting various simulation parameters, namely: - material parameters - displacement field approximation order - ...
output(key + ':')
sfepy.base.base.output
""" Computational domain for isogeometric analysis. """ import os.path as op import numpy as nm from sfepy.base.base import Struct from sfepy.discrete.common.domain import Domain import sfepy.discrete.iga as iga import sfepy.discrete.iga.io as io from sfepy.discrete.iga.extmods.igac import eval_in_tp_coors class Nur...
io.read_iga_data(filename)
sfepy.discrete.iga.io.read_iga_data
""" Computational domain for isogeometric analysis. """ import os.path as op import numpy as nm from sfepy.base.base import Struct from sfepy.discrete.common.domain import Domain import sfepy.discrete.iga as iga import sfepy.discrete.iga.io as io from sfepy.discrete.iga.extmods.igac import eval_in_tp_coors class Nur...
Struct(name='bmesh', cps=bcps, weights=bweights, conn=bconn)
sfepy.base.base.Struct
""" Computational domain for isogeometric analysis. """ import os.path as op import numpy as nm from sfepy.base.base import Struct from sfepy.discrete.common.domain import Domain import sfepy.discrete.iga as iga import sfepy.discrete.iga.io as io from sfepy.discrete.iga.extmods.igac import eval_in_tp_coors class Nur...
iga.get_bezier_element_entities(nurbs.degrees)
sfepy.discrete.iga.get_bezier_element_entities
""" Computational domain for isogeometric analysis. """ import os.path as op import numpy as nm from sfepy.base.base import Struct from sfepy.discrete.common.domain import Domain import sfepy.discrete.iga as iga import sfepy.discrete.iga.io as io from sfepy.discrete.iga.extmods.igac import eval_in_tp_coors class Nur...
iga.get_bezier_topology(bmesh.conn, nurbs.degrees)
sfepy.discrete.iga.get_bezier_topology
""" Computational domain for isogeometric analysis. """ import os.path as op import numpy as nm from sfepy.base.base import Struct from sfepy.discrete.common.domain import Domain import sfepy.discrete.iga as iga import sfepy.discrete.iga.io as io from sfepy.discrete.iga.extmods.igac import eval_in_tp_coors class Nur...
Struct(n_nod=n_nod, dim=dim, tdim=0, n_el=n_el, n_gr=1)
sfepy.base.base.Struct
""" Computational domain for isogeometric analysis. """ import os.path as op import numpy as nm from sfepy.base.base import Struct from sfepy.discrete.common.domain import Domain import sfepy.discrete.iga as iga import sfepy.discrete.iga.io as io from sfepy.discrete.iga.extmods.igac import eval_in_tp_coors class Nur...
CMesh.from_mesh(self.mesh)
sfepy.discrete.fem.extmods.cmesh.CMesh.from_mesh
""" Computational domain for isogeometric analysis. """ import os.path as op import numpy as nm from sfepy.base.base import Struct from sfepy.discrete.common.domain import Domain import sfepy.discrete.iga as iga import sfepy.discrete.iga.io as io from sfepy.discrete.iga.extmods.igac import eval_in_tp_coors class Nur...
create_geometry_elements()
sfepy.discrete.fem.geometry_element.create_geometry_elements
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
split_range(total_size, chunk_size)
sfepy.linalg.split_range
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
Container.__init__(self, objs=objs)
sfepy.base.base.Container.__init__
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
Container.insert(self, ii, obj)
sfepy.base.base.Container.insert
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
Container.append(self, obj)
sfepy.base.base.Container.append
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
Struct.get(self, 'function', None)
sfepy.base.base.Struct.get
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
get_default(step, self.arg_steps[name])
sfepy.base.base.get_default
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
get_default(integration, self.geometry_types[name])
sfepy.base.base.get_default
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
create_adof_conns(conn_info, None)
sfepy.discrete.create_adof_conns
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
terms.append(term)
sfepy.terms.extmods.terms.append
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
Integrals()
sfepy.discrete.Integrals
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
as_float_or_complex(other)
sfepy.base.base.as_float_or_complex
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
Struct.get(self, 'mode', None)
sfepy.base.base.Struct.get
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
PhysicalQPs(self.region.igs)
sfepy.discrete.common.mappings.PhysicalQPs
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
terms.errclear()
sfepy.terms.extmods.terms.errclear
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
get_physical_qps(self.region, self.integral)
sfepy.discrete.common.mappings.get_physical_qps
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
terms.errclear()
sfepy.terms.extmods.terms.errclear
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
terms.errclear()
sfepy.terms.extmods.terms.errclear
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
assert_(asm_obj.dtype == nm.complex128)
sfepy.base.base.assert_
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
assert_(vec_in_els.shape[2] == dc.shape[1])
sfepy.base.base.assert_
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
Struct(terms=[self])
sfepy.base.base.Struct
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
assert_(asm_obj.dtype == nm.complex128)
sfepy.base.base.assert_
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
assert_(mtx_in_els.shape[2:] == (rdc.shape[1], cdc.shape[1]))
sfepy.base.base.assert_
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
term_table.keys()
sfepy.terms.term_table.keys
import re from copy import copy import numpy as nm from sfepy.base.base import (as_float_or_complex, get_default, assert_, Container, Struct, basestr, goptions) from sfepy.base.compat import in1d # Used for imports in term files. from sfepy.terms.extmods import terms from sfepy.linalg i...
term_table.keys()
sfepy.terms.term_table.keys
""" Functions to visualize quadrature points in reference elements. """ import numpy as nm import matplotlib.pyplot as plt from sfepy.base.base import output from sfepy.postprocess.plot_dofs import _get_axes, _to2d from sfepy.postprocess.plot_facets import plot_geometry def _get_qp(geometry, order): from sfepy.d...
Integral('aux', order=order)
sfepy.discrete.Integral
""" Functions to visualize quadrature points in reference elements. """ import numpy as nm import matplotlib.pyplot as plt from sfepy.base.base import output from sfepy.postprocess.plot_dofs import _get_axes, _to2d from sfepy.postprocess.plot_facets import plot_geometry def _get_qp(geometry, order): from sfepy.d...
GeometryElement(geometry)
sfepy.discrete.fem.geometry_element.GeometryElement
""" Functions to visualize quadrature points in reference elements. """ import numpy as nm import matplotlib.pyplot as plt from sfepy.base.base import output from sfepy.postprocess.plot_dofs import _get_axes, _to2d from sfepy.postprocess.plot_facets import plot_geometry def _get_qp(geometry, order): from sfepy.d...
FEDomain('domain', mesh)
sfepy.discrete.fem.FEDomain
""" Functions to visualize quadrature points in reference elements. """ import numpy as nm import matplotlib.pyplot as plt from sfepy.base.base import output from sfepy.postprocess.plot_dofs import _get_axes, _to2d from sfepy.postprocess.plot_facets import plot_geometry def _get_qp(geometry, order): from sfepy.d...
Integral('aux', order=order)
sfepy.discrete.Integral