NimbleSM
NimbleSM is a solid mechanics simulation code for dynamic systems
Loading...
Searching...
No Matches
src
contact
serial
serial_contact_manager.h
Go to the documentation of this file.
1
/*
2
//@HEADER
3
// ************************************************************************
4
//
5
// NimbleSM
6
// Copyright 2018
7
// National Technology & Engineering Solutions of Sandia, LLC (NTESS)
8
//
9
// Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government
10
// retains certain rights in this software.
11
//
12
// Redistribution and use in source and binary forms, with or without
13
// modification, are permitted provided that the following conditions are
14
// met:
15
//
16
// 1. Redistributions of source code must retain the above copyright
17
// notice, this list of conditions and the following disclaimer.
18
//
19
// 2. Redistributions in binary form must reproduce the above copyright
20
// notice, this list of conditions and the following disclaimer in the
21
// documentation and/or other materials provided with the distribution.
22
//
23
// 3. Neither the name of the Corporation nor the names of the
24
// contributors may be used to endorse or promote products derived from
25
// this software without specific prior written permission.
26
//
27
// THIS SOFTWARE IS PROVIDED BY NTESS "AS IS" AND ANY EXPRESS OR IMPLIED
28
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
29
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
30
// NO EVENT SHALL NTESS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
32
// TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
//
38
// Questions? Contact David Littlewood (djlittl@sandia.gov)
39
//
40
// ************************************************************************
41
//@HEADER
42
*/
43
44
#ifndef NIMBLE_SERIAL_CONTACT_MANAGER_H
45
#define NIMBLE_SERIAL_CONTACT_MANAGER_H
46
47
#include "
nimble_contact_manager.h
"
48
49
namespace
nimble
{
50
class
SerialContactManager
:
public
ContactManager
51
{
52
public
:
53
SerialContactManager
(std::shared_ptr<ContactInterface> interface,
nimble::DataManager
& data_manager);
54
55
void
56
ComputeContactForce
(
int
step,
bool
debug_output,
nimble::Viewify<2>
contact_force)
override
57
{
58
ComputeSerialContactForce
(step, debug_output, contact_force);
59
}
60
61
virtual
void
62
ComputeSerialContactForce
(
int
step,
bool
debug_output,
nimble::Viewify<2>
contact_force) = 0;
63
64
private
:
65
};
66
}
// namespace nimble
67
68
#endif
// NIMBLE_SERIAL_CONTACT_MANAGER_H
nimble::ContactManager::ContactManager
ContactManager(std::shared_ptr< ContactInterface > interface, nimble::DataManager &data_manager)
Constructor.
Definition
nimble_contact_manager.cc:179
nimble::DataManager
Definition
nimble_data_manager.h:70
nimble::SerialContactManager::ComputeSerialContactForce
virtual void ComputeSerialContactForce(int step, bool debug_output, nimble::Viewify< 2 > contact_force)=0
nimble::SerialContactManager::ComputeContactForce
void ComputeContactForce(int step, bool debug_output, nimble::Viewify< 2 > contact_force) override
Compute the contact force.
Definition
serial_contact_manager.h:56
nimble::SerialContactManager::SerialContactManager
SerialContactManager(std::shared_ptr< ContactInterface > interface, nimble::DataManager &data_manager)
Definition
serial_contact_manager.cc:49
nimble::Viewify
Definition
nimble_view.h:72
nimble
Definition
kokkos_contact_manager.h:49
nimble_contact_manager.h
Generated by
1.13.2