Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions inputFiles/frictionDriver/frictionDriver_Coulomb.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" ?>

<Problem>
<!-- SPHINX_TASK -->
<Tasks>
<FrictionDriver
name="frictionDriver"
friction="fractureContact0"
jumpControl="jFunction"
xTiltAngle="80"
tractionControl="tFunction"
steps="10"
output="FrictionDriver.txt" />
</Tasks>
<!-- SPHINX_TASK_END -->

<Included>
<File name="./frictionDriver_base.xml"/>
</Included>
</Problem>
62 changes: 62 additions & 0 deletions inputFiles/frictionDriver/frictionDriver_base.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?xml version="1.0" ?>

<Problem>
<!-- SPHINX_EVENTS -->
<Events
maxTime="1">
<SoloEvent
name="frictionDriver"
target="/Tasks/frictionDriver"/>
</Events>
<!-- SPHINX_EVENTS_END -->

<Constitutive>
<Coulomb
name="fractureContact0"
cohesion="0.0e6"
frictionCoefficient="0.01"/>
<Coulomb
name="fractureContact1"
cohesion="0.0e6"
frictionCoefficient="0.01"/>

</Constitutive>

<!-- SPHINX_FUNCTION -->
<Functions>
<TableFunction
name="jFunction"
inputVarNames="{ time }"
coordinateFiles="{ tables/time.geos }"
voxelFile="tables/jumps.geos"/>

<TableFunction
name="tFunction"
inputVarNames="{ time }"
coordinateFiles="{ tables/time.geos }"
voxelFile="tables/tractions.geos"/>
</Functions>
<!-- SPHINX_FUNCTION_END -->

<!-- SPHINX_MESH -->
<Mesh>
<InternalMesh
name="mesh1"
elementTypes="{ C3D8 }"
xCoords="{ 0, 1 }"
yCoords="{ 0, 1 }"
zCoords="{ 0, 1 }"
nx="{ 1 }"
ny="{ 1 }"
nz="{ 1 }"
cellBlockNames="{ cellBlock01 }"/>
</Mesh>

<ElementRegions>
<CellElementRegion
name="dummy"
cellBlocks="{ * }"
materialList="{ dummy }"/>
</ElementRegions>
<!-- SPHINX_MESH_END -->
</Problem>
6 changes: 6 additions & 0 deletions inputFiles/frictionDriver/tables/jumps.geos
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
0
1e-3
2e-3
3e-3
4e-3
5e-3
6 changes: 6 additions & 0 deletions inputFiles/frictionDriver/tables/time.geos
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
0
1
2
3
4
5
6 changes: 6 additions & 0 deletions inputFiles/frictionDriver/tables/tractions.geos
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
0
1e6
2e6
3e6
4e6
5e6
8 changes: 8 additions & 0 deletions src/coreComponents/constitutive/contact/CoulombFriction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,14 @@ class CoulombFriction : public FrictionBase
*/
KernelWrapper createKernelUpdates() const;

/// getting cohesion value
real64 getCohesion() const
{ return m_cohesion; }

/// getting friction coeff
real64 getFrictionCoeff() const
{ return m_frictionCoefficient; }

/**
* @struct Set of "char const *" and keys for data specified in this class.
*/
Expand Down
4 changes: 4 additions & 0 deletions src/coreComponents/constitutiveDrivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ set( constitutiveDrivers_headers
relativePermeability/RelpermDriver.hpp
relativePermeability/RelpermDriverRunTest.hpp
solid/TriaxialDriver.hpp
contact/FrictionDriver.hpp
contact/FrictionDriverRunTest.hpp
)
#
# Specify all sources
Expand Down Expand Up @@ -57,6 +59,8 @@ set( constitutiveDrivers_sources
relativePermeability/RelpermDriverTableRelativeRunTest.cpp
relativePermeability/RelpermDriverTableRelativeHysteresisRunTest.cpp
solid/TriaxialDriver.cpp
contact/FrictionDriver.cpp
contact/FrictionDriverRunTest.cpp
)

set( dependencyList ${parallelDeps} constitutive events )
Expand Down
Loading
Loading