Triangle class for Diffusion
Coordinate-free formulation for a bi-linear diffusion triangle.
Theory
Coordinate mapping:
Definition of covariant and dual base vectors:
The dual base for the 0-direction of the triangle coordinates:
Leads to the following expression for the gradient of the scalar potential function:
Nodal forces
Nodal tangent stiffness
Parent class
See also
Class doc
- class femedu.elements.diffusion.Triangle.Triangle(node0, node1, node2, material)
class: representing a 3-node triangle for diffusion problems
- computeSurfaceLoads()
compute surface loads using faces
This method should be called during
updateState()
by every element supporting surface loads
- mapGaussPoints(var)
Initiate mapping of Gauss-point values to nodes. This method is an internal method and should not be called by the user. Calling that method explicitly will cause faulty nodal values.
- Parameters:
var – variable code for a variable to be mapped from Gauss-points to nodes
- resetLoads()
default implementation for resetting element loads.
- setSurfaceLoad(face, qn)
face ID
nodes defining that face
0
node 0
tonode 1
1
node 1
tonode 2
2
node 2
tonode 0
- Parameters:
face – face ID for the loaded face
qn – magnitude of distributed heat flux \(q_n\). Influx on a surface is positive.
- updateState()