-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_body_force_8cc_source.html
128 lines (126 loc) · 13.6 KB
/
_body_force_8cc_source.html
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>adamantine: /home/bt2/Documents/adamantine_doc/doxygen/adamantine-master/source/BodyForce.cc Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">adamantine
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_b2f33c71d4aa5e7af42a1ca61ff5af1b.html">source</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">BodyForce.cc</div> </div>
</div><!--header-->
<div class="contents">
<a href="_body_force_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* SPDX-FileCopyrightText: Copyright (c) 2023 - 2024, the adamantine authors.</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception</span></div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>  </div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <<a class="code" href="_body_force_8hh.html">BodyForce.hh</a>></span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="preprocessor">#include <<a class="code" href="_material_property_8hh.html">MaterialProperty.hh</a>></span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="preprocessor">#include <<a class="code" href="instantiation_8hh.html">instantiation.hh</a>></span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>  </div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">namespace </span><a class="code" href="namespaceadamantine.html">adamantine</a></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> {</div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> dim, <span class="keywordtype">int</span> p_order, <span class="keyword">typename</span> MaterialStates,</div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>  <span class="keyword">typename</span> MemorySpaceType></div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="classadamantine_1_1_gravity_force.html#a995d578cd5475759714306618b6efaea"> 13</a></span> <a class="code" href="classadamantine_1_1_gravity_force.html#a995d578cd5475759714306618b6efaea">GravityForce<dim, p_order, MaterialStates, MemorySpaceType>::GravityForce</a>(</div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>  <a class="code" href="classadamantine_1_1_material_property.html">MaterialProperty<dim, p_order, MaterialStates, MemorySpaceType></a></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  &material_properties)</div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>  : _material_properties(material_properties)</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> {</div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> }</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> dim, <span class="keywordtype">int</span> p_order, <span class="keyword">typename</span> MaterialStates,</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  <span class="keyword">typename</span> MemorySpaceType></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> dealii::Tensor<1, dim, double></div>
<div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="classadamantine_1_1_gravity_force.html#a57e77709ea1d43bdb8c75fcbc4dfff12"> 23</a></span> <a class="code" href="classadamantine_1_1_gravity_force.html#a57e77709ea1d43bdb8c75fcbc4dfff12">GravityForce<dim, p_order, MaterialStates, MemorySpaceType>::eval</a>(</div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keyword">typename</span> dealii::Triangulation<dim>::active_cell_iterator <span class="keyword">const</span> &cell)</div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> {</div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>  <span class="comment">// Note that the density is independent of the temperature</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>  <span class="keywordtype">double</span> <a class="code" href="namespaceadamantine.html#aa5027312f0c48c4d12d5db86607b9ecfa35f3675343000d6bb5f10ce451a571a4">density</a> = _material_properties.get_mechanical_property(</div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>  cell, <a class="code" href="namespaceadamantine.html#aa5027312f0c48c4d12d5db86607b9ecfa03864907a9123f61c411aa972d7242d8">StateProperty::density_s</a>);</div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  dealii::Tensor<1, dim, double> body_force;</div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  body_force[<a class="code" href="structadamantine_1_1axis.html">axis<dim>::z</a>] = -<a class="code" href="namespaceadamantine.html#aa5027312f0c48c4d12d5db86607b9ecfa35f3675343000d6bb5f10ce451a571a4">density</a> * g;</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  </div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">return</span> body_force;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span> }</div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> } <span class="comment">// namespace adamantine</span></div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  </div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <a class="code" href="instantiation_8hh.html#a6e27b736fdb336a0f9b0718887969f8b">INSTANTIATE_DIM_PORDER_MATERIALSTATES_HOST</a>(<a class="code" href="instantiation_8hh.html#aea43e135b5e8953669a5702a9e234796">TUPLE</a>(GravityForce))</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <a class="code" href="instantiation_8hh.html#a5ce3c88df1424855d7cadaed52c6ec01">INSTANTIATE_DIM_PORDER_MATERIALSTATES_DEVICE</a>(<a class="code" href="instantiation_8hh.html#aea43e135b5e8953669a5702a9e234796">TUPLE</a>(GravityForce))</div>
<div class="ttc" id="a_body_force_8hh_html"><div class="ttname"><a href="_body_force_8hh.html">BodyForce.hh</a></div></div>
<div class="ttc" id="a_material_property_8hh_html"><div class="ttname"><a href="_material_property_8hh.html">MaterialProperty.hh</a></div></div>
<div class="ttc" id="aclassadamantine_1_1_gravity_force_html_a57e77709ea1d43bdb8c75fcbc4dfff12"><div class="ttname"><a href="classadamantine_1_1_gravity_force.html#a57e77709ea1d43bdb8c75fcbc4dfff12">adamantine::GravityForce::eval</a></div><div class="ttdeci">dealii::Tensor< 1, dim, double > eval(typename dealii::Triangulation< dim >::active_cell_iterator const &cell) final</div><div class="ttdef"><b>Definition:</b> <a href="_body_force_8cc_source.html#l00023">BodyForce.cc:23</a></div></div>
<div class="ttc" id="aclassadamantine_1_1_gravity_force_html_a995d578cd5475759714306618b6efaea"><div class="ttname"><a href="classadamantine_1_1_gravity_force.html#a995d578cd5475759714306618b6efaea">adamantine::GravityForce::GravityForce</a></div><div class="ttdeci">GravityForce(MaterialProperty< dim, p_order, MaterialStates, MemorySpaceType > &material_properties)</div><div class="ttdef"><b>Definition:</b> <a href="_body_force_8cc_source.html#l00013">BodyForce.cc:13</a></div></div>
<div class="ttc" id="aclassadamantine_1_1_material_property_html"><div class="ttname"><a href="classadamantine_1_1_material_property.html">adamantine::MaterialProperty</a></div><div class="ttdef"><b>Definition:</b> <a href="_material_property_8hh_source.html#l00038">MaterialProperty.hh:39</a></div></div>
<div class="ttc" id="ainstantiation_8hh_html"><div class="ttname"><a href="instantiation_8hh.html">instantiation.hh</a></div></div>
<div class="ttc" id="ainstantiation_8hh_html_a5ce3c88df1424855d7cadaed52c6ec01"><div class="ttname"><a href="instantiation_8hh.html#a5ce3c88df1424855d7cadaed52c6ec01">INSTANTIATE_DIM_PORDER_MATERIALSTATES_DEVICE</a></div><div class="ttdeci">#define INSTANTIATE_DIM_PORDER_MATERIALSTATES_DEVICE(TUPLE_0)</div><div class="ttdef"><b>Definition:</b> <a href="instantiation_8hh_source.html#l00050">instantiation.hh:50</a></div></div>
<div class="ttc" id="ainstantiation_8hh_html_a6e27b736fdb336a0f9b0718887969f8b"><div class="ttname"><a href="instantiation_8hh.html#a6e27b736fdb336a0f9b0718887969f8b">INSTANTIATE_DIM_PORDER_MATERIALSTATES_HOST</a></div><div class="ttdeci">#define INSTANTIATE_DIM_PORDER_MATERIALSTATES_HOST(TUPLE_0)</div><div class="ttdef"><b>Definition:</b> <a href="instantiation_8hh_source.html#l00040">instantiation.hh:40</a></div></div>
<div class="ttc" id="ainstantiation_8hh_html_aea43e135b5e8953669a5702a9e234796"><div class="ttname"><a href="instantiation_8hh.html#aea43e135b5e8953669a5702a9e234796">TUPLE</a></div><div class="ttdeci">#define TUPLE(class_name)</div><div class="ttdef"><b>Definition:</b> <a href="instantiation_8hh_source.html#l00022">instantiation.hh:22</a></div></div>
<div class="ttc" id="anamespaceadamantine_html"><div class="ttname"><a href="namespaceadamantine.html">adamantine</a></div><div class="ttdef"><b>Definition:</b> <a href="_beam_heat_source_properties_8hh_source.html#l00014">BeamHeatSourceProperties.hh:15</a></div></div>
<div class="ttc" id="anamespaceadamantine_html_aa5027312f0c48c4d12d5db86607b9ecfa03864907a9123f61c411aa972d7242d8"><div class="ttname"><a href="namespaceadamantine.html#aa5027312f0c48c4d12d5db86607b9ecfa03864907a9123f61c411aa972d7242d8">adamantine::StateProperty::density_s</a></div><div class="ttdeci">@ density_s</div></div>
<div class="ttc" id="anamespaceadamantine_html_aa5027312f0c48c4d12d5db86607b9ecfa35f3675343000d6bb5f10ce451a571a4"><div class="ttname"><a href="namespaceadamantine.html#aa5027312f0c48c4d12d5db86607b9ecfa35f3675343000d6bb5f10ce451a571a4">adamantine::StateProperty::density</a></div><div class="ttdeci">@ density</div></div>
<div class="ttc" id="astructadamantine_1_1axis_html"><div class="ttname"><a href="structadamantine_1_1axis.html">adamantine::axis</a></div><div class="ttdef"><b>Definition:</b> <a href="types_8hh_source.html#l00168">types.hh:168</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>