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

Open
wants to merge 12 commits into
base: devel
Choose a base branch
from
Open

Conversation

rrezakhani
Copy link

pull request to add several material and kernel source files as well as a benchmark problem for pressurized fracture.

@hugary1995
Copy link
Owner

Hi Roozbeh, I can finally work on this now -- sorry for taking so long. If you can give me write access to this branch, I can directly work on it.

@hugary1995
Copy link
Owner

You can see why the tests are failing by clicking on "details". For example, the Precheck fails because some files contain trailing white spaces. I think if you enforce the .clang-format in the root directory they should be gone. Although I'm not sure how to set it up in spy. There is also one file containing banned keywords.

@rrezakhani
Copy link
Author

rrezakhani commented Jul 27, 2021 via email

@rrezakhani rrezakhani force-pushed the RRmain branch 2 times, most recently from 8e07ff8 to db2f5b0 Compare July 29, 2021 22:46
Copy link
Owner

@hugary1995 hugary1995 left a comment

Choose a reason for hiding this comment

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

Thanks Roozbeh, looks pretty good overall. I have done the first round review - mostly some formatting issues.

Most of the comments are notes to myself. But if you can go through them and stick to the formatting guideline in future PRs, that'll be really helpful.

.directory Outdated Show resolved Hide resolved
benchmarks/hydraulic_fracture/fracture.i Outdated Show resolved Hide resolved
benchmarks/hydraulic_fracture/fracture.i Outdated Show resolved Hide resolved
benchmarks/hydraulic_fracture/run.sh Outdated Show resolved Hide resolved
benchmarks/mode1_geometric_notch_fatigue/fracture.i Outdated Show resolved Hide resolved
src/kernels/ADAnisotropicDiffusion.C Outdated Show resolved Hide resolved
src/kernels/ADMaterialDerivativeTestKernel.C Outdated Show resolved Hide resolved
src/kernels/ADSPFPressureTimeDerivative.C Outdated Show resolved Hide resolved
src/kernels/ADValueKernelCoupled.C Outdated Show resolved Hide resolved
src/kernels/ValueKernelCoupled.C Outdated Show resolved Hide resolved
Copy link
Owner

@hugary1995 hugary1995 left a comment

Choose a reason for hiding this comment

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

Some more questions...

doc/content/source/kernels/ADValueKernelCoupled.md Outdated Show resolved Hide resolved
doc/content/source/kernels/ValueKernel.md Outdated Show resolved Hide resolved
doc/content/source/materials/ADComputeFluidMobility.md Outdated Show resolved Hide resolved
doc/content/source/materials/ComputePorosity.md Outdated Show resolved Hide resolved
doc/content/source/materials/FatigueMobility.md Outdated Show resolved Hide resolved
src/kernels/ADPorousFlowTimeDerivative.C Show resolved Hide resolved
doc/content/source/kernels/ADValueKernelCoupled.md Outdated Show resolved Hide resolved
doc/content/source/kernels/ValueKernel.md Outdated Show resolved Hide resolved
doc/content/source/kernels/ValueKernelCoupled.md Outdated Show resolved Hide resolved
include/materials/ADComputeFluidMobility.h Outdated Show resolved Hide resolved
@hugary1995
Copy link
Owner

Hi @rrezakhani, could you please remind me where we were on this? Are you just waiting for my changes? If so, let me know and I'll work on this. I would like to get this PR in soon so that I can start preparing that SoftwareX paper.

- benchmark pressurized fracture added
- fatigue benchmark problem added
- documentation files added hugary1995#98
- tutorial example for hydraulic fracturing is ready
@hugary1995
Copy link
Owner

Hey Roozbeh, are you sure the gold file in your tutorial is correct? I ran the test but it is giving me diff.

tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: ERROR: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:    *****************************************************************
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:               EXODIFF	(Version: 2.90) Modified: 2018-02-15
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:               Authors:  Richard Drake, rrdrake@sandia.gov           
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:                         Greg Sjaardema, gdsjaar@sandia.gov          
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:               Run on    2021/10/13   18:21:58 CST
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:    *****************************************************************
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: Reading first file ... 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: Reading second file ... 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:   FILE 1: /home/gary/projects/raccoon/tutorials/hydraulic_fracturing_SPF/gold/results.e
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:    Title: results.e
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:           Dim = 2, Blocks = 1, Nodes = 1681, Elements = 1600, Nodesets = 4, Sidesets = 4
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:           Vars: Global = 4, Nodal = 5, Element = 29, Nodeset = 0, Sideset = 0, Times = 2
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:   FILE 2: /home/gary/projects/raccoon/tutorials/hydraulic_fracturing_SPF/results.e
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:    Title: results.e
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:           Dim = 2, Blocks = 1, Nodes = 441, Elements = 400, Nodesets = 4, Sidesets = 4
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:           Vars: Global = 4, Nodal = 5, Element = 29, Nodeset = 0, Sideset = 0, Times = 2
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: exodiff: ERROR: .. Number of nodes doesn't agree.
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: exodiff: ERROR: .. Number of elements doesn't agree.
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: exodiff: Files are different
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:  
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: ################################################################################
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: Tester failed, reason: EXODIFF
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture ............................ [FINISHED] FAILED (EXODIFF)

@rrezakhani
Copy link
Author

Hey Roozbeh, are you sure the gold file in your tutorial is correct? I ran the test but it is giving me diff.

tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: ERROR: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:    *****************************************************************
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:               EXODIFF	(Version: 2.90) Modified: 2018-02-15
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:               Authors:  Richard Drake, rrdrake@sandia.gov           
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:                         Greg Sjaardema, gdsjaar@sandia.gov          
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:               Run on    2021/10/13   18:21:58 CST
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:    *****************************************************************
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: Reading first file ... 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: Reading second file ... 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:   FILE 1: /home/gary/projects/raccoon/tutorials/hydraulic_fracturing_SPF/gold/results.e
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:    Title: results.e
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:           Dim = 2, Blocks = 1, Nodes = 1681, Elements = 1600, Nodesets = 4, Sidesets = 4
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:           Vars: Global = 4, Nodal = 5, Element = 29, Nodeset = 0, Sideset = 0, Times = 2
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:   FILE 2: /home/gary/projects/raccoon/tutorials/hydraulic_fracturing_SPF/results.e
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:    Title: results.e
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:           Dim = 2, Blocks = 1, Nodes = 441, Elements = 400, Nodesets = 4, Sidesets = 4
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:           Vars: Global = 4, Nodal = 5, Element = 29, Nodeset = 0, Sideset = 0, Times = 2
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: exodiff: ERROR: .. Number of nodes doesn't agree.
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: exodiff: ERROR: .. Number of elements doesn't agree.
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: exodiff: Files are different
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture:  
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: ################################################################################
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: Tester failed, reason: EXODIFF
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture: 
tutorials/hydraulic_fracturing_SPF.hydraulic_fracture ............................ [FINISHED] FAILED (EXODIFF)

Sorry my bad, it is fixed. It passes the test here.

@hugary1995
Copy link
Owner

The ADPorousFlowTimederivative kernel isn't used anywhere.

@hugary1995
Copy link
Owner

  [biot_coefficient]
    type = ADDerivativeParsedMaterial
    f_name = alpha
    material_property_names = 'alpha0'
    args = 'd'
    function = 'alpha0'
    derivative_order = 1
  []

Just wanted to make sure this is what you meant: is your biot coefficient always the same as the intact biot coefficient?

@@ -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.

@@ -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.

@@ -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.

@@ -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.

@hugary1995
Copy link
Owner

I think I've made most of the changes I want. Just two more questions:

  • Do you still need the four classes I mentioned above that aren't being used anywhere? If you need them, we'll have to think of test cases for them. Otherwise, I'll remove them.
  • It seems that you've removed all the fatigue stuff. Did you hand them over to Yuanchen? Or do you want to make them into another PR?

@rrezakhani
Copy link
Author

I think I've made most of the changes I want. Just two more questions:

  • Do you still need the four classes I mentioned above that aren't being used anywhere? If you need them, we'll have to think of test cases for them. Otherwise, I'll remove them.
  • It seems that you've removed all the fatigue stuff. Did you hand them over to Yuanchen? Or do you want to make them into another PR?

Those classes are used for two-phase flow simulations. I wanted to add them in the next pull request. I missed to remove those classes. Please remove them from this pull request.
I wanted to add fatigue to next pull request as well, but I can actually do it for this one. I will add that with the relevant test and tutorial today.

@rrezakhani
Copy link
Author

Gary, I removed those unnecessary source files and tried to push, but it says there are things that have been done on github:
To github.com:rrezakhani/raccoon.git
! [rejected] RRmain -> RRmain (fetch first)
error: failed to push some refs to 'git@github.com:rrezakhani/raccoon.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Have you done some modifications?

@rrezakhani
Copy link
Author

  [biot_coefficient]
    type = ADDerivativeParsedMaterial
    f_name = alpha
    material_property_names = 'alpha0'
    args = 'd'
    function = 'alpha0'
    derivative_order = 1
  []

Just wanted to make sure this is what you meant: is your biot coefficient always the same as the intact biot coefficient?

In this specific simulation, biot coefficient is not changing. But it can be a function of damage in general. So I decided to keep this format. We can define a simple parameter for this specific example if you want.

@rrezakhani
Copy link
Author

Gary, I will add fatigue and multiphase flow files in the next PR. Let's finalize this one.

@hugary1995
Copy link
Owner

Gary, I removed those unnecessary source files and tried to push, but it says there are things that have been done on github: To github.com:rrezakhani/raccoon.git ! [rejected] RRmain -> RRmain (fetch first) error: failed to push some refs to 'git@github.com:rrezakhani/raccoon.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

Have you done some modifications?

Yes, I have made several modifications. Can you do a git fetch then rebase your work on top of the remote head?

@hugary1995
Copy link
Owner

Sorry for the late reply -- I was taking vacation for the last two weeks.

@hugary1995
Copy link
Owner

I suspect that you may encounter several conflicts when trying to do the rebase. If you want we can meet via zoom and look at it together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants