General

General

Can you create a boundary profile that is a function of both space and time in CFX?

    • FAQFAQ
      Participant

      The tabulated data used in a user function can only use either 1 or 3 arguments, so having a profile that is a function of x,y,z, and t would require User FORTRAN. However, it is possible to create the necessary boundary file with only 3 arguments (x, y, and t). In most cases, 2 spatial variables will be sufficient to define your profile. The data can be created in Excel and then be imported as a csv file into CFX-pre using tools -> import profile data. The calls to the user function would then need to be manipulated to correctly call x,y,t rather than x,y,z. Please ensure that interpolation is carried out correctly with respect to time, i.e. you need to interpolate between the closest points in the space rather than taking points from other points in time. This can be achieved by scaling the time variable used in the tabulated data (ensuring that the appropriate factor is used when the function is called).