axisym_fluid_traction_elements.cc
Go to the documentation of this file.
1 //LIC// ====================================================================
2 //LIC// This file forms part of oomph-lib, the object-oriented,
3 //LIC// multi-physics finite-element library, available
4 //LIC// at http://www.oomph-lib.org.
5 //LIC//
6 //LIC// Version 1.0; svn revision $LastChangedRevision$
7 //LIC//
8 //LIC// $LastChangedDate$
9 //LIC//
10 //LIC// Copyright (C) 2006-2016 Matthias Heil and Andrew Hazel
11 //LIC//
12 //LIC// This library is free software; you can redistribute it and/or
13 //LIC// modify it under the terms of the GNU Lesser General Public
14 //LIC// License as published by the Free Software Foundation; either
15 //LIC// version 2.1 of the License, or (at your option) any later version.
16 //LIC//
17 //LIC// This library is distributed in the hope that it will be useful,
18 //LIC// but WITHOUT ANY WARRANTY; without even the implied warranty of
19 //LIC// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 //LIC// Lesser General Public License for more details.
21 //LIC//
22 //LIC// You should have received a copy of the GNU Lesser General Public
23 //LIC// License along with this library; if not, write to the Free Software
24 //LIC// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
25 //LIC// 02110-1301 USA.
26 //LIC//
27 //LIC// The authors may be contacted at oomph-lib@maths.man.ac.uk.
28 //LIC//
29 //LIC//====================================================================
30 
31 // Config header generated by autoconfig
32 #ifdef HAVE_CONFIG_H
33 #include <oomph-lib-config.h>
34 #endif
35 
36 
37 //OOMPH-LIB headers
39 
40 namespace oomph
41 {
42 
43 
44 //=======================================================================
45 /// Namespace containing the zero traction function for axisymmetric
46 /// Navier Stokes traction elements
47 //=======================================================================
48 namespace AxisymmetricNavierStokesTractionElementHelper
49  {
50 
51  //=======================================================================
52  /// Default load function (zero traction)
53  //=======================================================================
54  void Zero_traction_fct(const double& time,
55  const Vector<double> &x,
56  const Vector<double>& N,
57  Vector<double>& load)
58  {
59  unsigned n_dim=load.size();
60  for (unsigned i=0;i<n_dim;i++) {load[i]=0.0;}
61  }
62 
63  }
64 
65 /////////////////////////////////////////////////////////////////////////
66 /////////////////////////////////////////////////////////////////////////
67 /////////////////////////////////////////////////////////////////////////
68 
69 
70 //=======================================================================
71 /// Namespace containing the default Strouhal number of axisymmetric
72 /// linearised FSI.
73 //=======================================================================
74 namespace LinearisedFSIAxisymmetricNStNoSlipBCHelper
75  {
76 
77  /// Default for fluid Strouhal number
79 
80  }
81 
82 }
void Zero_traction_fct(const double &time, const Vector< double > &x, const Vector< double > &N, Vector< double > &load)
Default load function (zero traction)
cstr elem_len * i
Definition: cfortran.h:607
double Default_strouhal_number
Default for fluid Strouhal number.