Loading...
Searching...
No Matches
fem_utils.h
// Copyright (C) 2013, 2015, 2016 Johan Hake, Jan Blechta
//
// This file is part of DOLFIN.
//
// DOLFIN is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// DOLFIN is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
#ifndef __FEM_UTILS_H
#define __FEM_UTILS_H
#include <vector>
#include <dolfin/common/types.h>
namespace dolfin
{
// Forward declarations
class Mesh;
class FunctionSpace;
class Function;
class MeshGeometry;
std::vector<std::size_t> dof_to_vertex_map(const FunctionSpace& space);
std::vector<dolfin::la_index> vertex_to_dof_map(const FunctionSpace& space);
void set_coordinates(MeshGeometry& geometry, const Function& position);
void get_coordinates(Function& position, const MeshGeometry& geometry);
Mesh create_mesh(Function& coordinates);
}
#endif
dolfin::FunctionSpace
Definition FunctionSpace.h:54
dolfin::Function
Definition Function.h:66
dolfin::MeshGeometry
MeshGeometry stores the geometry imposed on a mesh.
Definition MeshGeometry.h:40
dolfin::Mesh
Definition Mesh.h:84
dolfin
Definition adapt.h:30
dolfin::dof_to_vertex_map
std::vector< std::size_t > dof_to_vertex_map(const FunctionSpace &space)
Definition fem_utils.cpp:32
dolfin::set_coordinates
void set_coordinates(MeshGeometry &geometry, const Function &position)
Definition fem_utils.cpp:267
dolfin::create_mesh
Mesh create_mesh(Function &coordinates)
Definition fem_utils.cpp:279
dolfin::get_coordinates
void get_coordinates(Function &position, const MeshGeometry &geometry)
Definition fem_utils.cpp:273
dolfin::vertex_to_dof_map
std::vector< dolfin::la_index > vertex_to_dof_map(const FunctionSpace &space)
Definition fem_utils.cpp:45