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
Get it
Installation guide
Get code from subversion repository
Get code as tar file
Copyright
About
People
Contact/Get involved
Publications
Acknowledgements
Picture show
Go
src
generic
line_mesh.h
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
// Common base class for all LineMeshes
31
32
#ifndef OOMPH_LINEMESH_HEADER
33
#define OOMPH_LINEMESH_HEADER
34
35
// Config header generated by autoconfig
36
#ifdef HAVE_CONFIG_H
37
#include <oomph-lib-config.h>
38
#endif
39
40
41
#ifdef OOMPH_HAS_MPI
42
//mpi headers
43
#include "mpi.h"
44
#endif
45
46
// oomph-lib includes
47
#include "
Vector.h
"
48
#include "
nodes.h
"
49
#include "
matrices.h
"
50
#include "
mesh.h
"
51
52
namespace
oomph
53
{
54
55
//======================================================================
56
/// Base class for line meshes (meshes made of 1D line elements)
57
//======================================================================
58
class
LineMeshBase
:
public
virtual
Mesh
59
{
60
61
public
:
62
63
/// Constructor (empty)
64
LineMeshBase
() {}
65
66
/// Broken copy constructor
67
LineMeshBase
(
const
LineMeshBase
& node)
68
{
69
BrokenCopy::broken_copy
(
"LineMeshBase"
);
70
}
71
72
/// Broken assignment operator
73
void
operator=
(
const
LineMeshBase
&)
74
{
75
BrokenCopy::broken_assign
(
"LineMeshBase"
);
76
}
77
78
/// Destructor (empty)
79
virtual
~LineMeshBase
() {}
80
81
/// Set up lookup schemes which establish which elements are located
82
/// next to mesh's boundaries (wrapper to suppress doc)
83
void
setup_boundary_element_info
()
84
{
85
std::ofstream outfile;
86
setup_boundary_element_info
(outfile);
87
}
88
89
/// \short Set up lookup schemes which establish which elements are
90
/// located next to mesh's boundaries. Doc in outfile (if it's open).
91
void
setup_boundary_element_info
(std::ostream &outfile);
92
93
};
94
95
}
// End of namespace
96
97
#endif
98
matrices.h
oomph::BrokenCopy::broken_copy
void broken_copy(const std::string &class_name)
Issue error message and terminate execution.
Definition:
oomph_utilities.cc:107
oomph::LineMeshBase::setup_boundary_element_info
void setup_boundary_element_info()
Definition:
line_mesh.h:83
mesh.h
oomph::LineMeshBase::operator=
void operator=(const LineMeshBase &)
Broken assignment operator.
Definition:
line_mesh.h:73
oomph
Definition:
advection_diffusion_elements.cc:33
oomph::LineMeshBase
Base class for line meshes (meshes made of 1D line elements)
Definition:
line_mesh.h:58
Vector.h
nodes.h
oomph::LineMeshBase::LineMeshBase
LineMeshBase()
Constructor (empty)
Definition:
line_mesh.h:64
oomph::BrokenCopy::broken_assign
void broken_assign(const std::string &class_name)
Issue error message and terminate execution.
Definition:
oomph_utilities.cc:90
oomph::LineMeshBase::~LineMeshBase
virtual ~LineMeshBase()
Destructor (empty)
Definition:
line_mesh.h:79
oomph::LineMeshBase::LineMeshBase
LineMeshBase(const LineMeshBase &node)
Broken copy constructor.
Definition:
line_mesh.h:67
oomph::Mesh
A general mesh class.
Definition:
mesh.h:74