Skip to content
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

Unnecessary call to WALL_MODEL? #13235

Closed
mcgratta opened this issue Jul 26, 2024 · 10 comments
Closed

Unnecessary call to WALL_MODEL? #13235

mcgratta opened this issue Jul 26, 2024 · 10 comments
Assignees

Comments

@mcgratta
Copy link
Contributor

I need to clean up the use of T_IGN and in the process I ran into this call in velo.f90 around line 385

         CALL WALL_MODEL(SLIP_COEF,B2%U_TAU,B2%Y_PLUS,MU_DNS(IIG,JJG,KKG)/RHO(IIG,JJG,KKG),SF%ROUGHNESS,&
                         0.5_EB/B1%RDN,VEL_GAS-VEL_T)

Is this call necessary given that we also call the WALL_MODEL in VELOCITY_BC. It seems that its only purpose is to provide values for B2%U_TAU and B2%Y_PLUS which raises two questions:

  1. Are these parameters needed in all simulations? They seem to only be used in very special circumstances.
  2. Could these parameters be calculated in the call to WALL_MODEL in VELOCITY_BC?
@rmcdermo
Copy link
Contributor

Yes, I suspect this is there to provide U_TAU and Y_PLUS. And I suspect it was put there because something else broke because it was not there, but I can't recall what. We would probably just have to remove it and see what firebot complains about.

@drjfloyd
Copy link
Contributor

Looking at the log for velo.f90, it looks like this call was added on 4/02/2012 in dd91f6d add Van Driest damping to near wall turbulent viscosity.

@mcgratta
Copy link
Contributor Author

Could we have our cake and eat it too by adding B2% to the U_TAU and Y_PLUS in the call we have to make to WALL_MODEL?

CALL WALL_MODEL(SLIP_COEF,U_TAU,Y_PLUS,MU_WALL/RHO_WALL,SF%ROUGHNESS,0.5_EB*DXX(ICD),VEL_GAS-VEL_T)

mcgratta added a commit to mcgratta/fds that referenced this issue Aug 1, 2024
mcgratta added a commit that referenced this issue Aug 1, 2024
FDS Source: Issue #13235. Move call to WALL_MODEL
@mcgratta
Copy link
Contributor Author

mcgratta commented Aug 1, 2024

I moved the call to WALL_MODEL into WALL_BC where it will only be called when needed by condensation, deposition or whatever.

Marcos -- see me about doing the same for GEOM.

@mcgratta mcgratta assigned marcosvanella and mcgratta and unassigned rmcdermo and drjfloyd Aug 1, 2024
@marcosvanella
Copy link
Contributor

Ok, I'll look into this. Thanks,

@mcgratta mcgratta removed their assignment Aug 12, 2024
@marcosvanella
Copy link
Contributor

Kevin, looks like after this change slices of VISCOUS WALL UNITS and FRICTION VELOCITY are not working correctly.
This is the test case test.fds:

&HEAD CHID='test', TITLE='Test.' /
&MESH IJK=144,36,36, XB=-3.0,9.0,-1.5,1.5,-1.5,1.5 /
# Time:
&TIME T_END=20.0 /
# BCs:
&SURF ID='INLET',VEL=-1. /
&VENT PBX=-3., SURF_ID='INLET'/
&VENT PBX= 9., SURF_ID='OPEN' /
&VENT PBY=-1.5, SURF_ID='MIRROR' /
&VENT PBY= 1.5, SURF_ID='MIRROR' /
&VENT PBZ= 1.5, SURF_ID='MIRROR' /
# Slices
&SLCF PBY=0, QUANTITY='VELOCITY', VECTOR=.TRUE. /
&BNDF QUANTITY='FRICTION VELOCITY' /
&BNDF QUANTITY='VISCOUS WALL UNITS' /
&TAIL /

Here is the friction velocity before:
Screenshot 2024-08-13 at 11 01 50 AM

This is after:
Screenshot 2024-08-13 at 10 52 24 AM

I run the case with the changes and commenting the deposition clause in line 114 of wall.f90:

IF (WC%BOUNDARY_TYPE==SOLID_BOUNDARY) THEN ! .AND. (ANY(SPECIES_MIXTURE%CONDENSATION_SMIX_INDEX>0).OR.DEPOSITION)) THEN
      CALL WALL_MODEL(SLIP_COEF,B2%U_TAU,B2%Y_PLUS,MU_DNS(BC%IIG,BC%JJG,BC%KKG)/RHO(BC%IIG,BC%JJG,BC%KKG),SF%ROUGHNESS,&
                      0.5_EB/B1%RDN,B1%U_TANG)
ENDIF

and the problem is still there.

@mcgratta
Copy link
Contributor Author

OK, I think that this is just a printout thing. That is, we were making this call to WALL_MODEL just to support the printout. I'll fix.

@marcosvanella
Copy link
Contributor

My bad, looks like this works in wall.f90:

IF (WC%BOUNDARY_TYPE==SOLID_BOUNDARY) THEN 
      CALL WALL_MODEL(SLIP_COEF,B2%U_TAU,B2%Y_PLUS,MU_DNS(BC%IIG,BC%JJG,BC%KKG)/RHO(BC%IIG,BC%JJG,BC%KKG),SF%ROUGHNESS,&
                      0.5_EB/B1%RDN,B1%U_TANG)
ENDIF

mcgratta added a commit that referenced this issue Aug 13, 2024
FDS Source: Issue #13235. Allow printout of Y+ and U_tau
@mcgratta
Copy link
Contributor Author

Try it now.

marcosvanella added a commit to marcosvanella/fds that referenced this issue Aug 13, 2024
marcosvanella added a commit that referenced this issue Aug 13, 2024
FDS Source : Issue #13235, move wall model call to CFACE loop in wall…
@marcosvanella
Copy link
Contributor

Completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants