File: TSTHETA.html

package info (click to toggle)
petsc 3.4.2.dfsg1-8.1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 129,104 kB
  • ctags: 516,422
  • sloc: ansic: 395,939; cpp: 47,201; python: 34,788; makefile: 17,193; fortran: 16,251; f90: 1,592; objc: 954; sh: 822; xml: 621; java: 381; lisp: 293; csh: 241
file content (77 lines) | stat: -rw-r--r-- 3,374 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
68
69
70
71
72
73
74
75
76
77
<!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/TSTHETA.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>TSTHETA</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
   <div id="version" align=right><b>petsc-3.4.2 2013-07-02</b></div>
<A NAME="TSTHETA"><H1>TSTHETA</H1></A>
DAE solver using the implicit Theta method 
<P>
<H3><FONT COLOR="#CC3333">Options Database</FONT></H3>
-ts_theta_theta &lt;Theta&gt; - Location of stage (0&lt;Theta&lt;=1)
-ts_theta_extrapolate &lt;flg&gt; Extrapolate stage solution from previous solution (sometimes unstable)
-ts_theta_endpoint &lt;flag&gt; - Use the endpoint (like Crank-Nicholson) instead of midpoint form of the Theta method
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
<pre>
 -ts_type theta -ts_theta_theta 1.0 corresponds to backward Euler (<A HREF="../TS/TSBEULER.html#TSBEULER">TSBEULER</A>)
</pre>
<pre>
 -ts_type theta -ts_theta_theta 0.5 corresponds to the implicit midpoint rule
</pre>
<pre>
 -ts_type theta -ts_theta_theta 0.5 -ts_theta_endpoint corresponds to Crank-Nicholson (<A HREF="../TS/TSCN.html#TSCN">TSCN</A>)
</pre>
<P>
<P>
<P>
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 values (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>