Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Cold Plate Boundary Condition

    • Umair Syed
      Subscriber

      Hi, 

      I am designing a cold plate but I want to input conditional volume flow rate dependent on cold surface temprature. For example if the temp increases to 350K i want the mass flow rate to be 0.0446 kg/s if it is lower than 350 I want to turn off the flow rate to 0. I cant write a UDF can this be achieved using expression editor? If so how?

    • Rob
      Forum Moderator

      You can use IF statements in Expressions. Start here  https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v231/en/flu_ug/flu_ug_expressions.html

    • Umair Syed
      Subscriber

      I used the expression:

      IF(WallTemprature>350[K], 0.0446[kg/s],0[kg/s]) 

      But the mass flow rate remains 0. 

      I also cant access the link as my account is a free email not institute linked.

    • Umair Syed
      Subscriber

      I am applying 3200 W/mK. So wall temp should increase to more than 350K. 

    • Rob
      Forum Moderator

      If you click on Help in Fluent it'll add a token/cookie/biscuit to the browser. The link I gave you then works. 

      How is the wall defined, and what report did you use for "WallTemperature"? 

    • Umair Syed
      Subscriber

      How to define the wall? I thought is was the solid region on which heat flix was applied. The region appeared as wall under boundary conditions.

      For the report I plotted massflow against tine. Can I send you the project so you can have a look at it?

       

    • Rob
      Forum Moderator

      Correct, but what thermal condition did you set on the wall? Heat flux, temperature, convection etc. 

      What is the definition of the report "WallTemperature"? 

      We (staff) are not permitted to take files, we can only review images and notes that are posted in public. 

      • Umair Syed
        Subscriber

         

        I input a heat flux of 3200W/mK on the bottom of the plate the rest of the conditions were adiabatic. I have attached the images. Results 1 shows the setup and result 2 shows the obtained result and the expected results.

         

        • Umair Syed
          Subscriber

          The second results is:

    • Rob
      Forum Moderator

      Can you post the WallTemperature report definition too.  I'd also question any model with a time step of 1s and when drawing conclusions from 4 time steps. 

      • Umair Syed
        Subscriber

        I increase the timesteps to 300 seconds. Alos the condtions I put earlier are not working Error: expression not valid. I changed the condtions to IF (StaticTemprature>300[K], 0.0446[kg/s],0[kg/s]) and plotted the results. The surface tempraure of the wall increases linearly. I think the issue is the StaticTemprature Condition as it solely depends on mass inlet which does not increase to above 288[K]. How should I write the condition if I want the wall temprature (Part 1:003) not to exceed 300[K]

      • Umair Syed
        Subscriber

        I also tried IF(maximum(TotalTemprature,[part 1:003])>350[K], 0.0446[kg/s], 0[kg/s]) but it also doesnt work

    • Rob
      Forum Moderator

      Did you create an expression of the wall temperature and then use that for the inlet, or use the inlet temperature?

      • Umair Syed
        Subscriber

         

        I just used walltemprature from variable list. So under BC inlets i selected new expression then under variables i selected temprature then wall temp.

         

      • Umair Syed
        Subscriber

        I but i also tried a different expression that doesnt this too was input at the mass flow inlet expression.

         

    • Rob
      Forum Moderator

      But without setting a location for that temperature? 

      • Umair Syed
        Subscriber

         

         

      • Umair Syed
        Subscriber

        Sorry, I dont understand your question. The second tine I did set the location as replied above.

    • Rob
      Forum Moderator

      Is "part 1:003" the wall? What if you get a report for the wall and then use that in the flow expression? 

      • Umair Syed
        Subscriber

         

        Yes, part1:1003 is the wall, heat flux is applied to. I dont know how to get the report and use it in expression. Can you provide the expression? My project's deadline is approaching and I have taken my project supervisor’s permission to take outside help.

         

    • Rob
      Forum Moderator

      I'm not able to give specifics on here due to the rules we must work to. I suggest creating a report (Report Definition, menu on left side of Fluent: NOT an expression) on the wall, then look at how you can use that in an Expression. 

      • Umair Syed
        Subscriber

        IF({report-def-1}>290[K],0.0446[kg/s],0[kg/s]), I used this and the report definition was vertex maximum, wall temperature of 1:003. But I am getting a floating point error now when 290 is reached.

    • Rob
      Forum Moderator

      Zero's can be awkward in boundary settings, try 0.00001 instead.    The other possibility is the shock to the solution is sufficient to cause the solver some problems, what time step are you using? 

      • Umair Syed
        Subscriber

        I am using 1s. But I think a smaller time step would be better. I used 0.0001 it is more stable however after further iteration it crashes.

         

    • Rob
      Forum Moderator

      OK, so the expression is working, but the change is messing with the solver. Next step is to see what's going on in the flow. 

      • Umair Syed
        Subscriber

        Yes, the residual rise considerably as the volume flow rate is changed

    • Rob
      Forum Moderator

      They will. So, you may need to look at a slower rate of change or the like. Also, any instant cut off could cause the solution to oscillate: turning the flow off could trigger the temperature to rise & turn the flow back on, then off as the temperature drops in the next time step. 

      Have a look at feed forward and feed back control theory: all I remember from my Uni course is that you spec out the valves etc to withstand the pressure and material (corrosion resistant etc) then find a specialist! 

      • Umair Syed
        Subscriber

        Instead of turning on the volumeflow rate instantly is there a way to gradually incrase the volumeflow rate by altering the condtions in the expression? I am trying to multiply by time but it the time is absolute value.

      • Umair Syed
        Subscriber

        Also can this control theory be incoporated in Ansys? Can the oscillations of temprature fluctuation be modelled?

    • Rob
      Forum Moderator

      The oscillations and control functions can be added via UDF. Not sure about expressions simply because of the complexity of the maths and potential need for retaining a previous time step value(s).  It's not an easy option so tread carefully. 

      For a gradual change you'd need to add a more complex set of IF statements, so you'd finish up with a max, min and intermediate. Intermediate would be a function of temperature in some way. Again not so easy, but probably easier than a UDF. Nesting three options into an expression might be a fun exercise though, so, again it may need a UDF. It'll be easier than the full control system though. 

      Expressions are fairly new to Fluent (3-ish main releases) so what can't be done now may be available next time. That does make support more complex as we're always supporting 2-5 older versions, current release and often testing next release. Not forgetting input into the future plan..... 

      • Umair Syed
        Subscriber

        I also tried to vary heat flux as a function of time and imported the txt file. However, I am still getting a floating point error. I reduced the step size to 0.1 seconds and the heat varies every 5 seconds. 

    • Rob
      Forum Moderator

      Have a look at the flow, temperature and residuals. As it works OK with fixed values, and with expressions calling fixed values the likely cause is "shock" when the flux changes. 

      • Umair Syed
        Subscriber

        How can I deal with the shock? Do I change the solver?

    • Rob
      Forum Moderator

      Time step I suspect. That and review how the models interact. It's not an easy diagnosis, and I'm very limited via the Forum. 

      • Umair Syed
        Subscriber

        Is there any way other than the forum?

    • Rob
      Forum Moderator

      That will depend on your University licence. We're here to help, but on here only within some very strict limits. 

      • Umair Syed
        Subscriber

        What forum requires university license? I study at Imperial College

         

    • Rob
      Forum Moderator

      The forum doesn't require a licence: however the rules I have to work to mean I can't download any files so it's images only. 

      One thought. When you turn off the flow there's a "shock" in the system. In reality that may be seen as water hammer or another density effect on the flow. Try the compressible liquid or ideal gas and see if that helps. 

      • Umair Syed
        Subscriber

         

        Do you mean change the solver from pressure based to density based? I tried relaxation factor for density but it doesnt work. I also tried density solver that doesnt work as well. 

        The continuity residual is overshooting if thay could help.

         

    • Rob
      Forum Moderator

      Stay with pressure based solver, and re-read my comment re the material density.

      • Umair Syed
        Subscriber

        I tried but same problem persists. 

    • Rob
      Forum Moderator

      What material density did you use?

      • Umair Syed
        Subscriber

        I used both the compressible liquid and gas law

    • Rob
      Forum Moderator

      And how does the flow look as it's diverging? 

      • Umair Syed
        Subscriber

        The continuity residual increases exponentially

    • Rob
      Forum Moderator

      And the flow? 

      • Umair Syed
        Subscriber

        Should I create contours? The mass flow rate follows the same pattern as before.

    • Rob
      Forum Moderator

      Probably a good idea: you need to understand what's going on. Contours & vectors will help with that. 

      • Umair Syed
        Subscriber

        I think the condition (300K) is rigid can I introduce some lower limit to switch volume flow back on after the temperature rises again after initially turning the volume flow rate on? 

    • Rob
      Forum Moderator

      Yes, but the logic could be interesing if you're not careful. Most things can be done, but it's not always simple. 

Viewing 25 reply threads
  • The topic ‘Cold Plate Boundary Condition’ is closed to new replies.