MCPcopy Create free account

hub / github.com/Jianxun-Wang/graphGalerkin / functions

Functions233 in github.com/Jianxun-Wang/graphGalerkin

↓ 113 callersFunctionis_type
Check type of obj against type_or_str Input arguments --------------- obj : type type_or_str : type or str Admissible s
pycamotk/pyCaMOtk/check.py:39
↓ 50 callersFunctionDouble
(A)
source/TensorFEMCore.py:357
↓ 42 callersFunctionlast_chance0
(maru)
source/GCNNModel.py:289
↓ 21 callersMethodsqrt
(s)
pycamotk/pyCaMOtk/estr.py:18
↓ 21 callersFunctionvisualize_fem
(ax,msh,udg=[], opts={}, which_bnd=[])
pycamotk/pyCaMOtk/visualize_fem.py:9
↓ 17 callersFunctionReshapeFix
(input, Shape,order='F')
source/TensorFEMCore.py:346
↓ 16 callersFunctionget_dim_polysp
Dimension of polynomial space Polynomial spaces P : {x1**i1 + x2**i2 + ... | i1+ i2+ ... <= PORDER} Q : {x1**i1 + x2**i2 + .
pycamotk/pyCaMOtk/poly_mltdim.py:43
↓ 14 callersFunctiontensprod_vector_unif
Return the entries of the vector tensor product of the arrays in vlst. Input arguments --------------- v0 : iterable of str or n
pycamotk/pyCaMOtk/tens_core.py:228
↓ 11 callersMethodeval_basis_functions
(self,z,zk0=None)
pycamotk/pyCaMOtk/lfcnsp.py:152
↓ 10 callersFunctionstradd
Return string that represents the sum of a, b. Input may be str or number. Option to simpilfy the resulting expression using sympy.
pycamotk/pyCaMOtk/str_core.py:83
↓ 9 callersFunctionlinidx_from_mltidx
Get the linear index into a d-dimensional array with dimensions dims from an index into each dimension. Fortran ordering, negative indices
pycamotk/pyCaMOtk/tens_core.py:37
↓ 9 callersFunctionmltidx_from_linidx
Get the index into each dimension of a d-dimensional array with dimensions dims from the linear index. Fortran ordering, negative indices
pycamotk/pyCaMOtk/tens_core.py:71
↓ 8 callersFunctione2vcg2connectivity
e2vcg should be in np.array
source/GCNNModel.py:8
↓ 8 callersFunctionstrdiv
Return string that represents the quotient of a, b. Input may be str or number. Option to simpilfy the resulting expression using sympy.
pycamotk/pyCaMOtk/str_core.py:136
↓ 8 callersFunctionstrmul
Return string that represents the product of a, b. Input may be str or number. Option to simpilfy the resulting expression using sympy.
pycamotk/pyCaMOtk/str_core.py:115
↓ 7 callersMethodgetmsh
(self)
pycamotk/pyCaMOtk/create_mesh_hcube.py:88
↓ 6 callersMethodcheck_permissible_target
Utility to check if target is permissible Input arguments --------------- wtarg : str Target name to check
pycamotk/pyCaMOtk/bookkeep.py:65
↓ 6 callersFunctionget_number_pderivs
Get the (cumulative) number of partial derivatives of a function in NDIM variables when taking up to and including NDERIV derivatives
pycamotk/pyCaMOtk/poly_mltdim.py:15
↓ 6 callersFunctionlast_chance1
(maru)
source/GCNNModel.py:297
↓ 6 callersFunctionndist_onedim
Compute one-dimensional nodal distribution over interval [-1, 1] (wrapper) Input arguments --------------- nv : int Number
pycamotk/pyCaMOtk/ndist_onedim.py:94
↓ 6 callersFunctionsimplify_sympy
Simplify expression str or iterable of str using Sympy
pycamotk/pyCaMOtk/str_core.py:33
↓ 6 callersFunctionsmrt_paren
Surround string in parentheses, only if contents contain operation (+, -, *, /, ^)
pycamotk/pyCaMOtk/str_core.py:58
↓ 6 callersFunctionsolve_fem_GCNN
Wrapper
source/TensorFEMCore.py:177
↓ 6 callersFunctiontensprod_scalar
Return the entries of the scalar tensor product of the arrays in vlst. If len(vlst) = ndim, then the shape of the scalar tensor product i
pycamotk/pyCaMOtk/tens_core.py:106
↓ 5 callersFunctionstrheavi
Return string that represents Heavidside(a). Input may be str or number.
pycamotk/pyCaMOtk/str_core.py:197
↓ 4 callersFunctioneval_poly_nodal_mltdim_lagr_tensprod
Evaluate Lagrangian polynomial basis functions in multiple variables and derivatives from 1D nodal coordinates (XK0) and evaluation points
pycamotk/pyCaMOtk/poly_mltdim.py:256
↓ 4 callersFunctioneval_poly_nodal_onedim_lagr
Evaluate Lagrangian polynomial basis functions and derivatives from nodal coordinates (XK) and evaluation points (X) Input arguments
pycamotk/pyCaMOtk/poly_onedim.py:199
↓ 4 callersMethodfind
Return index and target of entry in database Input arguments --------------- mu : iterable of number Param
pycamotk/pyCaMOtk/bookkeep.py:134
↓ 4 callersFunctionget_monom_coeffs_expnts_onedim
Get the coefficients and exponents of the monomials basis up to degree PORDER and their derivatives. Monomial basis 0th deriv: {
pycamotk/pyCaMOtk/poly_onedim.py:4
↓ 4 callersFunctionqrule_mltdim_hcube
Quadrature rule for hypercube [-1, 1]^ndim Input arguments --------------- ndim : int Number of spatial dimensions nq0
pycamotk/pyCaMOtk/qrule_mltdim.py:86
↓ 4 callersFunctionqrule_mltdim_simp
Quadrature rule for simplex [0, 1]^ndim Input arguments --------------- ndim : int Number of spatial dimensions nq0 :
pycamotk/pyCaMOtk/qrule_mltdim.py:118
↓ 4 callersFunctionsolve_fem
(fespc, transf_data, elem, elem_data,ldof2gdof_eqn, ldof2gdof_var, e2e, spmat, dbc,Uf0,tol,m
pycamotk/pyCaMOtk/solve_fem.py:10
↓ 3 callersMethod__init__
(self,split)
source/GCNNModel.py:41
↓ 3 callersMethodadd
Add parameter and corresponding targets to database. Robust to case that mu has already been seen. Input arguments -
pycamotk/pyCaMOtk/bookkeep.py:88
↓ 3 callersFunctionanalyticalPossion
(xcg,Tc,Tb=0)
source/FEM_ForwardModel.py:13
↓ 3 callersFunctioneval_monom_onedim
Evaluate monomials and derivatives given coefficients, exponents, and evaluation points. Input arguments --------------- coeffs
pycamotk/pyCaMOtk/poly_onedim.py:49
↓ 3 callersFunctionparen
Surround string or list of strings in parentheses
pycamotk/pyCaMOtk/str_core.py:46
↓ 3 callersFunctionqrule_onedim_gl
Compute Gauss-Legrendre quadruatre rule, i.e., Gaussian quadrature corresponding to Legendre orthogonal polynomials. Legrendre polynomia
pycamotk/pyCaMOtk/qrule_onedim.py:48
↓ 3 callersFunctionqrule_onedim_gll
Compute Gauss-Legrendre-Lobatto quadruatre rule, i.e., Gaussian quadrature corresponding to Legendre orthogonal polynomials, including [-1, 1
pycamotk/pyCaMOtk/qrule_onedim.py:81
↓ 3 callersFunctionstrunop
Return string that represents the unary operation to a, i.e., op(a). Input may be str or number. Option to simplify the resulting expression
pycamotk/pyCaMOtk/str_core.py:176
↓ 3 callersFunctiontensprod_scalar_unif
Return the entries of the scalar tensor product of the array v0 with itself N times. Input arguments --------------- v0 : iterab
pycamotk/pyCaMOtk/tens_core.py:147
↓ 3 callersFunctiontensprod_vector
Return the entries of the vector tensor product of the arrays in vlst. If len(vlst) = ndim, then the shape of the vector tensor product i
pycamotk/pyCaMOtk/tens_core.py:190
↓ 2 callersMethodcheck
Check if entry in database exists Input arguments --------------- mu : iterable of number Parameter to che
pycamotk/pyCaMOtk/bookkeep.py:165
↓ 2 callersMethodcheck_target
Check if specific target corresponding to parameter mu exists in database Input arguments --------------- mu
pycamotk/pyCaMOtk/bookkeep.py:318
↓ 2 callersFunctioncompute_deriv_monom_mltdim
Compute derivatives of multidimensional monomials Input arguments --------------- coeffs0 : ndarray (nb,) Coefficients of mono
pycamotk/pyCaMOtk/poly_mltdim.py:90
↓ 2 callersMethodcountall_target
Count number of parameters with specific target Input arguments --------------- wtarg : str Target to extr
pycamotk/pyCaMOtk/bookkeep.py:244
↓ 2 callersFunctioncreate_fem_resjac
(fespc,Uf,transf_data,elem,elem_data, ldof2gdof_eqn,ldof2gdof_var,e2e,spmat,dbc)
pycamotk/pyCaMOtk/create_fem_resjac.py:8
↓ 2 callersFunctioncreate_fem_resjac
Create global residual(loss) and jacobian of conservation law in CG
source/TensorFEMCore.py:33
↓ 2 callersFunctioncreate_geom_mltdim_hcube
Create geometry and nodes of a high-order hypercube [-1, 1]^ndim; same number of nodes and nodal distribution in all dimensions. Reference: https:
pycamotk/pyCaMOtk/geom_mltdim.py:74
↓ 2 callersFunctioncreate_ndarray_of_estr
Create Numpy ndarray (type: estr, shape: dims) from iterable of strings (strlst).
pycamotk/pyCaMOtk/estr.py:88
↓ 2 callersMethodeval_elem_basis
(self,z,nc,lfcnsp)
pycamotk/pyCaMOtk/create_elem_strct.py:31
↓ 2 callersMethodeval_elem_basis
(self,z,nc1,lfcnsp1,nc2,lfcnsp2)
pycamotk/pyCaMOtk/create_elem_strct.py:81
↓ 2 callersFunctioneval_monom_mltdim
Evaluate monomials and derivatives given coefficients, exponents, and evaluation points. Input arguments --------------- coeffs
pycamotk/pyCaMOtk/poly_mltdim.py:221
↓ 2 callersFunctioneval_poly_nodal_onedim_vander
Evaluate (generalized) nodal polynomial basis functions and derivatives from nodal coordinates (XK) and evaluation points (X) Input
pycamotk/pyCaMOtk/poly_onedim.py:300
↓ 2 callersFunctionfd_1deriv_dir
First-order directional derivative of f about x in the direction dx Df(x; dx) = (alpha/eps)*(sum_k beta[k]*f(x+gamma[k]*eps*dx)) + O(eps^
pycamotk/pyCaMOtk/findiff.py:62
↓ 2 callersMethodfind_target
Find target in database Input arguments --------------- mu : iterable of number Parameter to find in datab
pycamotk/pyCaMOtk/bookkeep.py:187
↓ 2 callersFunctionget_gdof_from_bndtag
(ldof,bndtag,ndof_per_node,ldof2gdof,e2bnd,f2v)
pycamotk/pyCaMOtk/mesh.py:248
↓ 2 callersFunctionget_monom_coeffs_expnts_mltdim
Get the coefficients and exponents of the monomials basis of a polynomial space and their derivatives. Input arguments -------------
pycamotk/pyCaMOtk/poly_mltdim.py:139
↓ 2 callersFunctionget_strides
Get strides into a d-dimensional array with dimensions dims such that the (i0, i1, i2, ...) entry is the kth linear entry (Fortran order)
pycamotk/pyCaMOtk/tens_core.py:8
↓ 2 callersFunctionintg_elem_claw_extface
(Ue,transf_data,elem,elem_data,e)
pycamotk/pyCaMOtk/intg_elem_claw_extface.py:5
↓ 2 callersFunctionintg_elem_claw_vol
(Ue,transf_data,elem,elem_data,e)
pycamotk/pyCaMOtk/intg_elem_claw_vol.py:5
↓ 2 callersFunctioninvert_idx_array
Invert an array of indices (x2y -> y2x), in general, y2x will be a list of iterable because of potential for unstructured. Input arguments -----
pycamotk/pyCaMOtk/geom_mltdim.py:45
↓ 2 callersFunctionis_within_bounds
Check if mltidx is a valid index into an array with dimensions dims (0-based) Input arguments --------------- dims : int or iter
pycamotk/pyCaMOtk/check.py:4
↓ 2 callersFunctionndist_mltdim_hcube
Compute nodal distribution over hypercube [-1, 1]^d; same number of nodes and nodal distribution in all dimensions. Input arguments
pycamotk/pyCaMOtk/ndist_mltdim.py:7
↓ 2 callersFunctionndist_mltdim_simp
Compute nodal distribution over simplex [0, 1]^d; same number of nodes and nodal distribution in all dimensions (restricted to simplex).
pycamotk/pyCaMOtk/ndist_mltdim.py:33
↓ 2 callersFunctionqrule_onedim
Wrapper for quadrature rules implemented Input arguments --------------- n : int Number of quadrature nodes qrule : str
pycamotk/pyCaMOtk/qrule_onedim.py:128
↓ 2 callersFunctionstrpow
Return string that represents the a^b. Input may be str or number. Option to simplify the resulting expression using sympy.
pycamotk/pyCaMOtk/str_core.py:162
↓ 2 callersFunctionstrsub
Return string that represents the difference of a, b. Input may be str or number. Option to simpilfy the resulting expression using sympy.
pycamotk/pyCaMOtk/str_core.py:104
↓ 1 callersMethod__add__
(self, x)
pycamotk/pyCaMOtk/estr.py:20
↓ 1 callersMethod__init__
(self, ndim, porder, ndist0='unif')
pycamotk/pyCaMOtk/geom_mltdim.py:312
↓ 1 callersMethod__itruediv__
(self, x)
pycamotk/pyCaMOtk/estr.py:61
↓ 1 callersMethod__mul__
(self, x)
pycamotk/pyCaMOtk/estr.py:28
↓ 1 callersMethod__rtruediv__
(self, x)
pycamotk/pyCaMOtk/estr.py:46
↓ 1 callersMethod__sub__
(self, x)
pycamotk/pyCaMOtk/estr.py:24
↓ 1 callersMethod__truediv__
(self, x)
pycamotk/pyCaMOtk/estr.py:34
↓ 1 callersMethodalign_face_quad_with_neighbors
(self, e2e, xqf)
pycamotk/pyCaMOtk/mesh.py:162
↓ 1 callersFunctionassemble_nobc_mat
(Me,cooidx,lmat2gmat)
pycamotk/pyCaMOtk/assemble_nobc_mat.py:4
↓ 1 callersFunctionassemble_nobc_mat
Assembly global jacobian of conservation law (currently no use)
source/TensorFEMCore.py:137
↓ 1 callersFunctionassemble_nobc_mat_dg
(Me,cooidx,lmat2gmat)
pycamotk/pyCaMOtk/assemble_nobc_mat.py:15
↓ 1 callersFunctionassemble_nobc_vec
(Fe,ldof2gdof_eqn)
pycamotk/pyCaMOtk/assemble_nobc_vec.py:4
↓ 1 callersFunctionassemble_nobc_vec
Assembly global residual of conservation law (!!very useful!!)
source/TensorFEMCore.py:150
↓ 1 callersMethodbndstvcflux
(self,nbcnbr,UQ,pars,x,n)
pycamotk/pyCaMOtk/LinearEllipticScalarBaseHandcode.py:34
↓ 1 callersMethodbndstvcflux
(self,nbcnbr,UQ,pars,x,n)
source/setup_prob_eqn_handcode.py:81
↓ 1 callersFunctioncreate_geom_mltdim_simplex
(ndim,porder,ndist0)
pycamotk/pyCaMOtk/geom_mltdim.py:187
↓ 1 callersMethodcreate_transf_data_ndim
(self,geom,xcg,e2vcg,e2bnd,e2e)
pycamotk/pyCaMOtk/mesh.py:101
↓ 1 callersMethodcurrent
Get index of current (last) entry in database Example ------- >> idx = self.current()
pycamotk/pyCaMOtk/bookkeep.py:345
↓ 1 callersFunctioneval_advec_base_handcode_bndstvc_intr_bndflux_pars
(UQ,pars,x,n)
pycamotk/pyCaMOtk/AdvectionBaseHandcode.py:69
↓ 1 callersFunctioneval_advec_base_handcode_bndstvcflux
(nbcnbr,UQ,pars,x,n)
pycamotk/pyCaMOtk/AdvectionBaseHandcode.py:27
↓ 1 callersFunctioneval_advec_base_handcode_numflux_upwind
(UQi,parsI,UQo,parsO,x,n)
pycamotk/pyCaMOtk/AdvectionBaseHandcode.py:47
↓ 1 callersFunctioneval_advec_base_handcode_rankhug
(UQi,parsI,UQo,parsO,x,n)
pycamotk/pyCaMOtk/AdvectionBaseHandcode.py:92
↓ 1 callersFunctioneval_advec_base_handcode_srcflux
(UQ,pars,x)
pycamotk/pyCaMOtk/AdvectionBaseHandcode.py:31
↓ 1 callersFunctioneval_advec_base_handcode_srcflux_local
(UQ,pars,X)
pycamotk/pyCaMOtk/AdvectionBaseHandcode.py:23
↓ 1 callersFunctioneval_ins_base_handcode_bndstvc_intr_bndflux_pars
(UQ,pars,x,n)
pycamotk/pyCaMOtk/setup_ins_base_handcode.py:60
↓ 1 callersFunctioneval_ins_base_handcode_bndstvc_intr_bndflux_pars
(UQ,pars,x,n)
source/setup_prob_eqn_handcode.py:239
↓ 1 callersFunctioneval_ins_base_handcode_srcflux
(UQ,pars,x)
pycamotk/pyCaMOtk/setup_ins_base_handcode.py:34
↓ 1 callersFunctioneval_ins_base_handcode_srcflux
(UQ,pars,x)
source/setup_prob_eqn_handcode.py:201
↓ 1 callersFunctioneval_linelast_base_handcode_bndstvc_intr_bndflux_pars
(UQ,pars,x,n)
pycamotk/pyCaMOtk/LinearElasticityHandCode.py:30
↓ 1 callersFunctioneval_linelast_base_handcode_bndstvc_intr_bndflux_pars
(UQ,pars,x,n)
source/setup_prob_eqn_handcode.py:155
↓ 1 callersFunctioneval_linelast_base_handcode_srcflux
(UQ, pars, x)
pycamotk/pyCaMOtk/LinearElasticityHandCode.py:41
↓ 1 callersFunctioneval_linelast_base_handcode_srcflux
(UQ, pars, x)
source/setup_prob_eqn_handcode.py:127
next →1–100 of 233, ranked by callers