prompt
stringlengths
174
59.5k
completion
stringlengths
7
228
api
stringlengths
12
64
""" Friction-slip model formulated as the implicit complementarity problem. To integrate over a (dual) mesh, one needs: * coordinates of element vertices * element connectivity * local base for each element * constant in each sub-triangle of the dual mesh Data for each dual element: * connectivity of its sub-tria...
VolumeMapping(cc, rconn, gel=gel)
sfepy.fem.mappings.VolumeMapping
""" Friction-slip model formulated as the implicit complementarity problem. To integrate over a (dual) mesh, one needs: * coordinates of element vertices * element connectivity * local base for each element * constant in each sub-triangle of the dual mesh Data for each dual element: * connectivity of its sub-tria...
SurfaceMapping(dual_coors, tri_conn, gel=gel)
sfepy.fem.mappings.SurfaceMapping
""" Friction-slip model formulated as the implicit complementarity problem. To integrate over a (dual) mesh, one needs: * coordinates of element vertices * element connectivity * local base for each element * constant in each sub-triangle of the dual mesh Data for each dual element: * connectivity of its sub-tria...
FESurface(None, self.region, self.gel.faces, conn, ig)
sfepy.fem.fe_surface.FESurface
""" Friction-slip model formulated as the implicit complementarity problem. To integrate over a (dual) mesh, one needs: * coordinates of element vertices * element connectivity * local base for each element * constant in each sub-triangle of the dual mesh Data for each dual element: * connectivity of its sub-tria...
la.norm_l2_along_axis(centre_normals)
sfepy.linalg.norm_l2_along_axis
""" Friction-slip model formulated as the implicit complementarity problem. To integrate over a (dual) mesh, one needs: * coordinates of element vertices * element connectivity * local base for each element * constant in each sub-triangle of the dual mesh Data for each dual element: * connectivity of its sub-tria...
la.norm_l2_along_axis(edge_normals)
sfepy.linalg.norm_l2_along_axis
""" Friction-slip model formulated as the implicit complementarity problem. To integrate over a (dual) mesh, one needs: * coordinates of element vertices * element connectivity * local base for each element * constant in each sub-triangle of the dual mesh Data for each dual element: * connectivity of its sub-tria...
la.norm_l2_along_axis(edge_dirs)
sfepy.linalg.norm_l2_along_axis
""" Friction-slip model formulated as the implicit complementarity problem. To integrate over a (dual) mesh, one needs: * coordinates of element vertices * element connectivity * local base for each element * constant in each sub-triangle of the dual mesh Data for each dual element: * connectivity of its sub-tria...
la.norm_l2_along_axis(edge_ortho)
sfepy.linalg.norm_l2_along_axis
# -*- coding: utf-8 -*- r""" Linear elasticity with given displacements. Find :math:`\ul{u}` such that: .. math:: \int_{\Omega} D_{ijkl}\ e_{ij}(\ul{v}) e_{kl}(\ul{u}) = 0 \;, \quad \forall \ul{v} \;, where .. math:: D_{ijkl} = \mu (\delta_{ik} \delta_{jl}+\delta_{il} \delta_{jk}) + \lambda \ \d...
stiffness_from_lame(dim=3, lam=1e1, mu=1e0)
sfepy.mechanics.matcoefs.stiffness_from_lame
import os import numpy as nm try: from enthought.tvtk.api import tvtk from enthought.mayavi.sources.vtk_data_source import VTKDataSource from enthought.pyface.timer.api import Timer except: from tvtk.api import tvtk from mayavi.sources.vtk_data_source import VTKDataSource from pyface.timer.ap...
mlab.pipeline.open(self.filename)
sfepy.postprocess.utils.mlab.pipeline.open
import os import numpy as nm try: from enthought.tvtk.api import tvtk from enthought.mayavi.sources.vtk_data_source import VTKDataSource from enthought.pyface.timer.api import Timer except: from tvtk.api import tvtk from mayavi.sources.vtk_data_source import VTKDataSource from pyface.timer.ap...
mlab.pipeline.open(self.filename[0])
sfepy.postprocess.utils.mlab.pipeline.open
import os import numpy as nm try: from enthought.tvtk.api import tvtk from enthought.mayavi.sources.vtk_data_source import VTKDataSource from enthought.pyface.timer.api import Timer except: from tvtk.api import tvtk from mayavi.sources.vtk_data_source import VTKDataSource from pyface.timer.ap...
MeshIO.any_from_filename(filename)
sfepy.discrete.fem.meshio.MeshIO.any_from_filename
import os import numpy as nm try: from enthought.tvtk.api import tvtk from enthought.mayavi.sources.vtk_data_source import VTKDataSource from enthought.pyface.timer.api import Timer except: from tvtk.api import tvtk from mayavi.sources.vtk_data_source import VTKDataSource from pyface.timer.ap...
Mesh.from_file(filename)
sfepy.discrete.fem.Mesh.from_file
import os import numpy as nm try: from enthought.tvtk.api import tvtk from enthought.mayavi.sources.vtk_data_source import VTKDataSource from enthought.pyface.timer.api import Timer except: from tvtk.api import tvtk from mayavi.sources.vtk_data_source import VTKDataSource from pyface.timer.ap...
supported_formats.keys()
sfepy.discrete.fem.meshio.supported_formats.keys
from __future__ import absolute_import import numpy as nm from sfepy.base.base import output, iter_dict_of_lists, Struct, basestr from sfepy.base.timing import Timer import six def parse_approx_order(approx_order): """ Parse the uniform approximation order value (str or int). """ ao_msg = 'unsupport...
iter_dict_of_lists(conn_info, return_keys=True)
sfepy.base.base.iter_dict_of_lists
from __future__ import absolute_import import numpy as nm from sfepy.base.base import output, iter_dict_of_lists, Struct, basestr from sfepy.base.timing import Timer import six def parse_approx_order(approx_order): """ Parse the uniform approximation order value (str or int). """ ao_msg = 'unsupport...
multi.is_remote_dict(self.mappings0)
sfepy.base.multiproc.is_remote_dict
from __future__ import absolute_import import numpy as nm from sfepy.base.base import output, iter_dict_of_lists, Struct, basestr from sfepy.base.timing import Timer import six def parse_approx_order(approx_order): """ Parse the uniform approximation order value (str or int). """ ao_msg = 'unsupport...
output('evaluating in %d points...' % coors.shape[0], verbose=verbose)
sfepy.base.base.output
from __future__ import absolute_import import numpy as nm from sfepy.base.base import output, iter_dict_of_lists, Struct, basestr from sfepy.base.timing import Timer import six def parse_approx_order(approx_order): """ Parse the uniform approximation order value (str or int). """ ao_msg = 'unsupport...
Timer(start=True)
sfepy.base.timing.Timer
from __future__ import absolute_import import numpy as nm from sfepy.base.base import output, iter_dict_of_lists, Struct, basestr from sfepy.base.timing import Timer import six def parse_approx_order(approx_order): """ Parse the uniform approximation order value (str or int). """ ao_msg = 'unsupport...
output('...done',verbose=verbose)
sfepy.base.base.output
from __future__ import absolute_import import numpy as nm from sfepy.base.base import output, iter_dict_of_lists, Struct, basestr from sfepy.base.timing import Timer import six def parse_approx_order(approx_order): """ Parse the uniform approximation order value (str or int). """ ao_msg = 'unsupport...
get_paths('sfepy/discrete/iga/fields*.py')
sfepy.get_paths
from __future__ import absolute_import import numpy as nm from sfepy.base.base import output, iter_dict_of_lists, Struct, basestr from sfepy.base.timing import Timer import six def parse_approx_order(approx_order): """ Parse the uniform approximation order value (str or int). """ ao_msg = 'unsupport...
get_paths('sfepy/discrete/structural/fields*.py')
sfepy.get_paths
from __future__ import absolute_import import numpy as nm from sfepy.base.base import output, iter_dict_of_lists, Struct, basestr from sfepy.base.timing import Timer import six def parse_approx_order(approx_order): """ Parse the uniform approximation order value (str or int). """ ao_msg = 'unsupport...
multi.is_remote_dict(self.mappings0)
sfepy.base.multiproc.is_remote_dict
from __future__ import absolute_import import numpy as nm from sfepy.base.base import output, iter_dict_of_lists, Struct, basestr from sfepy.base.timing import Timer import six def parse_approx_order(approx_order): """ Parse the uniform approximation order value (str or int). """ ao_msg = 'unsupport...
get_paths('sfepy/discrete/fem/fields*.py')
sfepy.get_paths
import numpy as nm from sfepy.base.base import output, Struct from sfepy.base.conf import ProblemConf, get_standard_keywords from sfepy.homogenization.homogen_app import HomogenizationApp from sfepy.homogenization.coefficients import Coefficients import tables as pt from sfepy.discrete.fem.meshio import HDF5MeshIO imp...
get_standard_keywords()
sfepy.base.conf.get_standard_keywords
import numpy as nm from sfepy.base.base import output, Struct from sfepy.base.conf import ProblemConf, get_standard_keywords from sfepy.homogenization.homogen_app import HomogenizationApp from sfepy.homogenization.coefficients import Coefficients import tables as pt from sfepy.discrete.fem.meshio import HDF5MeshIO imp...
ProblemConf.from_file(micro_filename, required, other, verbose=False)
sfepy.base.conf.ProblemConf.from_file
import numpy as nm from sfepy.base.base import output, Struct from sfepy.base.conf import ProblemConf, get_standard_keywords from sfepy.homogenization.homogen_app import HomogenizationApp from sfepy.homogenization.coefficients import Coefficients import tables as pt from sfepy.discrete.fem.meshio import HDF5MeshIO imp...
HDF5MeshIO( val+'.h5' )
sfepy.discrete.fem.meshio.HDF5MeshIO
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Mesh.from_region(omega_gi, mesh, localize=True)
sfepy.discrete.fem.Mesh.from_region
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
FEDomain('domain_i', mesh_i)
sfepy.discrete.fem.FEDomain
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('number of local field DOFs:', field_i.n_nod)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
FieldVariable('u_i', 'unknown', field_i)
sfepy.discrete.FieldVariable
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
FieldVariable('v_i', 'test', field_i, primary_var_name='u_i')
sfepy.discrete.FieldVariable
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Integral('i', order=2*order)
sfepy.discrete.Integral
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Material('m', lam=10, mu=5)
sfepy.discrete.Material
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Equation('balance', t1 - 100 * t2)
sfepy.discrete.Equation
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Equations([eq])
sfepy.discrete.Equations
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Problem('problem_i', equations=eqs, active_only=False)
sfepy.discrete.Problem
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
pl.verify_task_dof_maps(dof_maps, id_map, field, verbose=verbose)
sfepy.parallel.parallel.verify_task_dof_maps
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('rank', rank, 'of', size)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Struct()
sfepy.base.base.Struct
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Timer('solve_timer')
sfepy.base.timing.Timer
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Mesh.from_file(mesh_filename)
sfepy.discrete.fem.Mesh.from_file
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('creating global domain and field...')
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
FEDomain('domain', mesh)
sfepy.discrete.fem.FEDomain
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Field.from_args('fu', nm.float64, 1, omega, approx_order=order)
sfepy.discrete.fem.Field.from_args
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('...done in', timer.dt)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('distributing field %s...' % field.name)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('...done in', timer.dt)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('creating local problem...')
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Region.from_cells(lfd.cells, field.domain)
sfepy.discrete.common.region.Region.from_cells
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('...done in', timer.dt)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('allocating global system...')
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
pl.get_sizes(lfd.petsc_dofs_range, field.n_nod, 1)
sfepy.parallel.parallel.get_sizes
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('sizes:', sizes)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('drange:', drange)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
pl.get_local_ordering(field_i, lfd.petsc_dofs_conn)
sfepy.parallel.parallel.get_local_ordering
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('pdofs:', pdofs)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('...done in', timer.dt)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('evaluating local problem...')
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
State(variables)
sfepy.discrete.State
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('...done in', timer.dt)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('assembling global system...')
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
apply_ebc_to_matrix(mtx_i, u_i.eq_map.eq_ebc)
sfepy.discrete.evaluate.apply_ebc_to_matrix
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('...done in', timer.dt)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('creating solver...')
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
PETScKrylovSolver(conf, comm=comm, mtx=pmtx, status=status)
sfepy.solvers.ls.PETScKrylovSolver
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('...done in', timer.dt)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('solving...')
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
pl.create_local_petsc_vector(pdofs)
sfepy.parallel.parallel.create_local_petsc_vector
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
pl.create_gather_scatter(pdofs, psol_i, psol, comm=comm)
sfepy.parallel.parallel.create_gather_scatter
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('...done in', timer.dt)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('saving solution...')
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
pl.create_gather_to_zero(psol)
sfepy.parallel.parallel.create_gather_to_zero
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('...done in', timer.dt)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output.set_output(filename=filename, combined=options.silent == False)
sfepy.base.base.output.set_output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('petsc options:', petsc_opts)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('dimensions:', dims)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('shape: ', shape)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('centre: ', centre)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output('field order:', options.order)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
output(stats)
sfepy.base.base.output
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
ensure_path(filename)
sfepy.base.ioutils.ensure_path
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Struct(dim=dim, shape=shape, order=options.order)
sfepy.base.base.Struct
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Function('get_load', get_load)
sfepy.discrete.Function
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
Conditions([ebc1, ebc2])
sfepy.discrete.conditions.Conditions
#!/usr/bin/env python r""" Parallel assembling and solving of a Poisson's equation, using commands for interactive use. Find :math:`u` such that: .. math:: \int_{\Omega} \nabla v \cdot \nabla u = \int_{\Omega} v f \;, \quad \forall s \;. Important Notes --------------- - This example requires petsc4py, ...
ensure_path(options.stats_filename)
sfepy.base.ioutils.ensure_path
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
FEDomain('domain', mesh)
sfepy.discrete.fem.FEDomain
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
define_box_regions(3, lbn, rtf)
sfepy.homogenization.utils.define_box_regions
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
FieldVariable('u', 'unknown', vector_field, history=1)
sfepy.discrete.FieldVariable
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
FieldVariable('v', 'test', vector_field, primary_var_name='u')
sfepy.discrete.FieldVariable
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
FieldVariable('p', 'unknown', scalar_field, history=1)
sfepy.discrete.FieldVariable
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
FieldVariable('q', 'test', scalar_field, primary_var_name='p')
sfepy.discrete.FieldVariable
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
Function('disp_fun', get_displacement)
sfepy.discrete.Function
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
Conditions([x_sym, y_sym, z_sym, displacement])
sfepy.discrete.conditions.Conditions
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
Integral('i', order=2*order+1)
sfepy.discrete.Integral
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
Equation('balance', term_1 + term_pressure)
sfepy.discrete.Equation
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
Equation('volume', term_volume_change - term_volume)
sfepy.discrete.Equation
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
Equations([eq_balance, eq_volume])
sfepy.discrete.Equations
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
ScipyDirect({})
sfepy.solvers.ls.ScipyDirect
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
IndexedStruct()
sfepy.base.base.IndexedStruct
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
Problem('hyper', equations=equations)
sfepy.discrete.Problem
#!/usr/bin/env python r""" This example shows the use of the `dw_tl_he_genyeoh` hyperelastic term, whose contribution to the deformation energy density per unit reference volume is given by .. math:: W = K \, \left( \overline I_1 - 3 \right)^{p} where :math:`\overline I_1` is the first main invariant of the devia...
SimpleTimeSteppingSolver(ts, nls=nls, context=pb)
sfepy.solvers.ts_solvers.SimpleTimeSteppingSolver