Skip to content

Coding dirichletbc from material property #23797

Answered by vermaprk
vermaprk asked this question in Q&A General
Discussion options

You must be logged in to vote

Aren't both same, as the residue has to be near to zero.
I tried the following change on simplediffusion.i.

ADReal
ADEgMatDirichlet::computeQpResidual()
{
  
  return _u[_qp] - _boundary_prop[_qp];
}

The postprocessor gives:
Postprocessor Values:

+----------------+----------------+----------------+
| time           | left_c         | right_c        |
+----------------+----------------+----------------+
:                :                :                :
|   1.785000e+02 |   1.000000e+03 |   3.000001e+02 |
|   1.795000e+02 |   1.000000e+03 |   3.000001e+02 |
|   1.815000e+02 |   1.000000e+03 |   3.000001e+02 |
|   1.835000e+02 |   1.000000e+03 |   3.000001e+02 |
|   1.855000e+02 |   1.00…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@maxnezdyur
Comment options

@vermaprk
Comment options

@GiudGiud
Comment options

@vermaprk
Comment options

@GiudGiud
Comment options

Comment options

You must be logged in to vote
1 reply
@GiudGiud
Comment options

Comment options

You must be logged in to vote
3 replies
@GiudGiud
Comment options

@vermaprk
Comment options

@maxnezdyur
Comment options

Answer selected by vermaprk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants