Professional Documents
Culture Documents
EFG
EFG
Lx
Ly
P ' maximum force
E
poisson
b ' body force
D ' material matrix plane stress
meshless decrete constants
nx
ny
d ' relative smoothing length ( relate to efg method)
pn ' monomials (relate to EFG theory)
nG ' quadrature point
Bcutype ' type of applying displacement boundary type
DispNodesType ' nodal distribution type random or pattern
n ' number of nodes
dx ' horizontal distance between nodes
dy ' verital distance nodes
mx ' cells along width
my ' no of cells veritial
m ' total cell number
if bcutype == 1 'intergration method of applying displacement boundary
mbl = my ' no of cell along left edge
mblc = 0 ' collocated boundary particles along left edge
me' essential boundary condition nodes
else ' collocated method
"dont care much"
end
position domain for final solution
snx ' no of nodes in x direction for which the solution is calculated
sny ' no of nodes in y
sn ' total number of nodes by snx sny
dsx ' hor distance between solution nodes
dsy ' ver distance
create nodes
for i run throught no of nodes time
create nodes(i).x ' node coordinates matrix
create nodes(i).nen ' neightboring nodes of each node
end
Create solution nodes
for i run throught all solution nodes
create solnodes(i).x ' coordinate
create neightboring nodes of each solution nodes ( of nodes of s
olution node)
create matrix nx ny location
end
create internal background cells
for i run through all cells
create cells(i).x ' coor of cells center??
create cells(i).dx ' wid, height of cell center
intergration point
Jacobian matrix
for j run through all intergration points ( do the intergral)
cell(i).int(j).x ' coordinate of intergration point
create neightboring nodes of each intergration points
create weight values matrix of each intergration point
create body force vector
end
end
boundary type
for i run all boundary cells
if i smaller than mbl (cells at left edge)
bcell(i).BC = 1 ' essential boundary condition
else
bcells(i).Bc =2 ' traction
end
end
gauss quadrature in general coordinates
(t,w)=comgauss(no of quaddrature point in each cells)
interal cells coor, intergration point and weight
for i run mx cells
for j run my cells
cell center coordinate
wid and height of each cells
x1 = cell center x - dx/2
x2 = cell center x + dx/2
y1 = cell center y - dy/2
y2 = cell center y + dy/2
Gcx = 1/2(x2+X1);Gmx = 1/2(X2-x1)
Gcy =..;Gmy=..
J = Gmx.Gmy ( jacobi)
for k run no of quadrature point of each cell
for l run no quadrature point of each cell
coordinate of internal point
weight = weight k . weight l
cv = b (body force vector)??
end
end
end
end
Boudary cell coordinate, intergration points and weights
for i run all boundary cells
if dieu kien cua cell i la 1(essential boundary condition)
coordinate of boundari cells center
wid and height
two neightboring elelements
x1 = -bcells(i).dx/2
x2 = +bcells(i).dx/2
Gcx = 1/2(x2+x1);Gmx=1/2*(x2-x1)
Jacobi = Gmx
for k run all quadrature point
coordinate of internal point
weight of internal point
N = interpolation purpose
bv ??
end
else if BC = 2' traction boundary condition
the same procedure but traction boundary condition is ta
ken from analytical solution of the problem
end
end
find intergration points in influence domain of nodes
for j run all cells
for k run all intergration point
neighboring nodes = nodelabel()
if len neighboring node < 5
ag=1 (re run the loop)
end
end
end
find neighbor of nodes
for i run all nodes
neightbor of node.
end
find neightbor node of solution nodes
for i run all solution nodes
end
end of while (with ag=0 or aq<>1)
---------------------------------------------------------------------------------------------------------------------------------------------------------------EFG function
(ug,errornorm,compliance,time1,time2,time3) = EFG(finderrornorm)
Assembly K matrix and f vector internal cells
K matrix 2nx2n ( 2 times no of nodes)
f matrix 2nx1 ( vector of 2times no of nodes)
for ic run all cell
for ip run all intergration point of cell
B = matrix 3x...
F = 2... vector
en
[phi,dphix,dphiy] = MLSShape(...)