Page 1 of 1
User Subroutine for Inlet Velocity
Posted: Tue Feb 15, 2022 6:09 pm
by Shayor
Hello everyone.I need a small favour to ask.If someone could guide me and provide me with a very close subroutine that serves the purpose I am trying to do.I have done the part in the GUI but want to use a subroutine in the hope that it will reduce my simulation time from 1.5-2 days to less time.
Re: User Subroutine for Inlet Velocity
Posted: Tue Feb 15, 2022 10:31 pm
by Yvan Fournier
Hello,
The expressions used in the GUI are already converted to compiled code (see cs_meg_* files in the src directory of a case that has run), so do not expect any gain from using a user-defined function here.
For performance, did you look at the performance.log file to see which steps are the most costly (usually linear-equation solvers and gradients) ?
Regards,
Yvan