Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Özgür Ozan Sen
ogs
Commits
344a6fba
Commit
344a6fba
authored
3 months ago
by
Max Jaeschke
Browse files
Options
Downloads
Patches
Plain Diff
Filter BHE and soil elements
Sort soil and bhe elements only, if they are unsorted
parent
d479cbca
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.cpp
+27
-0
27 additions, 0 deletions
ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.cpp
ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.h
+4
-0
4 additions, 0 deletions
ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.h
with
31 additions
and
0 deletions
ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.cpp
+
27
−
0
View file @
344a6fba
...
@@ -161,6 +161,33 @@ void HeatTransportBHEProcess::initializeConcreteProcess(
...
@@ -161,6 +161,33 @@ void HeatTransportBHEProcess::initializeConcreteProcess(
// Create BHE boundary conditions for each of the BHEs
// Create BHE boundary conditions for each of the BHEs
createBHEBoundaryConditionTopBottom
(
_bheMeshData
.
BHE_nodes
);
createBHEBoundaryConditionTopBottom
(
_bheMeshData
.
BHE_nodes
);
// Store BHE and soil elements to split the assembly and use the matrix
// cache in the linear case only for soil elements
if
(
_process_data
.
_algebraic_BC_Setting
.
_is_linear
)
{
_bhes_element_ids
=
_bheMeshData
.
BHE_elements
|
ranges
::
views
::
join
|
MeshLib
::
views
::
ids
|
ranges
::
to
<
std
::
vector
>
;
// sort bhe elements if needed
if
(
!
std
::
is_sorted
(
_bhes_element_ids
.
begin
(),
_bhes_element_ids
.
end
()))
{
std
::
sort
(
_bhes_element_ids
.
begin
(),
_bhes_element_ids
.
end
());
}
_soil_element_ids
=
mesh
.
getElements
()
|
MeshLib
::
views
::
ids
|
ranges
::
to
<
std
::
vector
>
();
// sort soil elements if needed
if
(
!
std
::
is_sorted
(
_soil_element_ids
.
begin
(),
_soil_element_ids
.
end
()))
{
std
::
sort
(
_soil_element_ids
.
begin
(),
_soil_element_ids
.
end
());
}
_soil_element_ids
=
ranges
::
views
::
set_difference
(
_soil_element_ids
,
_bhes_element_ids
)
|
ranges
::
to
<
std
::
vector
>
();
}
if
(
_process_data
.
_mass_lumping
)
if
(
_process_data
.
_mass_lumping
)
{
{
std
::
vector
<
std
::
size_t
>
const
bhes_node_ids
=
std
::
vector
<
std
::
size_t
>
const
bhes_node_ids
=
...
...
This diff is collapsed.
Click to expand it.
ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.h
+
4
−
0
View file @
344a6fba
...
@@ -126,6 +126,10 @@ private:
...
@@ -126,6 +126,10 @@ private:
const
BHEMeshData
_bheMeshData
;
const
BHEMeshData
_bheMeshData
;
AssembledMatrixCache
_asm_mat_cache
;
AssembledMatrixCache
_asm_mat_cache
;
std
::
vector
<
std
::
size_t
>
_bhes_element_ids
;
std
::
vector
<
std
::
size_t
>
_soil_element_ids
;
};
};
}
// namespace HeatTransportBHE
}
// namespace HeatTransportBHE
}
// namespace ProcessLib
}
// namespace ProcessLib
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment