File: TSBasicSymplectic.html

package info (click to toggle)
petsc 3.10.3%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 209,064 kB
  • sloc: ansic: 587,333; python: 29,696; makefile: 12,445; fortran: 11,626; f90: 9,677; cpp: 8,768; sh: 1,027; xml: 621; objc: 445; csh: 194; java: 13
file content (67 lines) | stat: -rw-r--r-- 2,797 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/TS/TSBasicSymplectic.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>TSBasicSymplectic</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
   <div id="version" align=right><b>petsc-3.10.3 2018-12-18</b></div>
   <div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.10.3 v3.10.3 docs/manualpages/TS/TSBasicSymplectic.html "><small>Report Typos and Errors</small></a></div>
<A NAME="TSBasicSymplectic"><H1>TSBasicSymplectic</H1></A>
ODE solver using basic symplectic integration schemes These methods are intened for separable Hamiltonian systems
<P>
<pre>
 qdot = dH(q,p,t)/dp
</pre>
<pre>
 pdot = -dH(q,p,t)/dq
</pre>
<P>
where the Hamiltonian can be split into the sum of kinetic energy and potential energy
<P>
<pre>
 H(q,p,t) = T(p,t) + V(q,t).
</pre>
<P>
As a result, the system can be genearlly represented by
<P>
<pre>
 qdot = f(p,t) = dT(p,t)/dp
</pre>
<pre>
 pdot = g(q,t) = -dV(q,t)/dq
</pre>
<P>
and solved iteratively with
<P>
<pre>
 q_new = q_old + d_i*h*f(p_old,t_old)
</pre>
<pre>
 t_new = t_old + d_i*h
</pre>
<pre>
 p_new = p_old + c_i*h*g(p_new,t_new)
</pre>
<pre>
 i=0,1,...,n.
</pre>
<P>
The solution vector should contain both q and p, which correspond to (generalized) position and momentum respectively. Note that the momentum component could simply be velocity in some representations.
The symplectic solver always expects a two-way splitting with the split names being "position" and "momentum". Each split is associated with an <A HREF="../IS/IS.html#IS">IS</A> object and a sub-<A HREF="../TS/TS.html#TS">TS</A> that is intended to store the user-provided RHS function.
<P>
Reference: wikipedia (https://en.wikipedia.org/wiki/Symplectic_integrator)
<P>

<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
  <A HREF="../TS/TSCreate.html#TSCreate">TSCreate</A>(), <A HREF="../TS/TSSetType.html#TSSetType">TSSetType</A>(), <A HREF="../TS/TSRHSSplitSetIS.html#TSRHSSplitSetIS">TSRHSSplitSetIS</A>(), <A HREF="../TS/TSRHSSplitSetRHSFunction.html#TSRHSSplitSetRHSFunction">TSRHSSplitSetRHSFunction</A>()
<BR>
<P>
<P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>beginner<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/ts/impls/symplectic/basicsymplectic/basicsymplectic.c.html#TSBasicSymplectic">src/ts/impls/symplectic/basicsymplectic/basicsymplectic.c</A>
<BR><A HREF="./index.html">Index of all TS routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>