Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs-feliks
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Feliks Kiszkurno
ogs-feliks
Commits
4147b6c8
Commit
4147b6c8
authored
5 years ago
by
Tom Fischer
Browse files
Options
Downloads
Patches
Plain Diff
[MPL] Parse and create exponential property.
parent
f366cd59
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MaterialLib/MPL/CreateProperty.cpp
+32
-0
32 additions, 0 deletions
MaterialLib/MPL/CreateProperty.cpp
with
32 additions
and
0 deletions
MaterialLib/MPL/CreateProperty.cpp
+
32
−
0
View file @
4147b6c8
...
...
@@ -140,6 +140,38 @@ std::unique_ptr<MaterialPropertyLib::Property> createProperty(
reference_value
,
iv
);
}
if
(
property_type
==
"Exponential"
)
{
auto
const
reference_value
=
//! \ogs_file_param{properties__property__ExponentialProperty__reference_value}
config
.
getConfigParameter
<
double
>
(
"reference_value"
);
auto
const
&
exponent_data_config
=
//! //\ogs_file_param{properties__property__ExponentialProperty__exponent}
config
.
getConfigSubtree
(
"exponent"
);
auto
const
&
variable_name
=
//! \ogs_file_param{properties__property__ExponentialProperty__exponent__variable_name}
exponent_data_config
.
getConfigParameter
<
std
::
string
>
(
"variable_name"
);
auto
const
reference_condition
=
//! \ogs_file_param{properties__property__ExponentialProperty__exponent__reference_condition}
exponent_data_config
.
getConfigParameter
<
double
>
(
"reference_condition"
);
auto
const
factor
=
//! \ogs_file_param{properties__property__ExponentialProperty__exponent__factor}
exponent_data_config
.
getConfigParameter
<
double
>
(
"factor"
);
MaterialPropertyLib
::
Variable
exp_data_type
=
MaterialPropertyLib
::
convertStringToVariable
(
variable_name
);
MaterialPropertyLib
::
ExponentData
const
exp_data
{
exp_data_type
,
reference_condition
,
factor
};
return
std
::
make_unique
<
MaterialPropertyLib
::
ExponentialProperty
>
(
reference_value
,
exp_data
);
}
/* TODO Additional properties go here, for example:
if (boost::iequals(property_type, "BilinearTemperaturePressure"))
{
...
...
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