Coder Social home page Coder Social logo

Unnecessary call to WALL_MODEL? about fds HOT 10 CLOSED

mcgratta avatar mcgratta commented on August 29, 2024
Unnecessary call to WALL_MODEL?

from fds.

Comments (10)

rmcdermo avatar rmcdermo commented on August 29, 2024

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.

from fds.

drjfloyd avatar drjfloyd commented on August 29, 2024

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.

from fds.

mcgratta avatar mcgratta commented on August 29, 2024

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)

from fds.

mcgratta avatar mcgratta commented on August 29, 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.

from fds.

marcosvanella avatar marcosvanella commented on August 29, 2024

Ok, I'll look into this. Thanks,

from fds.

marcosvanella avatar marcosvanella commented on August 29, 2024

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.

from fds.

mcgratta avatar mcgratta commented on August 29, 2024

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.

from fds.

marcosvanella avatar marcosvanella commented on August 29, 2024

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

from fds.

mcgratta avatar mcgratta commented on August 29, 2024

Try it now.

from fds.

marcosvanella avatar marcosvanella commented on August 29, 2024

Completed.

from fds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.