Although the Trefftz finite element method (FEM) has become a powerful computational tool in the analysis of plane elasticity, thin and thick plate bending, Poisson's equation, heat conduction, and piezoelectric materials, there are few books that offer a comprehensive computer programming treatment of the subject. Collecting results scattered in t
Collecting results scattered in the literature, this book provides the detailed MATLAB and C programming processes in applications of the Trefftz FEM to potential and elastic problems. It presents MATLAB and C subroutines for inputting data and outputting results, Gaussian integration, generating shape functions, assembling an elemental stiffness matrix, introducing boundary conditions, and solving global stiffness equations. The authors also address advanced topics, such as the construction of Trefftz p-elements, dimensionless transformation, and an alternative formulation to HT FEM. They include numerous numerical examples as well as a CD-ROM with MATLAB and C codes.