Ansys Learning Forum › Forums › Discuss Simulation › Fluids › Solving custom transport equations › Reply To: Solving custom transport equations
September 26, 2023 at 5:00 pm
James
Subscriber
The term dq/dt is a function of the scalar, so it’s basically a coupled PDE. So can I use C_UDSI macro in the function to input the value of the scalar? I am asking because in the past I tried this and I would get a segmentation error. I suppose it was because the scalar was not yet defined and I accessing it’s value (through C_UDSI macro). And therefore, since the value of the scalar wouldn’t be calculated in the current time step, would it still work or give me a segmentation error? I am sorry, this maybe a stupid question