A mathernatica program for the approximate analytical solution to a nonlinear undamped Duffing equation by a new approximate approach

被引:6
|
作者
Wu, DM [1 ]
Wang, ZC [1 ]
机构
[1] Shanghai Univ, Dept Phys, Shanghai 200436, Peoples R China
基金
中国国家自然科学基金;
关键词
undamped Duffing equation; approximate analytical solution; nonlinear second-order ordinary differential equation; high-accurate methods; nonlinear oscillator; harmonic balance method;
D O I
10.1016/j.cpc.2005.09.006
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
According to Mickens [R.E. Mickens, Comments on a Generalized Galerkin's method for non-linear oscillators, J. Sound Vib. 118 (1987) 563], the general HB (harmonic balance) method is an approximation to the convergent Fourier series representation of the periodic solution of a nonlinear oscillator and not an approximation to an expansion in terms of a small parameter. Consequently, for a nonlinear undamped Duffing equation with a driving force B cos(omega x), to find a periodic solution when the fundamental frequency is identical to omega, the corresponding Fourier series can be written as y(x) = Sigma(m)(n=1)a(n) cos[(2n - 1)omega x]. How to calculate the coefficients of the Fourier series efficiently with a computer program is still an open problem. For HB method, by substituting approximation y(x) into force equation, expanding the resulting expression into a trigonometric series, then letting the coefficients of the resulting lowest-order harmonic be zero, one can obtain approximate coefficients of approximation (x) [R.E. Mickens, Comments on a Generalized Galerkin's method for non-linear oscillators, J. Sound Vib. 118 (1987) 563]. But for nonlinear differential equations such as Duffing equation, it is very difficult to construct higher-order analytical approximations, because the HB method requires solving a set of algebraic equations for a large number of unknowns with very complex nonlinearities. To overcome the difficulty, forty years ago, Urabe derived a computational method for Duffing equation based on Galerkin procedure [M. Urabe, A. Reiter, Numerical computation of nonlinear forced oscillations by Galerkin's procedure, J. Math, Anal. Appl. 14 (1966) 107-140]. Dooren obtained an approximate solution of the Duffing oscillator with a special set of parameters by using Urabe's method [R. van Dooren, Stabilization of Cowell's classic finite difference method for numerical integration, J. Comput. Phys. 16 (1974) 186-192]. In this paper, in the frame of the general HB method, we present a new iteration algorithm to calculate the coefficients of the Fourier series. By using this new method, the iteration procedure starts with a (x) cos(cox) + b(x) sin(cox), and the accuracy may be improved gradually by determining new coefficients a(1), a(2).... will be produced automatically in an one-by-one manner. In all the stage of calculation, we need only to solve a cubic equation. Using this new algorithm, we develop a Mathematica program, which demonstrates following main advantages over the previous HB method: (1) it avoids solving a set of associate nonlinear equations; (2) it is easier to be implemented into a computer program, and produces a highly accurate solution with analytical expression efficiently. It is interesting to find that, generally, for a given set of parameters, a nonlinear Duffing equation can have three independent oscillation modes. For some sets of the parameters, it can have two modes with complex displacement and one with real displacement. But in some cases, it can have three modes, all of them having real displacement. Therefore, we can divide the parameters into two classes, according to the solution property: there is only one mode with real displacement and there are three modes with real displacement. This program should be useful to Study the dynamically periodic behavior of a Duffing oscillator and can provide an approximate analytical solution with high-accuracy for testing the error behavior of newly developed numerical methods with a wide range of parameters. Program summary Title of program: AnalyDuffing.nb Catalogue identifier: ADWR_v1_0 Program summary URL: http://cpc.cs.qub.ac.uk/summaries/ADWR_v1_0 Program obtainable from: CPC Program Library, Queen's University of Belfast, N. Ireland Licensing provisions: none Computer for which the program is designed and others on which it has been tested: the program has been designed for a microcomputer and been tested on the microcomputer. Computers: IBM PC Installations: the address(es) of your computer(s) Operating systems under which the program has been tested: Windows XP Programming language used: Software Mathematica 4.2, 5.0 and 5.1 No. of lines in distributed program, including test data, etc.: 23 663 No. of bytes in distributed program, including test data, etc.: 152 321 Distribution formal: tar.gz Memory required to execute with typical data: 51712 Bytes No. of bits in a word: No. of processors used: 1 Has the code been vectorized?: no Peripherals used: no Program Library subprograms used: no Nature of physical problem: To find an approximate solution with analytical expressions for the undamped nonlinear Duffing equation with periodic driving force when the fundamental frequency is identical to the driving force. Method of solution: In the frame of the general HB method, by using a new iteration algorithm to calculate the coefficients of the Fourier series, we can obtain an approximate analytical solution with high-accuracy efficiently. Restrictions on the complexity of the problem: For problems, which have a large driving frequency, the convergence may be a little slow, because more iterative times are needed. Typical running time: several seconds Unusual features of the program: For an undamped Duffing equation, it can provide all the solutions or the oscillation modes with real displacement for any interesting parameters, for the required accuracy, efficiently. The program can be used to study the dynamically periodic behavior of a nonlinear oscillator, and can provide a high-accurate approximate analytical solution for developing high-accurate numerical method. (c) 2005 Published by Elsevier B.V.
引用
收藏
页码:447 / 463
页数:17
相关论文
共 50 条
  • [31] Analytical and Approximate Solutions of the Nonlinear Gas Dynamic Equation Using a Hybrid Approach
    Nadeem, Muhammad
    Ali, Mouad M. H.
    JOURNAL OF MATHEMATICS, 2023, 2023
  • [32] Analytical solution of nonlinear soft spring Duffing equation
    Shi, Jing
    Hao, Ji-Ping
    Chang'an Daxue Xuebao (Ziran Kexue Ban)/Journal of Chang'an University (Natural Science Edition), 2008, 28 (03): : 108 - 110
  • [33] A new method of solving the best approximate solution for a nonlinear fractional equation
    Du, Hong
    Yang, Xinyue
    Chen, Zhong
    INTERNATIONAL JOURNAL OF COMPUTER MATHEMATICS, 2023, 100 (08) : 1702 - 1718
  • [34] Analytical Approach for the Approximate Solution of Harry Dym Equation with Caputo Fractional Derivative
    Nadeem, Muhammad
    Li, Zitian
    Alsayyad, Yahya
    MATHEMATICAL PROBLEMS IN ENGINEERING, 2022, 2022
  • [35] An approximate analytical solution of Richards equation with finite boundary
    Chen, Xi
    Dai, Ying
    BOUNDARY VALUE PROBLEMS, 2017,
  • [36] Approximate analytical solution of the flood routing equation in reservoirs
    Ramírez, AI
    Aldama, AA
    INGENIERIA HIDRAULICA EN MEXICO, 2001, 16 (04): : 71 - 77
  • [37] Highly Accurate Analytical Approximate Solutions to Mixed-Parity Duffing Equation
    Sun, W. P.
    Miao, K. L.
    Yu, Y. P.
    Lim, C. W.
    INTERNATIONAL JOURNAL OF APPLIED MECHANICS, 2021, 13 (05)
  • [38] AN APPROXIMATE ANALYTICAL SOLUTION FOR THE REACTION CONVECTION DIFFUSION EQUATION
    YEE, E
    PHYSICS LETTERS A, 1990, 151 (6-7) : 295 - 302
  • [39] An approximate analytical solution of Richards equation with finite boundary
    Xi Chen
    Ying Dai
    Boundary Value Problems, 2017
  • [40] Approximate analytical solution of the Boussinesq equation with numerical validation
    Hogarth, WL
    Parlange, JY
    Parlange, MB
    Lockington, D
    WATER RESOURCES RESEARCH, 1999, 35 (10) : 3193 - 3197