fe_compute_data.C
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
20 
21 namespace libMesh
22 {
23 
24 
25 
27 {
28  this->shape.clear();
29 #if defined(LIBMESH_ENABLE_INFINITE_ELEMENTS) && !defined(LIBMESH_USE_COMPLEX_NUMBERS)
30  this->phase = 0.;
31  this->speed = 0.;
32 #endif
33 
34 #if defined (LIBMESH_ENABLE_INFINITE_ELEMENTS) && defined(LIBMESH_USE_COMPLEX_NUMBERS)
35  this->speed = 0.;
36  this->frequency = 0.;
37 
38 #endif
39 }
40 
41 
42 
44 {
45  if (!(this->shape.empty()))
46  std::fill (this->shape.begin(), this->shape.end(), 0.);
47 
48 #if defined(LIBMESH_ENABLE_INFINITE_ELEMENTS) && !defined(LIBMESH_USE_COMPLEX_NUMBERS)
49  this->phase = 0.;
50 
52  this->speed = this->equation_systems.parameters.get<Real>("speed");
53 #endif
54 
55 #if defined (LIBMESH_ENABLE_INFINITE_ELEMENTS) && defined(LIBMESH_USE_COMPLEX_NUMBERS)
57  this->speed = this->equation_systems.parameters.get<Real>("speed");
58 
59  if (equation_systems.parameters.have_parameter<Real>("current frequency"))
60  this->frequency = this->equation_systems.parameters.get<Real>("current frequency");
61 
62 #endif
63 }
64 
65 
66 } // namespace libMesh

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:05 UTC

Hosted By:
SourceForge.net Logo