Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix clang warnings in CNSSolver.cpp#2716

Closed
Nesar976 wants to merge 2 commits intosu2code:developfrom
Nesar976:clang-unused-include-cnssolver
Closed

Fix clang warnings in CNSSolver.cpp#2716
Nesar976 wants to merge 2 commits intosu2code:developfrom
Nesar976:clang-unused-include-cnssolver

Conversation

Copy link

Nesar976 commented Jan 23, 2026

This PR fixes clang and clang-tidy warnings in CNSSolver.cpp.

Unused includes were removed where applicable, and std::endl usages were
replaced to address performance warnings. The inclusion of
CFVMFlowSolverBase.inl is intentionally preserved for explicit template
instantiation, with a local suppression added to handle the clang
unused-includes warning.

No solver logic or numerical behavior is changed.

bigfooted reviewed Jan 23, 2026
Comment on lines +639 to +640
If the first point off the wall is in the turbulent region (mu_t/mu_l > 0.1),
the linear temperature gradient assumption is inaccurate. ---*/
Copy link
Contributor

bigfooted Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please cite a paper that states this.

Copy link
Author

Nesar976 Jan 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks for flagging this.

This is a known limitation of wall-function-based heat transfer models when the first off-wall point lies in the fully turbulent region. For example, see Kader (1981) and Launder & Spalding (1974), which discuss that linear temperature profiles are only valid within the near-wall region and break down when y+ is too large.

I can add an explicit reference in the comment or rephrase it to make the assumption more precise if you prefer.

pcarruscag changed the base branch from master to develop January 23, 2026 15:36
Copy link
Member

pcarruscag commented Jan 23, 2026

This looks like more AI slop. Join the slack channel and come a developer meeting introduce yourself if you are actually interested in contributing.

pcarruscag closed this Jan 23, 2026
Copy link
Author

Nesar976 commented Jan 23, 2026

Understood -- thanks for the feedback. I'll join the Slack and take some time to understand the project workflow and expectations before contributing further.

Nesar976 deleted the clang-unused-include-cnssolver branch January 23, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

bigfooted bigfooted left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants