Search found 230 matches

by Luciano Garelli
Mon May 09, 2016 1:47 pm
Forum: Code_Saturne usage
Topic: Axail fan modelling usin cs_fan.h
Replies: 16
Views: 2975

Re: Axail fan modelling usin cs_fan.h

Hello,

In my test case I have set inlet and outlet.

I attach the case file, the mesh and the fan function. If this case run without problem post your case in order to help you to debug the problem.

Regards,

Luciano
by Luciano Garelli
Mon May 09, 2016 2:57 am
Forum: Code_Saturne usage
Topic: Axail fan modelling usin cs_fan.h
Replies: 16
Views: 2975

Re: Axail fan modelling usin cs_fan.h

Hello,

I suspected that the axial torque has the influence that you mention.

Wth respect to the pressure curve, is a function of volumetric flow rate or velocity, because I dont understand what means with flow in th doxygen doc.

Regards

Luciano
by Luciano Garelli
Fri May 06, 2016 7:17 pm
Forum: Code_Saturne usage
Topic: Axail fan modelling usin cs_fan.h
Replies: 16
Views: 2975

Re: Axail fan modelling usin cs_fan.h

Hello, Some time ago I was working with other CFD software in a simulation with fan, so it is very interesting for me too. I was following the comments of Yvan, I added the "cs_fan.c" to my 4.2.1 version and also have to add "cs_math.c" and "cs_math.h" because the functions cs_math_3_cross_product()...
by Luciano Garelli
Mon Apr 25, 2016 3:11 pm
Forum: Code_Saturne usage
Topic: Calculation of forces and moments
Replies: 7
Views: 1658

Re: Calculation of forces and moments

Thanks Yvan, Now the results looks good and the values are as expected. One additional comment/suggestion for future versions, when choosing a slinding wall in the Boundary Conditions options through the GUI, only can be applied a traslational velocity. A rotational velocity will be very helpfull an...
by Luciano Garelli
Thu Apr 21, 2016 10:01 pm
Forum: Code_Saturne usage
Topic: Adding a source term in the momentum equation
Replies: 10
Views: 2267

Re: Adding a source term in the momentum equation

In the subroutine that you post, you use crvexp(3,ncelet) ....... do iel = 1, ncel crvexp(iel) = volume(iel)*beta*rho*(Tref-Temp)*gi enddo And in the documetation crvexp has two argument crvexp(i,iel) for vectorial fields, http://code-saturne.org/doxygen/src/cs__user__source__terms_8f90.html where "...
by Luciano Garelli
Thu Apr 21, 2016 8:05 pm
Forum: Code_Saturne usage
Topic: Adding a source term in the momentum equation
Replies: 10
Views: 2267

Re: Adding a source term in the momentum equation

Hello, In the predefined symbols the temperature doesn't appear, but is used in the example tab at least in CS 4.0. In the example that I have posted I only use the GUI and it seems to works. Additionally, you mention that the density is a constant, but you are using an expansion coefficient, so the...
by Luciano Garelli
Thu Apr 21, 2016 2:58 pm
Forum: Code_Saturne usage
Topic: Adding a source term in the momentum equation
Replies: 10
Views: 2267

Re: Adding a source term in the momentum equation

Hello, As Yvan says, you can write your expression (Boussinesq-type term) through the MEI as #air expansion coefficient (1/K) b=0.00343; #Ref temperature tref=300; # Density of air density = rho0*(1-b*(temperature-tref)); Then in "Gravity" you have to define the acceleration direction. I attach an e...
by Luciano Garelli
Fri Apr 15, 2016 4:48 pm
Forum: Code_Saturne usage
Topic: Calculation of forces and moments
Replies: 7
Views: 1658

Re: Calculation of forces and moments

Hello, The case is small, so I uploaded the mesh, the xml and the subroutines. In order to find where is the problem (I think in my subroutines) I have solved the same problem but now the inner sphere is held fixed and the sourrounding fluid is initialized with a rotating velocity throught the GUI m...
by Luciano Garelli
Thu Apr 14, 2016 2:10 pm
Forum: Code_Saturne usage
Topic: Calculation of forces and moments
Replies: 7
Views: 1658

Re: Calculation of forces and moments

Hello Yvan and thanks for answering. The first step was check the if the velocity field it is what I expected and then the efforts. The velocity was ok, but the efforts looks strange, so I decide to simplify the problem and solve a rotating sphere with the fluid at rest. For this case the inner sphe...
by Luciano Garelli
Tue Apr 12, 2016 4:07 pm
Forum: Code_Saturne usage
Topic: Calculation of forces and moments
Replies: 7
Views: 1658

Calculation of forces and moments

Hi everybody, I'm solving a problem of a rotating object (cylinder) in a fluid, initially at rest, and I want to compute the forces and moments acting on it. The object is placed at the origen and a tangencial (sliding) velocity is prescribed at the surface through cs_user_boundary_conditions.f90. T...