Search found 242 matches

by Luciano Garelli
Thu May 12, 2016 4:23 pm
Forum: code_saturne usage
Topic: Velocity profile from file
Replies: 6
Views: 3525

Re: Velocity profile from file

Hello,

Do you want to use this velocity field to initialize the simulation?. If so, please check the cs_user_initialization-base.f90 and cs_user_initialization-compressible.f90 files at /SRC/EXAMPLES

Regards,

Luciano
by Luciano Garelli
Tue May 10, 2016 7:37 pm
Forum: code_saturne usage
Topic: Jacobi: error (divergence) solving for Velocity
Replies: 17
Views: 7055

Re: Jacobi: error (divergence) solving for Velocity

Hello,

I think that you have a typo at a boundary condition. I have checked your listing and find this

Code: Select all

The group "joint5" in the selection criteria:
"joint5 or join6"
 does not correspond to any boundary face.
May be "joint5" is "join5"

Regards,

Luciano
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: 3721

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: 3721

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: 3721

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: 1979

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: 2759

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: 2759

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: 2759

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: 1979

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...