Toggle navigation
Documentation
Big picture
The finite element method
The data structure
Not-so-quick guide
Optimisation
Order of action functions
Example codes and tutorials
List of example codes and tutorials
Meshing
Solvers
MPI parallel processing
Post-processing/visualisation
Other
Change log
Creating documentation
Coding conventions
Index
FAQ
About
People
Contact/Get involved
Publications
Acknowledgements
Copyright
Picture show
Go
src
axisym_navier_stokes
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// Copyright (C) 2006-2025 Matthias Heil and Andrew Hazel
7
// LIC//
8
// LIC// This library is free software; you can redistribute it and/or
9
// LIC// modify it under the terms of the GNU Lesser General Public
10
// LIC// License as published by the Free Software Foundation; either
11
// LIC// version 2.1 of the License, or (at your option) any later version.
12
// LIC//
13
// LIC// This library is distributed in the hope that it will be useful,
14
// LIC// but WITHOUT ANY WARRANTY; without even the implied warranty of
15
// LIC// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
// LIC// Lesser General Public License for more details.
17
// LIC//
18
// LIC// You should have received a copy of the GNU Lesser General Public
19
// LIC// License along with this library; if not, write to the Free Software
20
// LIC// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21
// LIC// 02110-1301 USA.
22
// LIC//
23
// LIC// The authors may be contacted at oomph-lib@maths.man.ac.uk.
24
// LIC//
25
// LIC//====================================================================
26
27
// Config header
28
#ifdef HAVE_CONFIG_H
29
#include <oomph-lib-config.h>
30
#endif
31
32
33
// OOMPH-LIB headers
34
#include "
axisym_fluid_traction_elements.h
"
35
36
namespace
oomph
37
{
38
//=======================================================================
39
/// Namespace containing the zero traction function for axisymmetric
40
/// Navier Stokes traction elements
41
//=======================================================================
42
namespace
AxisymmetricNavierStokesTractionElementHelper
43
{
44
//=======================================================================
45
/// Default load function (zero traction)
46
//=======================================================================
47
void
Zero_traction_fct
(
const
double
& time,
48
const
Vector<double>
& x,
49
const
Vector<double>
& N,
50
Vector<double>
&
load
)
51
{
52
unsigned
n_dim
=
load
.
size
();
53
for
(
unsigned
i
= 0;
i
<
n_dim
;
i
++)
54
{
55
load
[
i
] = 0.0;
56
}
57
}
58
59
}
// namespace AxisymmetricNavierStokesTractionElementHelper
60
61
/////////////////////////////////////////////////////////////////////////
62
/////////////////////////////////////////////////////////////////////////
63
/////////////////////////////////////////////////////////////////////////
64
65
66
//=======================================================================
67
/// Namespace containing the default Strouhal number of axisymmetric
68
/// linearised FSI.
69
//=======================================================================
70
namespace
LinearisedFSIAxisymmetricNStNoSlipBCHelper
71
{
72
/// Default for fluid Strouhal number
73
double
Default_strouhal_number
= 1.0;
74
75
}
// namespace LinearisedFSIAxisymmetricNStNoSlipBCHelper
76
77
}
// namespace oomph
axisym_fluid_traction_elements.h
i
cstr elem_len * i
Definition
cfortran.h:603
oomph::FiniteElement::size
double size() const
Calculate the size of the element (length, area, volume,...) in Eulerian computational coordinates....
Definition
elements.cc:4320
oomph::TAdvectionDiffusionReactionElement
TAdvectionDiffusionReactionElement<NREAGENT,DIM,NNODE_1D> elements are isoparametric triangular DIM-d...
Definition
Tadvection_diffusion_reaction_elements.h:66
oomph::AxisymmetricNavierStokesTractionElementHelper::Zero_traction_fct
void Zero_traction_fct(const double &time, const Vector< double > &x, const Vector< double > &N, Vector< double > &load)
Default load function (zero traction)
Definition
axisym_fluid_traction_elements.cc:47
oomph::LinearisedFSIAxisymmetricNStNoSlipBCHelper::Default_strouhal_number
double Default_strouhal_number
Default for fluid Strouhal number.
Definition
axisym_fluid_traction_elements.cc:73
oomph
DRAIG: Change all instances of (SPATIAL_DIM) to (DIM-1).
Definition
advection_diffusion_elements.cc:30