Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103734360
on__lattice_8hh_source.tex
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Mar 4, 09:38
Size
2 KB
Mime Type
text/x-tex
Expires
Thu, Mar 6, 09:38 (2 d)
Engine
blob
Format
Raw Data
Handle
24652327
Attached To
rDLMA Diffusion limited mixed aggregation
on__lattice_8hh_source.tex
View Options
\hypertarget{on__lattice_8hh_source}{}\doxysection{on\+\_\+lattice.\+hh}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#include "{}simulation\_box.hh"{}}}
\DoxyCodeLine{2 }
\DoxyCodeLine{3 \textcolor{preprocessor}{\#ifndef ON\_LATTICE\_H}}
\DoxyCodeLine{4 \textcolor{preprocessor}{\#define ON\_LATTICE\_H}}
\DoxyCodeLine{5 }
\DoxyCodeLine{6 \textcolor{keyword}{namespace }simulation\{}
\DoxyCodeLine{7 }
\DoxyCodeLine{8 \textcolor{keyword}{template} <\textcolor{keyword}{typename} type>}
\DoxyCodeLine{9 \textcolor{keyword}{class }\mbox{\hyperlink{classsimulation_1_1on__lattice}{on\_lattice}}: \textcolor{keyword}{public} \mbox{\hyperlink{classsimulation_1_1simulation__box}{simulation\_box}}<type>\{}
\DoxyCodeLine{10 }
\DoxyCodeLine{11 \textcolor{keyword}{public}:}
\DoxyCodeLine{12 }
\DoxyCodeLine{13 \mbox{\hyperlink{classsimulation_1_1on__lattice}{on\_lattice}}(\textcolor{keyword}{const} \textcolor{keywordtype}{int} dim, type *box\_lengths, std::vector<\mbox{\hyperlink{classsimulation_1_1boundary__conditions}{boundary\_conditions<type>}}*> system\_bc);}
\DoxyCodeLine{14 \mbox{\hyperlink{classsimulation_1_1on__lattice}{\string~on\_lattice}}();}
\DoxyCodeLine{15 }
\DoxyCodeLine{16 type get\_refill(type x, \textcolor{keywordtype}{int} axis);}
\DoxyCodeLine{17 type get\_L(\textcolor{keyword}{const} \textcolor{keywordtype}{int} axis);}
\DoxyCodeLine{18 }
\DoxyCodeLine{19 \textcolor{keywordtype}{void} add\_particle\_to\_cell(\textcolor{keyword}{const} \textcolor{keywordtype}{int} \textcolor{keywordtype}{id}, type *pos);}
\DoxyCodeLine{20 \textcolor{keywordtype}{void} remove\_particle\_from\_cell(\textcolor{keyword}{const} \textcolor{keywordtype}{int} \textcolor{keywordtype}{id}, type *pos);}
\DoxyCodeLine{21 \textcolor{keywordtype}{int} get\_particle\_id(type *pos);}
\DoxyCodeLine{22 }
\DoxyCodeLine{23 std::vector<int> get\_neighbour\_list(type *pos);}
\DoxyCodeLine{24 }
\DoxyCodeLine{25 \textcolor{keywordtype}{int} get\_periodicity(\textcolor{keyword}{const} \textcolor{keywordtype}{int} axis);}
\DoxyCodeLine{26 }
\DoxyCodeLine{27 \textcolor{keyword}{private}:}
\DoxyCodeLine{28 }
\DoxyCodeLine{29 std::vector<boundary\_conditions<type>*> box\_bc;}
\DoxyCodeLine{30 type *L;}
\DoxyCodeLine{31 \textcolor{keywordtype}{int} *L\_eff;}
\DoxyCodeLine{32 \textcolor{keywordtype}{int} *grid;}
\DoxyCodeLine{33 \textcolor{keywordtype}{int} counter;}
\DoxyCodeLine{34 \textcolor{keywordtype}{int} D;}
\DoxyCodeLine{35 std::vector<int> neighbours;}
\DoxyCodeLine{36 type *temp\_pos;}
\DoxyCodeLine{37 type *neighbour\_pos;}
\DoxyCodeLine{38 \textcolor{keywordtype}{int} *periodic;}
\DoxyCodeLine{39 }
\DoxyCodeLine{40 }
\DoxyCodeLine{41 \};}
\DoxyCodeLine{42 }
\DoxyCodeLine{43 }
\DoxyCodeLine{44 \}}
\DoxyCodeLine{45 }
\DoxyCodeLine{46 \textcolor{preprocessor}{\#endif}}
\end{DoxyCode}
Event Timeline
Log In to Comment