Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request from RR main #78

Closed
wants to merge 12 commits into from
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ temp_print_trace.*
*.json
*.bak
*.processor.*
*.directory
.clang_complete
.failed_tests
compile_commands.json
Expand Down
13 changes: 13 additions & 0 deletions doc/content/source/kernels/ADAnisotropicDiffusion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# ADAnisotropicDiffusion

!syntax description /Kernels/ADAnisotropicDiffusion

hugary1995 marked this conversation as resolved.
Show resolved Hide resolved
The weak form of this kernel is $\left( \grad w, \grad u \right)$, where $w$ is the test function and $u$ is the variable (or the coupled variable).

## Example Input File Syntax

!syntax parameters /Kernels/ADAnisotropicDiffusion

!syntax inputs /Kernels/ADAnisotropicDiffusion

!syntax children /Kernels/ADAnisotropicDiffusion
11 changes: 11 additions & 0 deletions doc/content/source/kernels/ADPoroMechanicsCoupling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ADPoroMechanicsCoupling

!syntax description /Kernels/ADPoroMechanicsCoupling

hugary1995 marked this conversation as resolved.
Show resolved Hide resolved
## Example Input File Syntax

!syntax parameters /Kernels/ADPoroMechanicsCoupling

!syntax inputs /Kernels/ADPoroMechanicsCoupling

!syntax children /Kernels/ADPoroMechanicsCoupling
11 changes: 11 additions & 0 deletions doc/content/source/kernels/ADPorousFlowTimeDerivative.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ADPorousFlowTimeDerivative
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This object isn't being used anywhere.


!syntax description /Kernels/ADPorousFlowTimeDerivative

hugary1995 marked this conversation as resolved.
Show resolved Hide resolved
## Example Input File Syntax

!syntax parameters /Kernels/ADPorousFlowTimeDerivative

!syntax inputs /Kernels/ADPorousFlowTimeDerivative

!syntax children /Kernels/ADPorousFlowTimeDerivative
11 changes: 11 additions & 0 deletions doc/content/source/kernels/ADSPFPressureTimeDerivative.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ADSPFPressureTimeDerivative

!syntax description /Kernels/ADSPFPressureTimeDerivative

hugary1995 marked this conversation as resolved.
Show resolved Hide resolved
## Example Input File Syntax

!syntax parameters /Kernels/ADSPFPressureTimeDerivative

!syntax inputs /Kernels/ADSPFPressureTimeDerivative

!syntax children /Kernels/ADSPFPressureTimeDerivative
11 changes: 11 additions & 0 deletions doc/content/source/kernels/ADSPFVolStrTimeDerivative.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# ADSPFVolStrTimeDerivative

!syntax description /Kernels/ADSPFVolStrTimeDerivative

hugary1995 marked this conversation as resolved.
Show resolved Hide resolved
## Example Input File Syntax

!syntax parameters /Kernels/ADSPFVolStrTimeDerivative

!syntax inputs /Kernels/ADSPFVolStrTimeDerivative

!syntax children /Kernels/ADSPFVolStrTimeDerivative
20 changes: 20 additions & 0 deletions doc/content/source/materials/ADComputePorosity.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ADComputePorosity
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This object isn't being used anywhere.


!syntax description /Materials/ADComputePorosity

hugary1995 marked this conversation as resolved.
Show resolved Hide resolved
## Overview

This equation calculates porosity evolution in porous solids in terms of variation of fluid pressure and solid volumetric strain:

\begin{equation}
\phi = \phi_0 + \frac{p}{M} + \alpha \epsilon_v,
\end{equation}
where $\phi$ is the solid porosity; $\phi_0$ is the initial solid porosity; $M$ is biot's modulus; $\alpha$ is the Biot’s coefficient; and $\epsilon_v$ is the solid volumetric strain.

## Example Input File Syntax

!syntax parameters /Materials/ADComputePorosity

!syntax inputs /Materials/ADComputePorosity

!syntax children /Materials/ADComputePorosity
20 changes: 20 additions & 0 deletions doc/content/source/materials/ComputeCrackOpeningDisplacement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# ComputeCrackOpeningDisplacement

!syntax description /Materials/ComputeCrackOpeningDisplacement

## Overview

Crack opening calculation is accomplished using the gradient of damage variable, $\grad d$, which is used to define the unit vector perpendicular to the crack plane as $\normal^d = \grad d/\norm{\grad d}$. The crack opening field is then calculated as

\begin{equation}
\varw_n = h^e \left( \normal^d \cdot \strain \cdot \normal^d \right),
\end{equation}
where $h^e$ is the edge length of the current element.

## Example Input File Syntax

!syntax parameters /Materials/ComputeCrackOpeningDisplacement

!syntax inputs /Materials/ComputeCrackOpeningDisplacement

!syntax children /Materials/ComputeCrackOpeningDisplacement
19 changes: 19 additions & 0 deletions doc/content/source/materials/ComputeFluidMobility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# ComputeFluidMobility

!syntax description /Materials/ComputeFluidMobility

## Overview

\begin{equation}
\boldsymbol{\lambda} = \frac{\bold{k}}{\mu} + d^{\xi}\frac{\bold{k}^d}{\mu},
\end{equation}
where
in which $\xi$ is an exponent used to localize the increased permeability along the fracture. $\bold{k}/\mu$ is the fluid mobility in intact bulk porous solid, while $\bold{k}^d/\mu$ is the additional permeability in the damaged domain.

## Example Input File Syntax

!syntax parameters /Materials/ComputeFluidMobility

!syntax inputs /Materials/ComputeFluidMobility

!syntax children /Materials/ComputeFluidMobility
42 changes: 42 additions & 0 deletions include/diracKernel/DiracSource.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
//* This file is part of the RACCOON application
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This object isn't being used anywhere.

//* being developed at Dolbow lab at Duke University
//* http://dolbow.pratt.duke.edu

#pragma once

// Moose Includes
#include "DiracKernel.h"

class DiracSource : public DiracKernel
{
public:
static InputParameters validParams();
DiracSource(const InputParameters & parameters);

virtual void addPoints() override;
virtual Real computeQpResidual() override;

protected:
/// position of the dirac source
Point _point;
hugary1995 marked this conversation as resolved.
Show resolved Hide resolved

/// numbe of dimensions
int _dim;
hugary1995 marked this conversation as resolved.
Show resolved Hide resolved
Real _fL;

/// list of parameters for the source equation
Real _t1;
Real _tRT;
Real _tL;
Real _tP;
Real _p0;
Real _d1;
Real _upcoeff;
Real _downcoeff;

/// fluid density
Real _rho;

/// number of acoustic shots
Real _num_shots;
};
28 changes: 28 additions & 0 deletions include/ics/PhasefieldShapes.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//* This file is part of the RACCOON application
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This object isn't being used anywhere.

//* being developed at Dolbow lab at Duke University
//* http://dolbow.pratt.duke.edu

#pragma once

// MOOSE Includes
#include "InitialCondition.h"

/**
* PhasefieldShapes just returns a constant value.
*/
class PhasefieldShapes : public InitialCondition
{
public:
static InputParameters validParams();
PhasefieldShapes(const InputParameters & parameters);

virtual Real value(const Point & p);

private:
Real _epsilon;
std::vector<Real> _centers_tips;
std::vector<std::string> _shapes;
std::vector<std::string> _gradients;
std::vector<Real> _gradient_values;
hugary1995 marked this conversation as resolved.
Show resolved Hide resolved
Real _fluid_phase;
};
25 changes: 25 additions & 0 deletions include/kernels/ADAnisotropicDiffusion.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//* This file is part of the RACCOON application
//* being developed at Dolbow lab at Duke University
//* http://dolbow.pratt.duke.edu

#pragma once

#include "ADKernel.h"
#include "BaseNameInterface.h"

class ADAnisotropicDiffusion : public ADKernel, public BaseNameInterface
{
public:
static InputParameters validParams();

ADAnisotropicDiffusion(const InputParameters & parameters);

protected:
virtual ADReal computeQpResidual() override;

/// gradient of the coupled variable
const ADVariableGradient & _grad_v;

/// The anisotropic diffusivity
const ADMaterialProperty<RankTwoTensor> & _D;
};
28 changes: 28 additions & 0 deletions include/kernels/ADPoroMechanicsCoupling.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//* This file is part of the RACCOON application
//* being developed at Dolbow lab at Duke University
//* http://dolbow.pratt.duke.edu

#pragma once

#include "ADKernel.h"
#include "BaseNameInterface.h"

class ADPoroMechanicsCoupling : public ADKernel, public BaseNameInterface
{
public:
static InputParameters validParams();

ADPoroMechanicsCoupling(const InputParameters & parameters);

protected:
virtual ADReal computeQpResidual();

/// biot coefficient
const ADMaterialProperty<Real> & _coefficient;

/// fluid pore pressure
const ADVariableValue & _porepressure;

/// component integer
unsigned int _component;
};
30 changes: 30 additions & 0 deletions include/kernels/ADPorousFlowTimeDerivative.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//* This file is part of the RACCOON application
//* being developed at Dolbow lab at Duke University
//* http://dolbow.pratt.duke.edu

#pragma once

#include "ADTimeKernel.h"
#include "BaseNameInterface.h"

class ADPorousFlowTimeDerivative : public ADTimeKernel, public BaseNameInterface
{
public:
static InputParameters validParams();

ADPorousFlowTimeDerivative(const InputParameters & parameters);

protected:
virtual ADReal computeQpResidual() override;

// @{ The current and old values of porosity used to compute its time derivative.
const ADMaterialProperty<Real> & _porosity;
const MaterialProperty<Real> & _porosity_old;
// @}

/// The saturation
const ADVariableValue & _S;

/// The time derivative of the saturation
const ADVariableValue & _S_dot;
};
21 changes: 21 additions & 0 deletions include/kernels/ADSPFPressureTimeDerivative.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//* This file is part of the RACCOON application
//* being developed at Dolbow lab at Duke University
//* http://dolbow.pratt.duke.edu

#pragma once

#include "ADTimeDerivative.h"
#include "BaseNameInterface.h"

class ADSPFPressureTimeDerivative : public ADTimeDerivative, public BaseNameInterface
{
public:
static InputParameters validParams();

ADSPFPressureTimeDerivative(const InputParameters & parameters);

protected:
virtual ADReal precomputeQpResidual() override;

const ADMaterialProperty<Real> & _B;
};
27 changes: 27 additions & 0 deletions include/kernels/ADSPFVolStrTimeDerivative.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//* This file is part of the RACCOON application
//* being developed at Dolbow lab at Duke University
//* http://dolbow.pratt.duke.edu

#pragma once

#include "ADTimeKernel.h"
#include "BaseNameInterface.h"

class ADSPFVolStrTimeDerivative : public ADTimeKernel, public BaseNameInterface
{
public:
static InputParameters validParams();

ADSPFVolStrTimeDerivative(const InputParameters & parameters);

protected:
virtual ADReal computeQpResidual() override;

// @{ The current and the old strain
const ADMaterialProperty<RankTwoTensor> & _strain;
const MaterialProperty<RankTwoTensor> & _strain_old;
// @}

/// The Biot coefficient
const ADMaterialProperty<Real> & _alpha;
};
29 changes: 29 additions & 0 deletions include/materials/ADComputePorosity.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//* This file is part of the RACCOON application
//* being developed at Dolbow lab at Duke University
//* http://dolbow.pratt.duke.edu

#pragma once

#include "Material.h"

class ADComputePorosity : public Material
{
public:
static InputParameters validParams();

ADComputePorosity(const InputParameters & parameters);

protected:
virtual void initQpStatefulProperties() override;
virtual void computeQpProperties() override;

const ADVariableValue & _porepressure;
const ADMaterialProperty<RankTwoTensor> & _strain;

ADMaterialProperty<Real> & _porosity;
const MaterialProperty<Real> & _porosity_old;
const Real _initial_porosity;

const ADMaterialProperty<Real> & _alpha;
const ADMaterialProperty<Real> & _M;
hugary1995 marked this conversation as resolved.
Show resolved Hide resolved
};
Loading