Search found 77 matches

by daniele
Wed Dec 04, 2019 11:07 am
Forum: Code_Saturne usage
Topic: ALE simulations: local fluid force on specific rigid body positions
Replies: 14
Views: 1154

Re: ALE simulations: local fluid force on specific rigid body positions

Dear Luciano,

Thanks to your help, I managed to calculate the forces on the faces I wanted to.

Thank you very much!

Best regards,

Daniele
by daniele
Fri Nov 29, 2019 5:13 pm
Forum: Code_Saturne usage
Topic: ALE simulations: local fluid force on specific rigid body positions
Replies: 14
Views: 1154

Re: ALE simulations: local fluid force on specific rigid body positions

Hello, I agree with you about the example. Nevertheless, in code_saturne doxygen "iforbr" is described to be "field id of the stresses at boundary". That's why I am confused. It looks as if iforbr was just mu*du_i/dx_i. Moreover, are pressure forces taken into account inside iforbr? I did a test to ...
by daniele
Fri Nov 29, 2019 2:33 pm
Forum: Code_Saturne usage
Topic: ALE simulations: local fluid force on specific rigid body positions
Replies: 14
Views: 1154

Re: ALE simulations: local fluid force on specific rigid body positions

Dear Luciano, Thanks a lot, you are right, the correct field is iforbr. I am now able to calculate the Stress on the cell surfaces. I still have one problem. In order to obtain the force, I have to multiply the Stress by the boundary surface of the cell. The surface value is given by surfbn(ifac) if...
by daniele
Fri Nov 22, 2019 1:35 pm
Forum: Code_Saturne usage
Topic: ALE simulations: local fluid force on specific rigid body positions
Replies: 14
Views: 1154

Re: ALE simulations: local fluid force on specific rigid body positions

Dear Luciano,

Thank you for your suggestion. Adding the option does not prevent the problem to occur :(
I attached also the listing showing some details of the error.

Best regards,

Daniele
by daniele
Thu Nov 21, 2019 10:35 am
Forum: Code_Saturne usage
Topic: ALE simulations: local fluid force on specific rigid body positions
Replies: 14
Views: 1154

Re: ALE simulations: local fluid force on specific rigid body positions

Dear Yvan,

Thank you for your help. Unfortunately, even changing the format I get the same error.
I attach the cs_user_extra_operations.f90 I use, just in case it could help more.

Thanks a lot.

Best regards,

Daniele
by daniele
Mon Nov 18, 2019 2:34 pm
Forum: Code_Saturne usage
Topic: ALE simulations: local fluid force on specific rigid body positions
Replies: 14
Views: 1154

Re: ALE simulations: local fluid force on specific rigid body positions

Hello, I am still trying to get the forces on selected faces, but I have some issues. I simply write the following, inside the cs_user_extra_operations.f90: call getfbr('STRUCT_WALL and y<0.5', nlelt, lstelt) do ilelt = 1, nlelt ifac = lstelt(ilelt) fx_1=fx_1+forstr(1,ifac) enddo This seems to work ...
by daniele
Thu Nov 07, 2019 3:38 pm
Forum: Code_Saturne usage
Topic: ALE - mesh viscosity in v6.0
Replies: 8
Views: 539

Re: ALE - mesh viscosity in v6.0

Hello Yvan, Attached you will find the xml and the ALE routines. I am simulating a vibrating tube in a tube bundle. I set the mesh viscosity constant (with a high value) on subdomains corresponding to the tubes boundary layer, and mesh viscosity as a function of the distance in the mesh around the m...
by daniele
Wed Nov 06, 2019 11:16 am
Forum: Code_Saturne usage
Topic: ALE - mesh viscosity in v6.0
Replies: 8
Views: 539

Re: ALE - mesh viscosity in v6.0

Hello, I have set up the ALE simulation through the subroutines: it seems to work correctly, I don't have the boundary condition problem anymore. Is there a way to double check the ALE boundary conditions (fixed wall, sliding, ...) defined through the cs_user_boundary_conditions-ale.f90 (I mean, be ...
by daniele
Tue Nov 05, 2019 7:46 pm
Forum: Code_Saturne usage
Topic: ALE - mesh viscosity in v6.0
Replies: 8
Views: 539

Re: ALE - mesh viscosity in v6.0

Looking at the documentation, I have understood how to set the simulation through the cs_user_fluid_interaction.f90. I will do it and see if I can manage to avoid the problem I get when using the GUI. I will let you know as soon as I have realized the test.

Best regards,

Daniel
by daniele
Tue Nov 05, 2019 4:17 pm
Forum: Code_Saturne usage
Topic: ALE - mesh viscosity in v6.0
Replies: 8
Views: 539

Re: ALE - mesh viscosity in v6.0

Hello Yvan, I have checked the error.case, and the problem is actually the mouving boundary condition, set as "internal coupling". If I change it to "fixed velocity", the simulation runs fine. It looks strange, as if "internal coupling" of the GUI was not recognized. Is there a way to set an "intern...