Turbomachinery module : cs_user_extra_operations-turbomachin

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
yany
Posts: 60
Joined: Fri Aug 04, 2017 11:02 pm

Turbomachinery module : cs_user_extra_operations-turbomachin

Post by yany »

Hello everyone,

Now I'm using the cs_user_extra_operations-turbomachinery file to get the power and torque of wind turbine. However, the result is not reasonable.

I'm wondering if the pressure is included in the force which is used for calculating the torque and power of a turbine in the turbomachiery module of code_saturne? Could you please give me some suggestion about that? Many thanks!

All the best, Yany.
Attachments
cs_user_extra_operations.c
(13.03 KiB) Downloaded 294 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Turbomachinery module : cs_user_extra_operations-turboma

Post by Yvan Fournier »

Hello,

I assume the pressure is included (and usually is a much larger component of the force than the viscous parts).

Also, I am not sure what you are trying to do in the user subroutine. It seems to contain the full example set from turbo machinery. Are you using everything ? If not, you should only keep the part you use. I cannot easily check subroutines with extraneous parts, and if they confuse me, chances are they confuse you...

Regards,

Yvan
yany
Posts: 60
Joined: Fri Aug 04, 2017 11:02 pm

Re: Turbomachinery module : cs_user_extra_operations-turboma

Post by yany »

Yvan Fournier wrote:Hello,

I assume the pressure is included (and usually is a much larger component of the force than the viscous parts).

Also, I am not sure what you are trying to do in the user subroutine. It seems to contain the full example set from turbo machinery. Are you using everything ? If not, you should only keep the part you use. I cannot easily check subroutines with extraneous parts, and if they confuse me, chances are they confuse you...

Regards,

Yvan
Hello, Yvan,

Thanks for your reply. I need the example 1 only in this subroutines which can output the power of turbine. I used the file"cs_user_extra_operations-turbomachinery.c“ in SRC/EXAMPLE. I copied this file to the /SRC. and renamed it as cs_user_extra_operations.c. Because I only need the value of power, I just change the "rotor_blades" to "wall1"(which is name of wall boundary of my case). I don't know if it is right or not?

Many thanks for this.

All the best, Yan.
Attachments
cs_user_extra_operations.c
(9.23 KiB) Downloaded 258 times
Yvan Fournier
Posts: 4208
Joined: Mon Feb 20, 2012 3:25 pm

Re: Turbomachinery module : cs_user_extra_operations-turboma

Post by Yvan Fournier »

Hello,

This may work, but you may also have other computations which you do not need, or which may not be adapted to your mesh. So it is better to keep only the part useful for your case.

How different is your result from what you expected ?

Regards,

Yvan
Post Reply