File: TSTHETA.html

package info (click to toggle)
petsc 3.2.dfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 124,660 kB
  • sloc: ansic: 342,250; cpp: 62,975; python: 32,761; fortran: 17,337; makefile: 15,867; xml: 621; objc: 594; sh: 492; java: 381; f90: 347; csh: 245
file content (59 lines) | stat: -rw-r--r-- 2,467 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>TSTHETA</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<A NAME="TSTHETA"><H1>TSTHETA</H1></A>
DAE solver using the implicit Theta method 
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
This method can be applied to DAE.
<P>
This method is cast as a 1-stage implicit Runge-Kutta method.
<P>
<PRE>
  Theta | Theta
  -------------
        |  1
</PRE>

<P>
For the default Theta=0.5, this is also known as the implicit midpoint rule.
<P>
<H3><FONT COLOR="#CC3333">When the endpoint variant is chosen, the method becomes a 2-stage method with first stage explicit</FONT></H3>
<P>
<PRE>
  0 | 0         0
  1 | 1-Theta   Theta
  -------------------
    | 1-Theta   Theta
</PRE>

<P>
For the default Theta=0.5, this is the trapezoid rule (also known as Crank-Nicolson, see <A HREF="../TS/TSCN.html#TSCN">TSCN</A>).
<P>
To apply a diagonally implicit RK method to DAE, the stage formula
<P>
<pre>
 Y_i = X + h sum_j a_ij Y'_j
</pre>
<P>
is interpreted as a formula for Y'_i in terms of Y_i and known stuff (Y'_j, j&lt;i)
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
  <A HREF="../TS/TSCreate.html#TSCreate">TSCreate</A>(), <A HREF="../TS/TS.html#TS">TS</A>, <A HREF="../TS/TSSetType.html#TSSetType">TSSetType</A>(), <A HREF="../TS/TSCN.html#TSCN">TSCN</A>, <A HREF="../TS/TSBEULER.html#TSBEULER">TSBEULER</A>, <A HREF="../TS/TSThetaSetTheta.html#TSThetaSetTheta">TSThetaSetTheta</A>(), <A HREF="../TS/TSThetaSetEndpoint.html#TSThetaSetEndpoint">TSThetaSetEndpoint</A>()
<BR>
<P>
<P><B><P><B><FONT COLOR="#CC3333">Level:</FONT></B>beginner
<BR><FONT COLOR="#CC3333">Location:</FONT></B><A HREF="../../../src/ts/impls/implicit/theta/theta.c.html#TSTHETA">src/ts/impls/implicit/theta/theta.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>
<P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
<A HREF="../../../src/ts/examples/tutorials/ex10.c.html">src/ts/examples/tutorials/ex10.c.html</A><BR>
<A HREF="../../../src/ts/examples/tutorials/ex14.c.html">src/ts/examples/tutorials/ex14.c.html</A><BR>
<A HREF="../../../src/ts/examples/tutorials/ex17.c.html">src/ts/examples/tutorials/ex17.c.html</A><BR>
<A HREF="../../../src/ts/examples/tutorials/ex2f.F.html">src/ts/examples/tutorials/ex2f.F.html</A><BR>
</BODY></HTML>