Repository navigation
Fixed a bug in face integration - #91
Conversation
|
@norihiro-w If you have time, please take a look. I have tested it by using a curved surface with a Neumann BC of 1. In the test, the sum of the computed node values by this PR is exactly the area of the curved surface. |
|
@wenqing ok. i will take a look |
| 06/2005 WW Implementation | ||
| **************************************************************************/ | ||
| void CElem::FillTransformMatrix() | ||
| void CElem::FillTransformMatrix(const bool reuse_matrix_cache) |
There was a problem hiding this comment.
can you please add a description about the new argument? If I understand it correctly, the flag is used to recompute the transformation matrix. then, recompute_matrix (or something like that) may be a better name.
There was a problem hiding this comment.
Added a description and changed the name.
|
Wenqing, are you assuming the elements are also curved? or you want to use a curve surface to find nodes of planar elements?
|
| // CB THMBM | ||
| // this->getProcess()->CheckMarkedElement(); // CB added to remove bug with deactivated Subdomains | ||
| // Already added to Set(..) | ||
| std::vector<long> vec_possible_elements; |
There was a problem hiding this comment.
is it really necessary to remove this part? Without this, the computation can be quite slow for large problems.
There was a problem hiding this comment.
Recovered but enabled all elements to be searched because that surface can be defined inside a domain. The following condition is for the case of surface being defined inside domain.
// Not a surface face
if (elem->GetDimension() == e_nei->GetDimension())
fac = 0.5;
| for (i = 0; i < (long)msh->ele_vector.size(); i++) | ||
| { | ||
| elem = msh->ele_vector[vec_possible_elements[i]]; | ||
| if (!elem->GetMark()) |
There was a problem hiding this comment.
why is if (!elem->GetMark()) not necessary?
There was a problem hiding this comment.
As explained above, It is to enable all elements to be searched.
|
Two benchmark reference files have been updated. For the reason, please see the description of PR ufz/ogs5-benchmarks_ref#21. |
|
@wenqing i'm ok if the benchmarking is green |
This PR fixes a bug in face integration for Neumann BC. If curved surface is applied with Neumann BC, the current code cannot compute the face integration correctly.