-
Notifications
You must be signed in to change notification settings - Fork 1k
Multi grid output #1266
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
Multi grid output #1266
Changes from all commits
1a7991a
fcb3bc2
80363b6
25d55af
f648fbf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2735,6 +2735,41 @@ bool CFlowOutput::WriteVolume_Output(CConfig *config, unsigned long Iter, bool f | |
| return false || force_writing; | ||
| } | ||
|
|
||
| void CFlowOutput::AddCommonFVMOutputs(const CConfig *config) { | ||
|
Contributor
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. 👍 Special reason to not move
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. Order matters I think.
Contributor
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. yep it does (tried it out) ... it needs to be the first, at least for paraview output |
||
|
|
||
| AddVolumeOutput("ORTHOGONALITY", "Orthogonality", "MESH_QUALITY", "Orthogonality Angle (deg.)"); | ||
| AddVolumeOutput("ASPECT_RATIO", "Aspect_Ratio", "MESH_QUALITY", "CV Face Area Aspect Ratio"); | ||
| AddVolumeOutput("VOLUME_RATIO", "Volume_Ratio", "MESH_QUALITY", "CV Sub-Volume Ratio"); | ||
|
|
||
| AddVolumeOutput("RANK", "rank", "MPI", "Rank of the MPI-partition"); | ||
|
|
||
| for (auto iMesh = 1u; iMesh <= config->GetnMGLevels(); ++iMesh) { | ||
| stringstream key, name; | ||
| key << "MG_" << iMesh; | ||
| name << "Coarse_Grid_" << iMesh; | ||
| AddVolumeOutput(key.str(), name.str(), "MULTIGRID", "Coarse mesh"); | ||
| } | ||
| } | ||
|
|
||
| void CFlowOutput::LoadCommonFVMOutputs(const CConfig* config, const CGeometry* geometry, unsigned long iPoint) { | ||
|
|
||
| if (config->GetWrt_MeshQuality()) { | ||
| SetVolumeOutputValue("ORTHOGONALITY", iPoint, geometry->Orthogonality[iPoint]); | ||
| SetVolumeOutputValue("ASPECT_RATIO", iPoint, geometry->Aspect_Ratio[iPoint]); | ||
| SetVolumeOutputValue("VOLUME_RATIO", iPoint, geometry->Volume_Ratio[iPoint]); | ||
| } | ||
|
|
||
| SetVolumeOutputValue("RANK", iPoint, rank); | ||
|
|
||
| if (config->GetWrt_MultiGrid()) { | ||
| for (auto iMesh = 1u; iMesh <= config->GetnMGLevels(); ++iMesh) { | ||
| stringstream key; | ||
| key << "MG_" << iMesh; | ||
| SetVolumeOutputValue(key.str(), iPoint, geometry->CoarseGridColor(iPoint,iMesh-1)); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| void CFlowOutput::SetTimeAveragedFields(){ | ||
| AddVolumeOutput("MEAN_DENSITY", "MeanDensity", "TIME_AVERAGE", "Mean density"); | ||
| AddVolumeOutput("MEAN_VELOCITY-X", "MeanVelocity_x", "TIME_AVERAGE", "Mean velocity x-component"); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.