Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Fluids

Fluids

Topics related to Fluent, CFX, Turbogrid and more.

Old time step value to set boundary condition

    • BiomedModeller
      Subscriber

      Dear all,
      I am trying to assign Windkessel model (RCR) to an outlet of an artery. To do this without Fortran routines, I require to access to the value of pressure in last time step. There is a workaround using "Probe" function and monitor points. However, it cannot be used to define an expression to set the boundary condition. Any hint how to solve this issue? 
      Thanks

    • DrAmine
      Ansys Employee
      You can use workaround using arithmetic average over last two time steps with the probe expression. As ASC you can check that on the portal.
    • BiomedModeller
      Subscriber

      Dear Amine,
      Thanks for the reply.
      I did do that and it worked well. The problem is CFX does not allow me to use it as an expression to define boundary condition. I want to use the value of old pressure in outlet BC definition and CFX says you cannot use probe in BC definition. What do you suggest?

    • DrAmine
      Ansys Employee
      Try assigning that To algebraic variable. If it does not work let us know.
    • BiomedModeller
      Subscriber

      We have done that as well. Gives the return code 1 error bellow:


       


      +


      +


       


       |                  User Defined Monitor Information                  |


       


       +


      +


       


        Monitor Point: MP current Q


       


                              Arithmetic Sum


       


        Monitor Point: MP current P


       


                              Arithmetic Sum


       


        +


      +


       


       |                    Writing crash recovery file                     |


       


       +


      +


       


         Details of error:-


       


       



       


       Error detected by routine MAKDAT


       


       CDANAM =  LVAR CDTYPE =  INTR ISIZE =  123


       


       CRESLT = OLD


       


        


       +


      +


       


       |                An error has occurred in cfx5solve:                 |


       


       |                                                                    |


       


       | The ANSYS CFX solver exited with return code 1.   No results file  |


       


       | has been created.                                                  |


       


       +


      +


       

    • BiomedModeller
      Subscriber

      The Ansys manual emphasizes for the probe that:


      Note:  The probe function does not calculate a value for a statistic until the defined interval is complete. As a result, a “probe” function that retrieves a statistic from an expression-based monitor:


       



      • Should not be used in a CEL expression for a quantity that is required at all times, for example, a boundary condition.


       


       

    • BiomedModeller
      Subscriber

      Any update please?

    • DrAmine
      Ansys Employee

      You can provide a good starting value for that variable if used all time.


      If still not helping you will need to use User Fortran.

Viewing 7 reply threads
  • The topic ‘Old time step value to set boundary condition’ is closed to new replies.
[bingo_chatbox]