-
Notifications
You must be signed in to change notification settings - Fork 956
Add thermal expansion effects to FEA solver #2399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
46405cd
add thermal expansion to CConfig
pcarruscag 68747ef
Merge remote-tracking branch 'upstream/develop' into thermo_elastic
pcarruscag 458e732
thermal stress term, not coupled to heat solver
pcarruscag bac0e06
update testcase
pcarruscag f0808bd
update cases
pcarruscag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -914,7 +914,10 @@ void CConfig::SetPointersNull() { | |
| Inlet_Velocity = nullptr; Inflow_Mach = nullptr; Inflow_Pressure = nullptr; | ||
| Outlet_Pressure = nullptr; Isothermal_Temperature = nullptr; | ||
|
|
||
| ElasticityMod = nullptr; PoissonRatio = nullptr; MaterialDensity = nullptr; | ||
| ElasticityMod = nullptr; | ||
| PoissonRatio = nullptr; | ||
| MaterialDensity = nullptr; | ||
| MaterialThermalExpansion = nullptr; | ||
|
|
||
| Load_Dir = nullptr; Load_Dir_Value = nullptr; Load_Dir_Multiplier = nullptr; | ||
| Disp_Dir = nullptr; Disp_Dir_Value = nullptr; Disp_Dir_Multiplier = nullptr; | ||
|
|
@@ -2440,6 +2443,10 @@ void CConfig::SetConfig_Options() { | |
| addDoubleListOption("POISSON_RATIO", nPoissonRatio, PoissonRatio); | ||
| /* DESCRIPTION: Material density */ | ||
| addDoubleListOption("MATERIAL_DENSITY", nMaterialDensity, MaterialDensity); | ||
| /* DESCRIPTION: Material thermal expansion coefficient */ | ||
| addDoubleListOption("MATERIAL_THERMAL_EXPANSION_COEFF", nMaterialThermalExpansion, MaterialThermalExpansion); | ||
| /* DESCRIPTION: Temperature at which there is no stress from thermal expansion */ | ||
| addDoubleOption("MATERIAL_REFERENCE_TEMPERATURE", MaterialReferenceTemperature, 288.15); | ||
| /* DESCRIPTION: Knowles B constant */ | ||
| addDoubleOption("KNOWLES_B", Knowles_B, 1.0); | ||
| /* DESCRIPTION: Knowles N constant */ | ||
|
|
@@ -4834,9 +4841,15 @@ void CConfig::SetPostprocessing(SU2_COMPONENT val_software, unsigned short val_i | |
| MaterialDensity = new su2double[1]; MaterialDensity[0] = 7854; | ||
| } | ||
|
|
||
| if (nElasticityMod != nPoissonRatio || nElasticityMod != nMaterialDensity) { | ||
| SU2_MPI::Error("ELASTICITY_MODULUS, POISSON_RATIO, and MATERIAL_DENSITY need to have the same number " | ||
| "of entries (the number of materials).", CURRENT_FUNCTION); | ||
| if (nMaterialThermalExpansion == 0) { | ||
| nMaterialThermalExpansion = 1; | ||
| MaterialThermalExpansion = new su2double[1](); | ||
Check warningCode scanning / CodeQL Resource not released in destructor
Resource MaterialThermalExpansion is acquired by class CConfig but not released anywhere in this class.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. COption deletes it its destructor |
||
| } | ||
|
|
||
| if (nElasticityMod != nPoissonRatio || nElasticityMod != nMaterialDensity || | ||
| nElasticityMod != nMaterialThermalExpansion) { | ||
| SU2_MPI::Error("ELASTICITY_MODULUS, POISSON_RATIO, MATERIAL_DENSITY, and THERMAL_EXPANSION_COEFF need " | ||
| "to have the same number of entries (the number of materials).", CURRENT_FUNCTION); | ||
| } | ||
|
|
||
| if (nElectric_Constant == 0) { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / CodeQL
No raw arrays in interfaces