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
Dmitri Naumov
ogs
Commits
164dbee7
Commit
164dbee7
authored
7 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[PL/SourceTerms] Impl. of createNodalSourceTerm.
parent
4e9ff82d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ProcessLib/SourceTerms/CreateNodalSourceTerm.cpp
+35
-0
35 additions, 0 deletions
ProcessLib/SourceTerms/CreateNodalSourceTerm.cpp
ProcessLib/SourceTerms/CreateNodalSourceTerm.h
+22
-0
22 additions, 0 deletions
ProcessLib/SourceTerms/CreateNodalSourceTerm.h
with
57 additions
and
0 deletions
ProcessLib/SourceTerms/CreateNodalSourceTerm.cpp
0 → 100644
+
35
−
0
View file @
164dbee7
/**
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include
"CreateNodalSourceTerm.h"
#include
"BaseLib/FileTools.h"
#include
"ProcessLib/Utils/ProcessUtils.h"
#include
"NodalSourceTerm.h"
namespace
ProcessLib
{
std
::
unique_ptr
<
NodalSourceTerm
>
createNodalSourceTerm
(
BaseLib
::
ConfigTree
const
&
config
,
const
NumLib
::
LocalToGlobalIndexMap
&
dof_table
,
std
::
size_t
const
mesh_id
,
std
::
size_t
const
node_id
,
const
int
variable_id
,
const
int
component_id
)
{
DBUG
(
"Constructing NodalSourceTerm from config."
);
//! \ogs_file_param{prj__process_variables__process_variable__source_terms__source_term__type}
config
.
checkConfigParameter
(
"type"
,
"Nodal"
);
//! \ogs_file_param{prj__process_variables__process_variable__source_terms__source_term__Nodal__value}
auto
const
nodal_value
=
config
.
getConfigParameter
<
double
>
(
"value"
);
DBUG
(
"Using value %f as nodal source term"
,
nodal_value
);
return
std
::
make_unique
<
NodalSourceTerm
>
(
dof_table
,
mesh_id
,
node_id
,
variable_id
,
component_id
,
nodal_value
);
}
}
// namespace ProcessLib
This diff is collapsed.
Click to expand it.
ProcessLib/SourceTerms/CreateNodalSourceTerm.h
0 → 100644
+
22
−
0
View file @
164dbee7
/**
* \copyright
* Copyright (c) 2012-2017, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include
<memory>
#include
"ProcessLib/Process.h"
namespace
ProcessLib
{
std
::
unique_ptr
<
NodalSourceTerm
>
createNodalSourceTerm
(
BaseLib
::
ConfigTree
const
&
config
,
const
NumLib
::
LocalToGlobalIndexMap
&
dof_table
,
std
::
size_t
mesh_id
,
std
::
size_t
const
node_id
,
const
int
variable_id
,
const
int
component_id
);
}
// 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