MATLAB and C Programming for Trefftz Finite Element Methods 1st Edition Qing-Hua Qin pdf download
MATLAB and C Programming for Trefftz Finite Element Methods 1st Edition Qing-Hua Qin pdf download
https://ebookultra.com/download/matlab-and-c-programming-
for-trefftz-finite-element-methods-1st-edition-qing-hua-qin/
https://ebookultra.com/download/introduction-to-finite-and-spectral-
element-methods-using-matlab-second-edition-pozrikidis/
https://ebookultra.com/download/smoothed-finite-element-methods-1st-
edition-liu/
https://ebookultra.com/download/hybrid-and-incompatible-finite-
element-methods-1st-edition-theodore-h-h-pian/
https://ebookultra.com/download/higher-order-finite-element-methods-
with-cdrom-pavel-solin/
The Finite Element Method for Fluid Dynamics Sixth Edition
O. C. Zienkiewicz
https://ebookultra.com/download/the-finite-element-method-for-fluid-
dynamics-sixth-edition-o-c-zienkiewicz/
https://ebookultra.com/download/finite-element-methods-parallel-
sparse-statics-and-eigen-solutions-1st-edition-duc-thai-nguyen/
https://ebookultra.com/download/stochastic-structural-dynamics-
application-of-finite-element-methods-1st-edition-cho-w-s-to/
https://ebookultra.com/download/the-finite-element-method-for-
electromagnetic-modeling-1st-edition-gerard-meunier/
https://ebookultra.com/download/essentials-of-the-finite-element-
method-for-mechanical-and-structural-engineers-1st-edition-pavlou/
MATLAB and C Programming for Trefftz Finite
Element Methods 1st Edition Qing-Hua Qin Digital
Instant Download
Author(s): Qing-Hua Qin, Hui Wang
ISBN(s): 9781420072754, 1420072757
Edition: 1
File Details: PDF, 3.62 MB
Year: 2008
Language: english
© 2009 by Taylor & Francis Group, LLC
© 2009 by Taylor & Francis Group, LLC
Qing-Hua Qin
Australian National University
Acton, Australia
Hui Wang
Henan University of Technology
Zhengzhou City, China
MATLAB® and Simulink® are trademarks of MathWorks, Inc. and are used with permission. The MathWorks does
not warrant the accuracy of the text or exercises in this book. This book’s use or discussion of MATLAB® and
Simulink® software or related products does not constitute endorsement or sponsorship by the MathWorks of a
particular pedagogical approach or particular use of the MATLAB® and Simulink® software.
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have
been made to publish reliable data and information, but the author and publisher cannot assume responsibility
for the validity of all materials or the consequences of their use. The authors and publishers have attempted to
trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if
permission to publish in this form has not been obtained. If any copyright material has not been acknowledged
please write and let us know so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or
utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including
photocopying, microfilming, and recording, or in any information storage or retrieval system, without written
permission from the publishers.
For permission to photocopy or use material electronically from this work, please access www.copyright.com
(http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Dan-
vers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that provides licenses and registration for a
variety of users. For organizations that have been granted a photocopy license by the CCC, a separate system of
payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only
for identification and explanation without intent to infringe.
Qin, Qing-Hua.
Matlab and C programming for Trefftz finite element methods / Qing-Hua Qin and Hui
Wang.
p. cm.
Includes bibliographical references and index.
ISBN 978-1-4200-7275-4 (alk. paper)
1. Finite element method--Data processing. 2. MATLAB. 3. C (Computer program
language) I. Wang, Hui, 1976- II. Title.
TA347.F5Q248 2008
518’.2502855268--dc22 2008013045
The Hybrid-Trefftz finite element method, employing a class of finite elements asso-
ciated with the Trefftz method, is a hybrid method which includes the use of an aux-
iliary inter-element displacement or traction frame to link the internal displacement
fields of the elements. These internal fields, chosen so as to a priori satisfy the gov-
erning differential equations, have conveniently been represented as the sum of a par-
ticular integral of non-homogeneous equations and a suitably truncated T-complete
set of regular homogeneous solutions (the series of the homogeneous solution to
the differential governing equation) multiplied by undetermined coefficients. Inter-
element continuity is enforced by using a modified variational principle together with
an independent frame field defined on each element boundary. Formulation of the
element, during which the internal parameters are eliminated at the element level,
in the end leads to the standard force-displacement relationship, with a symmetric
positive definite stiffness matrix. In contrast to conventional conforming finite ele-
ment methods, the main advantages of the Trefftz finite element method are (a) the
formulation calls for integration along the element boundaries only, which enables
arbitrary polygonal or even curve-sided elements to be generated; (b) the method
is likely to represent the optimal expansion bases for hybrid-type elements where
inter-element continuity need not be satisfied a priori, which is particularly impor-
tant for generating a quasi-conforming plate bending element; and (c) the method
offers the attractive possibility of developing accurate crack singular, corner or per-
forated elements, simply by using appropriate known local solution functions as the
trial functions of the intra-element displacements.
Research to date on the Trefftz finite element method has resulted in the publica-
tion of a great deal of new information and has given us a powerful computational
tool in the analysis of plane elasticity, thin and thick plate bending, Poisson’s equa-
tion, heat conduction, and piezoelectric materials. Articles on this subject have been
published in a wide range of journals, attracting the attention of both researchers
and practitioners with backgrounds in the mechanics of solids, applied physics, ap-
plied mathematics, mechanical engineering and materials science. Up to the present,
however, no extensive, detailed computer programming treatment of this subject has
been available, which significantly hinders the development and application of this
new method in practical engineering. Although there is an enormous gulf between
the basic theory and a working computer code, no textbooks have been devoted pri-
marily to the programming aspects of the method. It now appears timely to collect
significant information and to present a unified computer programming treatment of
these useful but scattered results. Those results should be made available to profes-
sional engineers, research scientists, workers and students in applied mechanics and
∗ For
product information, please contact: The MathWorks, Inc., 3 Apple Hill Drive, Natick,
MA 01760-2098, Tel: 508-647-7000, Fax: 508-647-7001, E-mail: [email protected], Web:
www.mathworks.com.
3 C programming 53
3.1 Data types, variable declaration and operators . . . . . . . . . . . 53
3.1.1 Data types . . . . . . . . . . . . . . . . . . . . . . . . . . 53
3.1.2 Variable declaration . . . . . . . . . . . . . . . . . . . . . 54
3.1.3 Operators . . . . . . . . . . . . . . . . . . . . . . . . . . 56
3.2 Control structures . . . . . . . . . . . . . . . . . . . . . . . . . . 57
3.2.1 if-else structure . . . . . . . . . . . . . . . . . . . . . 57
3.2.2 switch-case structure . . . . . . . . . . . . . . . . . 58
3.2.3 for loop . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3.2.4 while loop . . . . . . . . . . . . . . . . . . . . . . . . . 60
3.2.5 Jump control commands . . . . . . . . . . . . . . . . . . 61
3.3 Advanced array and pointer action . . . . . . . . . . . . . . . . . 61
3.3.1 Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
3.3.2 Pointers . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
3.3.3 Pointers and arrays . . . . . . . . . . . . . . . . . . . . . 63
3.3.4 Initialisation of array and storage management . . . . . . 63
3.4 Functions and parameter transfer . . . . . . . . . . . . . . . . . . 64
3.4.1 Types of functions . . . . . . . . . . . . . . . . . . . . . 64
3.4.2 Function call and parameter transfer . . . . . . . . . . . . 66
3.5 File manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . 68
3.5.1 Open and close a file . . . . . . . . . . . . . . . . . . . . 68
3.5.2 Input data from a file . . . . . . . . . . . . . . . . . . . . 69
3.5.3 Output data to a file . . . . . . . . . . . . . . . . . . . . . 69
3.6 Create and execute C codes in visual C++ platform . . . . . . . . 69
3.6.1 Creating a project . . . . . . . . . . . . . . . . . . . . . . 70
3.6.2 Creating a C source file . . . . . . . . . . . . . . . . . . . 70
3.6.3 Compile, build and execute a C program . . . . . . . . . . 72
3.6.4 Output result . . . . . . . . . . . . . . . . . . . . . . . . 73
3.7 Common library functions and related head files . . . . . . . . . . 73
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
σi j, j + bi = 0 in Ω (1.1)
where σi j is the stress tensor, a comma followed by an index denotes partial differ-
entiation with respect to that index, bi is body force vector, Ω is the solution domain,
and the Einstein summation convention over repeated indices is used. For a linear
elastic solid, the constitutive relation is
∂ Π (εi j )
σi j = = ci jkl εkl (1.2)
∂ εi j
for εi j as basic variable, and
∂ Ψ (σi j )
εi j = = si jkl σkl (1.3)
∂ σi j
for σi j as basic variable, where ci jkl and si jkl are stiffness and compliance coeffi-
cient tensors, respectively, εi j is the elastic strain tensor, Π and Ψ are, respectively,
potential energy and complementary energy functions, which are defined by
1
Π (εi j ) = ci jkl εi j εkl (1.4)
2
and
1
Ψ (σi j ) = si jkl σi j σkl (1.5)
2
The relation between strain tensor and displacement component, ui , is given by
1
εi j = (ui, j + u j,i) (1.6)
2
The boundary conditions of the boundary value problem (BVP) (1.1) - (1.6) are
given by:
ui = ūi on Γu (1.7)
ti = σi j n j = t¯i on Γt (1.8)
where ūi and t¯i are, respectively, prescribed boundary displacement and traction vec-
tor, a bar above a symbol denotes prescribed value, and Γ = Γu + Γt is the boundary
of the solution domain Ω.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com