annotate doc/presentation/Mox_30_01/fem-library.tex @ 205:17b92c718a2b

Presentation for the seminar at MOX
author gedeone-octave <marcovass89@hotmail.it>
date Thu, 30 Jan 2014 09:14:35 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
205
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
1 \documentclass[10pt]{beamer}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
2
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
3
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
4 \usetheme{Octave}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
5 \usepackage{thumbpdf}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
6 \usepackage{wasysym}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
7 \usepackage{ucs}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
8 \usepackage[utf8]{inputenc}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
9 \usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
10 \usepackage{verbatim}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
11 \usepackage{listings}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
12 \usepackage{attachfile}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
13 \usepackage{mathtools}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
14 \usepackage{parcolumns}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
15 \usepackage[framemethod=TikZ]{mdframed}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
16 \usepackage[strict]{changepage}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
17
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
18
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
19 \lstset{
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
20 language=C++,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
21 keywordstyle=\bfseries\ttfamily\color[rgb]{0,0,1},
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
22 identifierstyle=\ttfamily,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
23 commentstyle=\color[rgb]{0.133,0.545,0.133},
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
24 stringstyle=\ttfamily\color[rgb]{0.627,0.126,0.941},
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
25 showstringspaces=false,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
26 basicstyle=\scriptsize,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
27 numberstyle=\tiny,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
28 numbers=left,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
29 stepnumber=1,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
30 numbersep=10pt,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
31 tabsize=2,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
32 breaklines=true,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
33 prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}},
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
34 breakatwhitespace=false,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
35 aboveskip={1.5\baselineskip},
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
36 columns=fixed,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
37 upquote=true,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
38 extendedchars=true,
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
39 }
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
40
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
41
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
42
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
43
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
44 \title{Fem-fenics}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
45 \subtitle{Una libreria di elementi finiti per Octave}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
46 \author[Marco Vassallo]{\bf Marco Vassallo }
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
47 \date{30 Gennaio 2014}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
48 \begin{document}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
49
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
50 \frame[plain]{\titlepage}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
51
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
52 \section*{}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
53 \begin{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
54 \frametitle{Outline}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
55 \tableofcontents[section=2]
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
56 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
57
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
58 \AtBeginSection[]
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
59 {\frame<handout:0>{\frametitle{Outline}\tableofcontents[currentsection]}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
60
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
61 %\AtBeginSubsection[]
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
62 %{\frame<handout:0>{\frametitle{Outline}\tableofcontents[sectionstyle=show/hide,subsectionstyle=show/shaded/hide]}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
63
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
64 \newcommand<>{\highlighton}[1]{%
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
65 \alt#2{\structure{#1}}{{#1}}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
66
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
67 \newcommand{\icon}[1]{\pgfimage[height=1em]{#1}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
68
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
69
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
70
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
71 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
72 %%%%%%%%%% Content starts here %%%%%%%%%%
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
73 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
74
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
75 \section{Una libreria di elementi finiti per Octave}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
76 \subsection{Introduzione}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
77 \begin{frame}[fragile]{Why?}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
78 \begin{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
79 \item Non vi è una libreria generica in Octave (msh, fpl, bim, ..)
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
80 \item Lasciare all'utente la scelta di utilizzare il linguaggio che preferisce
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
81 \item Sfruttare le potenzialità di Octave per la risoluzione di sistemi lineari
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
82 e sistemi di o.d.e
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
83 \item Migliorare i punti deboli dell'interfaccia Python
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
84 \end{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
85
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
86 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
87
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
88 \begin{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
89 \frametitle{Installazione, Documentazione, Wiki, ...}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
90 \only<1>{
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
91 \texttt{pkg install fem-fenics -forge}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
92 \begin{center}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
93 \includegraphics[width=.9\linewidth]{inst.png}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
94 \end{center}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
95 }
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
96
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
97
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
98 \only<2>{
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
99 \url{http://wiki.octave.org/Fem-fenics}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
100 \begin{center}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
101 \includegraphics[width=.9\linewidth]{wiki.png}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
102 \end{center}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
103 }
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
104
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
105
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
106 \only<3>{
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
107 \url{http://octave.sourceforge.net/fem-fenics/overview.html}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
108 \begin{center}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
109 \includegraphics[width=.9\linewidth]{func.png}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
110 \end{center}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
111 }
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
112 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
113
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
114 \subsection{Esempi}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
115
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
116 \begin{frame}[fragile]{Poisson}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
117 \scriptsize
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
118 \only<1>{
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
119 \includegraphics[width=1.\linewidth]{pois.png}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
120
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
121 \only<2>{
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
122 \includegraphics[width=1.\linewidth]{pois2.png}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
123
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
124 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
125
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
126 \begin{frame}[fragile]{Navier Stokes}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
127 \scriptsize
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
128 \includegraphics[width=1.\linewidth]{ns.png}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
129 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
130
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
131 \begin{frame}[fragile]{Mixed Poisson}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
132 \scriptsize
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
133 \includegraphics[width=1.\linewidth]{mixed.png}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
134
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
135 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
136
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
137 \begin{frame}[fragile]{Elasticity}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
138 \scriptsize
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
139 \includegraphics[width=1.\linewidth]{hyper.png}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
140 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
141
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
142 \section{Implementazione}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
143
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
144 \begin{frame}[fragile]{Octave e C++}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
145 \begin{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
146 \item Octave è principalmente scritto in C++ (script, Fortran)
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
147 \item Octave offre un'interfaccia per includere codice C++ come ``dinamically linked extension''
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
148 \item Una volta compilato (\texttt{mkoctfile}) il codice può essere chiamato dall' ``interpreter'' come
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
149 ogni altra funzione
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
150 \item Octave offre la possibilità di aggiungere nuove classi all'``interpreter''
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
151 \end{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
152 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
153
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
154 \begin{frame}[fragile]{Il problema}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
155 \includegraphics[width=1.\linewidth]{octfem.png}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
156 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
157
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
158 \begin{frame}[fragile]{Class design}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
159 \only<1>{\lstinputlisting[language=C++,linerange=1-23,firstnumber=1]{./esempi/classe.cc}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
160 \only<2>{\lstinputlisting[language=C++,linerange=41-54,firstnumber=last]{./esempi/classe.cc}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
161 \only<3>{\lstinputlisting[language=C++,linerange=29-38,firstnumber=last]{./esempi/classe.cc}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
162 %\only<4>{\lstinputlisting[language=C++,linerange=57-72,firstnumber=last]{./esempi/classe.cc}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
163 \pause
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
164 %\attachfile[icon=Paperclip]{./esempi/classe.cc}{source code of the example}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
165 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
166
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
167 \begin{frame}[fragile]{Funzioni dinamiche in Octave}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
168 \only<1>{\lstinputlisting[language=C++,linerange=1-17,firstnumber=1]{./esempi/func.cc}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
169 \only<2>{\lstinputlisting[language=C++,linerange=18-29,firstnumber=last]{./esempi/func.cc}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
170 \pause
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
171 %\attachfile[icon=Paperclip]{./esempi/func.cc}{source code of the example}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
172 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
173
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
174 \begin{frame}[fragile]{Perchè abbiamo due file ?}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
175 Come funziona Fenics in C++
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
176 \begin{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
177 \item Problema risolto in due file: \texttt{Poisson.ufl} e \texttt{Poisson.cc}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
178 \item Problema astratto definito dall'utente nel file \texttt{Poisson.ufl} .
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
179 \item Il file viene compilato dall'utente e viene generato l'header \texttt{Poisson.h}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
180 \item \texttt{Poisson.h} contiene la definizione della classe Poisson e dei costruttori delle forme
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
181 (bi)lineari e dello spazio funzionale
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
182 \item L'header viene incluso nel file \texttt{Poisson.cc} e il problema risolto
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
183 \begin{lstlisting}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
184 #include "Poisson.h"
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
185 int main()
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
186 {
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
187 UnitSquareMesh mesh(32, 32);
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
188 Poisson::FunctionSpace V(mesh);
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
189 Poisson::BilinearForm a(V, V);
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
190 Poisson::LinearForm L(V);
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
191 ...
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
192 \end{lstlisting}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
193
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
194 \end{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
195 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
196
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
197 \begin{frame}[fragile]{Code on the fly}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
198 \lstinputlisting[language=C++,linerange=1-22,firstnumber=1]{./esempi/import_ufl_FunctionSpace.m}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
199 %\only<2>{\lstinputlisting[language=C++,linerange=1-32,firstnumber=1]{./esempi/generate_fs.m}}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
200 %\pause
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
201 %\attachfile[icon=Paperclip]{./esempi/func.cc}{source code of the example}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
202 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
203
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
204
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
205 \begin{frame}[fragile]{Code on the fly}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
206 \lstinputlisting[language=C++,linerange=1-22,firstnumber=1]{./esempi/generate_fs.m}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
207 %\attachfile[icon=Paperclip]{./esempi/func.cc}{source code of the example}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
208 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
209
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
210 \begin{frame}[fragile]{Implementzione}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
211 Altri aspetti implementativi descritti nella documentazione
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
212 \begin{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
213 \item Conversione da (p, e, t) a dolfin xml
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
214 \item Estensione del pkg msh con la funzione \texttt{mshm\_refine ()}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
215 \item Conversione da csc a csr
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
216 \item Polimorfismo (save, plot)
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
217 \item Autoconf, Automake e la generazione del pkg
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
218 \end{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
219 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
220
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
221 \begin{frame}[fragile]{Conclusione}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
222 La prima versione del pkg è stata rilasciata, ma ancora del
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
223 lavoro resta da fare
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
224 \begin{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
225 \item TODO sulla wiki
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
226 \item Aggiungere funzioni disponibili in Fenics
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
227 \item Estendere con nuovi esempi
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
228 \item Migliorare la gestione delle matrici
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
229 \item Controllare che tutto funzioni anche con le nuove versioni di Octave e Fenics
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
230 \item ...
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
231 \end{itemize}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
232 \end{frame}
17b92c718a2b Presentation for the seminar at MOX
gedeone-octave <marcovass89@hotmail.it>
parents:
diff changeset
233 \end{document}