Loading...
Searching...
No Matches
assemble.h
// Copyright (C) 2007-2015 Anders Logg
//
// 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/>.
//
// Modified by Garth N. Wells, 2008-2013.
// Modified by Johan Hake, 2009.
// Modified by Joachim B. Haga, 2012.
// Modified by Martin S. Alnaes, 2013.
// Modified by Cecile Daversin-Catty, 2018.
//
// This file duplicates the Assembler::assemble* and
// SystemAssembler::assemble* functions in namespace dolfin, and adds
// special versions returning the value directly for scalars. For
// documentation, refer to Assemble.h and SystemAssemble.h
#ifndef __ASSEMBLE_H
#define __ASSEMBLE_H
#include <memory>
#include <vector>
namespace dolfin
{
class DirichletBC;
class Form;
class GenericMatrix;
class GenericTensor;
class GenericVector;
template<typename T> class MeshFunction;
class MultiMeshForm;
void assemble(GenericTensor& A, const Form& a);
void assemble_mixed(GenericTensor& A, const Form& a, bool add=false);
void assemble_system(GenericMatrix& A, GenericVector& b,
const Form& a, const Form& L,
std::vector<std::shared_ptr<const DirichletBC>> bcs);
void assemble_system(GenericMatrix& A, GenericVector& b,
const Form& a, const Form& L,
std::vector<std::shared_ptr<const DirichletBC>> bcs,
const GenericVector& x0);
void assemble_multimesh(GenericTensor& A, const MultiMeshForm& a);
//--- Specialized version for scalars ---
double assemble(const Form& a);
double assemble_mixed(const Form& a, bool add=false);
double assemble_multimesh(const MultiMeshForm& a);
}
#endif
dolfin::DirichletBC
Interface for setting (strong) Dirichlet boundary conditions.
Definition DirichletBC.h:125
dolfin::Form
Base class for UFC code generated by FFC for DOLFIN with option -l.
Definition Form.h:86
dolfin::GenericMatrix
This class defines a common interface for matrices.
Definition GenericMatrix.h:47
dolfin::GenericTensor
A common interface for arbitrary rank tensors.
Definition GenericTensor.h:49
dolfin::GenericVector
This class defines a common interface for vectors.
Definition GenericVector.h:48
dolfin::MeshFunction
Definition MeshFunction.h:58
dolfin::MultiMeshForm
Definition MultiMeshForm.h:41
dolfin
Definition adapt.h:30
dolfin::assemble_mixed
void assemble_mixed(GenericTensor &A, const Form &a, bool add=false)
Assemble tensor.
Definition assemble.cpp:38
dolfin::assemble_system
void assemble_system(GenericMatrix &A, GenericVector &b, const Form &a, const Form &L, std::vector< std::shared_ptr< const DirichletBC > > bcs)
Assemble system (A, b) and apply Dirichlet boundary conditions.
Definition assemble.cpp:45
dolfin::assemble_multimesh
void assemble_multimesh(GenericTensor &A, const MultiMeshForm &a)
Assemble tensor from multimesh form.
Definition assemble.cpp:64
dolfin::assemble
void assemble(GenericTensor &A, const Form &a)
Assemble tensor.
Definition assemble.cpp:32