-
Notifications
You must be signed in to change notification settings - Fork 121
Example case for 3D turbulent mixing layer #133
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
Conversation
hyeoksu-lee
commented
Mar 25, 2023
|
aside from my comments above, you should also add documentation about these input parameters (and how to use them) in https://github.com/MFlowCode/MFC/blob/master/docs/documentation/case.md |
| + (1d0 - eta)*orig_prim_vf(i + cont_idx%end)) | ||
| end do | ||
|
|
||
| if (vel_profile) then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please indent this correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use a comment to describe what this is doing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
|
|
||
| parallel_io = .false. | ||
| precision = 2 | ||
| vel_profile = .false. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please indent this correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
| integer :: precision !< Precision of output files | ||
|
|
||
| ! Hypertangent velocity profile | ||
| logical :: vel_profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please indent this correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't how you use doxygen. please use follow the pattern above, like so: logical :: vel_profile !< Hypertangent velocity profile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
|
|
||
| end subroutine s_perturb_surrounding_flow ! ---------------------------- | ||
|
|
||
| subroutine s_superposition_instability_wave() ! ------------------------------ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this only work in 2D or 3D? if so, this should be added to the startup checks in m_checker.f90 (or whatever the file is called) so that you cannot run instability_wave on a 1D problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this is only work in 2D and 3D. I added checks in m_checker.f90 to prevent running on a 1D case.
| ci=0d0 | ||
| do j=0,n | ||
| ii = 1; jj = 1; br((ii-1)*(n+1)+j,(jj-1)*(n+1)+j) = alpha*u_mean(j); | ||
| ii = 1; jj = 2; br((ii-1)*(n+1)+j,(jj-1)*(n+1)+j) = alpha*rho_mean(j); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please indent consistently
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
|
||
| end subroutine s_instability_wave | ||
|
|
||
| subroutine generate_wave(nl,vnr,vni,alpha,beta,wave,shift) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
documentation needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added documentation on it.
| integer i,j,k | ||
|
|
||
| do i=0,m | ||
| do j=0,n |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indent correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
| ! 6) cdiv | ||
| ! 7) pythag | ||
| !==================================================================== | ||
| subroutine cg(nm,nl,ar,ai,wr,wi,zr,zi,fv1,fv2,fv3,ierr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these routines should live in a separate module so they do not pollute this one. probably in the commmon/ directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All subroutines for solving the eigenvalue problem are moved to m_eigen_solver.f90 in common directory.
…o prevent the use of vel_profile and instability_wave in 1D case
|
Please add documentation about this feature in https://github.com/MFlowCode/MFC/blob/master/docs/documentation/case.md?rgh-link-date=2023-03-26T18%3A06%3A29Z |
I updated case.md file to include documentation about the new feature. |