controling rotational velocity of rotating inner mesh

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
st268
Posts: 64
Joined: Fri May 31, 2013 10:45 am

controling rotational velocity of rotating inner mesh

Post by st268 »

Hello,

Given a rotating meshed disk inside my domain, can I use user_scripts to control the speed of rotation based on what is happening inside my simulation?

thanks

Susan
Brian Angel

Re: controling rotational velocity of rotating inner mesh

Post by Brian Angel »

Hello Susan,

Just to confirm that I've understood your question, you want to control the rotational speed of the disc using, for example, some form of a fluid force i.e. pressure difference or viscous forces acting on the disc, without having to specify a rotational speed.

Brian Angel.
st268
Posts: 64
Joined: Fri May 31, 2013 10:45 am

Re: controling rotational velocity of rotating inner mesh

Post by st268 »

Yes that is it exactly. Sorry I was not more clear!

Susan
Jacques Fontaine
Posts: 118
Joined: Mon Feb 20, 2012 2:07 pm

Re: controling rotational velocity of rotating inner mesh

Post by Jacques Fontaine »

Hi
You can not do that with cs_user_scripts. Are you using rotor/stator module ?
st268
Posts: 64
Joined: Fri May 31, 2013 10:45 am

Re: controling rotational velocity of rotating inner mesh

Post by st268 »

Hi Jacques,

I was planning to yes. But I was hoping there was some way to control the rotational speed based on what is happening during the simulation and not just by giving a fixed value in usini

thanks

Susan
Yvan Fournier
Posts: 4105
Joined: Mon Feb 20, 2012 3:25 pm

Re: controling rotational velocity of rotating inner mesh

Post by Yvan Fournier »

Hello,

You can do that, but not in user_scripts.py, whic is for the run script. An appropriate user subroutine might be "cs_user_extra_operations", but check the descriptions of the different user subroutines in examples and the documentation to check what is the best fit.

Regards,

Yvan
Post Reply