Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100381144
ntn_contact_solvercallback.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Jan 30, 09:15
Size
2 KB
Mime Type
text/x-c++
Expires
Sat, Feb 1, 09:15 (2 d)
Engine
blob
Format
Raw Data
Handle
23959361
Attached To
rAKA akantu
ntn_contact_solvercallback.hh
View Options
/**
* Copyright (©) 2010-2023 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* This file is part of Akantu
*
* Akantu 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.
*
* Akantu 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 Akantu. If not, see <http://www.gnu.org/licenses/>.
*/
/* -------------------------------------------------------------------------- */
#include "ntn_base_contact.hh"
#include "ntn_contact.hh"
#include "ntn_base_friction.hh"
#include "solid_mechanics_model.hh"
/* -------------------------------------------------------------------------- */
#ifndef AKANTU_NTN_CONTACT_SOLVERCALLBACK_HH_
#define AKANTU_NTN_CONTACT_SOLVERCALLBACK_HH_
/* -------------------------------------------------------------------------- */
namespace
akantu
{
class
NTNContactSolverCallback
:
public
InterceptSolverCallback
{
public
:
NTNContactSolverCallback
(
SolidMechanicsModel
&
solid
,
const
ID
&
slave
,
const
ID
&
master
,
Int
surface_normal_dir
,
Real
time_step_factor
);
public
:
/// implementation of SolverCallback::assembleResidual
void
assembleResidual
()
override
;
const
SynchronizedArray
<
Real
>
&
getContactPressure
(){
return
this
->
contact
->
getContactPressure
();}
Int
getNbContactNodes
(){
return
this
->
contact
->
getNbContactNodes
();}
private
:
/// model for the solid mechanics part of the coupling
SolidMechanicsModel
&
solid
;
/// model for the contact part of the node to node algorithm
std
::
shared_ptr
<
NTNContact
>
contact
;
/// model for the contact part of the node to node algorithm
std
::
shared_ptr
<
NTNBaseContact
>
base_contact
;
/// model for the contact part of the node to node algorithm
std
::
shared_ptr
<
NTNBaseFriction
>
friction
;
};
}
// namespace akantu
#endif
/* AKANTU_NTN_CONTACT_SOLVERCALLBACK_HH_ */
Event Timeline
Log In to Comment