Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Acoustics simulations via the wave equation model

    • mhsuan
      Subscriber

      I'm doing hydroacoustics simulations via the wave equation model in Fluent. Is there any tutorial to learn the procedure to implement the wave equation solution, including setups of the source mask, sponge layer mask, time ramping, etc.? Especially how to devise a UDF to define a source region? Any sample UDF would be greatly appreciated

      Thank you very much.

    • Federico
      Ansys Employee

      This is an example UDF for a mask, where you would gradually set the value from 0 near the source to 1 away from the source.

      DEFINE_SOURCE_MASK(src_mask_define, c, t)
      {
        real xc[3];

        real arg, fun;

        C_CENTROID(xc,c,t);
       
      arg = [expression that varies your source from 0 to 1 depending on the location relative to your source]

        fun = arg;

        return(fun);
      }
Viewing 1 reply thread
  • You must be logged in to reply to this topic.