Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Slanted bottom level

    • Seyyed Mahmoud Mousavi
      Subscriber

      Dear all,

       

      I am trying to model water wave propagation in a 3D open channel domain. My flume of interest, has a slanted bed, say 1:74 slope in y direction, please see the below picture.

      In outflow BC, what should I enter for the bottom level? The bottom left corner location is (x,y) = (0,0) m, but the bottom right corner location is (x,y) = (10 , 0.14) m.



      Thanks in advance!

    • Rob
      Forum Moderator

      I've not tried that recently, but from memory, I think you set the bottom of the boundary. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Ok, I understand. Given the wave condition propagating from the inlet boundary, H = 0.088 m and T = 1.05 s, theoretically we expect wave breaking somewhere in the flume where water depth becomes lesser than the inlet. On the other hand, in ANSYS, we can choose only airy (linear) wave theories as the open channel BC. Does that mean we cannot imply or simulate this wave condition with this conventional BC that is already available in Fluent? Because I am receiving the floating exception error, while I reduce the wave height (to avoid wave breaking), the model works. In this case, what can be the solution or alternatives to this matter where the wave most probably breaks?

      I was thinking, instead of applying the open channel wave BC at the inlet, maybe I should simulate a wave generator (by moving mesh boundary) at the inlet of the domain and let the Fluent solver physically develop the propagation of the wave in our computational flume?

      Thanks!

    • Rob
      Forum Moderator

      Floating point is likely divergence, so is more likely related to the solution changing too quickly or an interaction of the free surface with the mesh. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      So, if I understood correctly, you are suggesting decreasing the time step? I have already tried several time steps, I always got the Floating Point error. The only case I could run the simulation successfully is when I am reducing the wave height from ~ 9 cm to ~ 5 cm.

      Or what are the other suggestions to overcome that error?

    • Rob
      Forum Moderator

      If reducing the wave height works it's because it's removing a model instability, reducing the time step will reduce the impact of the instability on the solution hence me suggesting it. Note, the step might become very small. You also need to check the cell size and shape as the wave enters the domain: how many cells are across the amplitude and how low is the aspect ratio. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Hi Rob!


      I followed your suggestion to decrease the time step. I set the Adaptive time step with CFL = 0.35, and initial time step size = 1e-5 (s). Fortunately the solution has been converged.

       

      I have another question: I set to save the outputs every 0.15 (s) of the flow time. However, there are some time intervals, that the outputs are not saved at each 0.15 (s), but they are saved in bigger time intervals. This makes the output look like with some missing data. How can I make sure that Fluent will save every 0.15 (s) of outputs?

    • Rob
      Forum Moderator

      I think it'll pick the nearest time step, so you may want to check what the maximum permitted step size is.  If you're wanting a surface height you can also monitor, plot and save that directly as you run the model: look at the Report function. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Thanks for the reply.

      1- Where/how can I check the "what the maximum permitted step size is"?

      2- "If you're wanting a surface height you can also monitor...", again how? Should I choose something like facet and then max facet speed or what?

       

      Could you please assist with those questions?

    • Rob
      Forum Moderator

      Check the Settings in the iterate panel - adaptive time stepping has controls that may need checking. 

      Have a look on here for "depth" and the like - I've answered a similar question fairly recently. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Hello again and happy holidays!

      I could run a 2-D simulation of water wave propagations (from the left wall to the right wall of the channel) in my computational domain (as shown in the first picture of this topic). This computation, took approximately 1 day to be completed. Subsequently, I wanted to include the discharge of a flow into my domain as well (from right to left) together with the wave propagation (as in the previous model). Everything else remained similar to the previous model (the model with only wave propagation). However, this time, the simulation is taking more than 5 days, where the simulation has been interrupted in day 6th (I don't know yet why it collapsed). My primary question is that, is it logical (does it make sense) that including a discharge of a flow into my other end side of the BC, should cause increasing the computational costs from one day to more than 5 days?

       

      Thanks!

    • Rob
      Forum Moderator

      Merry Christmas & Happy New Year! 

      Speed is a function of cell count, but time (duration) can also be iteration & time step count: do you mean the same number of iterations takes longer? 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Yes, I kept all the numerical settings and configurations and iterations the same. The time step is based on the CFL number (assigned to be 0.35) not a fix value by myself, though I kept the CFL number the same between these 2 models.

    • Rob
      Forum Moderator

      Is the solver needing more iterations per time step? How many more cells did the outlet add? Does the outlet change the flow velocity in the system? 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Hi Rob!

      I solved the time-step issue with your suggestions. Another question: I am applying a wave BC at the inlet of my domain where I chose "Wave BC Options: Short Gravity Waves." My question is, what are the governing equations that are solved inside the domain? Are Navier Stokes equations applied to solve the inner domain? I mean, the option "Short Gravity Waves" is applied only at the inlet of the domain to generate waves and then the wave propagation inside the domain is solved by N-S equations or no the entire domain is governed by Short Gravity Waves equations?

      I hope I could be clear on my question and I can provide more details if necessary.

       

      Thanks again!

    • Rob
      Forum Moderator

      It's a boundary condition to generate waves based on the wave theory. Fluent solves the normal N-S maths in the cell zone. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Hi Rob!

       

      I am applying a regular wave propagation condition at the inlet of my domain. At the same time, I am applying a current velocity at the outlet of my computational domain toward the inlet (to flow inside the domain to study the wave-current interaction). How can I let the incoming flow generating from the outlet boundary side pass through the inlet side (where waves are generating) of my domain while the inlet BC is open-channel wave?

       

      Thanks as always!

    • Rob
      Forum Moderator

      So the wave is travelling against the current? Have a look at the boundary options re inlet direction vector. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Yes, Rob! Waves are travelling from the inlet boundary against the flow which is coming from the outlet boundary. Could you please specify better what do you mean by "look at the boundary options re inlet direction vector"? I mean what are you suggesting to resolve the issue?

      I want the current flow to move out from the inlet boundary location when it reaches there. However, the inlet boundary location is assigned as a wave BC.

       

      Thanks!

    • Rob
      Forum Moderator

      You can set flow speed to be different from the wave boundaries - hence checking whether you can set flow out via the inlet. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Ok, that is exactly my question? I mean how I can assign an outflow to my inlet boundary location, while I have already assigned a wave BC at the inlet of my domain?

    • Rob
      Forum Moderator

      Have you looked at the options in the boundaries? Specifically things like direction vector. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      I am not sure if we are talking about the same issue. My problem is not the direction vector. My problem is, my inlet domain has been assigned a wave BC. At the same time, I need the flow which is coming from the outlet boundary location toward the inlet side, to pass through the inlet side. How I can assign 2 different BCs at the inlet side?

    • Rob
      Forum Moderator

      You don't, but with the various options for flow vector, can you set a negative velocity on the inlet and waves? I've run cross flow waves at various angles but not full counter-current before. 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Good morning Rob (in Italy is morning now)!

      I tried to change the inlet BC from Wave only to Wave and Current as shown in the below picture. Basically, in addition to the wave BC which should propagate from the inlet into the computational domain, I tried to add some negative velocity values to the secondary phase (water) at the inlet. I am adding this negative velocity value at the inlet, ONLY to (hopefully) resolve the issue of the water flow accumulation which is coming from the outlet of my domain (I need to find a way to drain this water when it reaches at the inlet of my domain).

       

       

      However, this did not help to resolve the issue. With this BC, I could not see any wave propagation at the inlet (the left wall) of my domain. Also, the water height in my flume got increased. Please see the below pictures.

       

      So any suggestions to resolve the wave+current interaction at the inlet boundary (which should be wave propagating)?

      Thanks!

    • Rob
      Forum Moderator

      And setting wave reference direction to vector doesn't help? 

    • Seyyed Mahmoud Mousavi
      Subscriber

      Ok! Setting wave reference direction to vector helps to make the wave and flow propagate at different directions at the inlet of my domain, Thank you!

      My next question is, how can I assign the flow velocity at the out let of my domain only to the water portion (not to the air phase)? Likely, I need to apply the wave BC at the inlet only to the water phase not the air phase. Whenever I change the phase from mixture to water in the BC, the BC window changes like I cannot specify any flow velocity or anything. However, when I changed the option to mixture, I can assign the flow velocity magnitude and so on, but I want to assign these conditions only to water.

      • Seyyed Mahmoud Mousavi
        Subscriber

        I tried to inquire about the last question in a new post with a greater detail.

        Fluent multiphase different BCs

    • Rob
      Forum Moderator

      OK, that's fine. I'll close this thread. 

Viewing 27 reply threads
  • You must be logged in to reply to this topic.