User Subroutine for Inlet Velocity

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
Shayor
Posts: 24
Joined: Tue Jan 05, 2021 3:40 pm

User Subroutine for Inlet Velocity

Post 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.
Attachments
Example.png
Yvan Fournier
Posts: 4080
Joined: Mon Feb 20, 2012 3:25 pm

Re: User Subroutine for Inlet Velocity

Post 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
Post Reply