Axail fan modelling usin cs_fan.h
Posted: Mon Feb 22, 2016 6:43 pm
Hello,
I'm trying to modelize an axial fan using the cs_fan.h.
Looking at the doxygen documentation in the programmer's documentation, things seem to have change since http://code-saturne.org/forum/viewtopic ... =axial+fan
As far as I've understood things :
In cs_user_initialization.f90, I've to define and initialze the fan.
In cs_user_source_terms, I've to tell to CS to compute the added source terms with tsvvtl.
For the moment, i've added those lines ine cs_user_initialization-fan.f90 in the SRC directory of the case, after the [init] :
When trying to run a calculation, I get the followings in the compile.log :
Does anybody know what could be wrong?
As you may have found, I'm running on Windows 7 64 bits
Code_saturne version is 4.0.2
Thanks a lot for your help...
JB
I'm trying to modelize an axial fan using the cs_fan.h.
Looking at the doxygen documentation in the programmer's documentation, things seem to have change since http://code-saturne.org/forum/viewtopic ... =axial+fan
As far as I've understood things :
In cs_user_initialization.f90, I've to define and initialze the fan.
In cs_user_source_terms, I've to tell to CS to compute the added source terms with tsvvtl.
For the moment, i've added those lines ine cs_user_initialization-fan.f90 in the SRC directory of the case, after the [init] :
Code: Select all
! Fan initialization
!
!
call cs_fan_define(1, 3, (/ 0., 0., 0. /), (/ 0., 0., 0.2 /), .707d0, .65d0, .1d0, (/ 300., -14.67, 0. /), 1.d0)
! 1 : constant_f
! 3 : fan dimension 3 : 3D
! cu : intersection coords. of axis and inlet face
! cd : intersection coords. of axis and outlet face
! .707d0 : fan radius
! .65d0 : blades radius
! .1d0 : hub radius
! fcar : curve coefficients, dgre 0,1 and 2 of the characteristic curve
! 1.d0 : fan axial torque
!call inivtl()
! call numvtl(fannbr)
! print *, fannbr
Code: Select all
cygwin warning:
MS-DOS style path detected: C:\tmp\TestCodeSaturne\Fan\fan1\RESU\20160222-1829\src_saturne\cs_user_initialization-fan.f90
Preferred POSIX equivalent is: /cygdrive/c/tmp/TestCodeSaturne/Fan/fan1/RESU/20160222-1829/src_saturne/cs_user_initialization-fan.f90
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
C:\tmp\TestCodeSaturne\Fan\fan1\RESU\20160222-1829\src_saturne\cs_user_initialization-fan.f90:48.5:
dt )
1
Warning: Unused dummy argument 'dt' at (1)
C:\tmp\TestCodeSaturne\Fan\fan1\RESU\20160222-1829\src_saturne\cs_user_initialization-fan.f90:92.28:
integer iel, iutile
1
Warning: Unused variable 'iutile' declared at (1)
C:\tmp\TestCodeSaturne\Fan\fan1\RESU\20160222-1829\src_saturne\cs_user_initialization-fan.f90:47.17:
( nvar , nscal , &
1
Warning: Unused dummy argument 'nscal' at (1)
C:\tmp\TestCodeSaturne\Fan\fan1\RESU\20160222-1829\src_saturne\cs_user_initialization-fan.f90:47.7:
( nvar , nscal , &
1
Warning: Unused dummy argument 'nvar' at (1)
cygwin warning:
MS-DOS style path detected: C:\tmp\TestCodeSaturne\Fan\fan1\RESU\20160222-1829\cs_solver.exe
Preferred POSIX equivalent is: /cygdrive/c/tmp/TestCodeSaturne/Fan/fan1/RESU/20160222-1829/cs_solver.exe
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
cs_user_initialization-fan.o:cs_user_initialization-fan.f90:(.text+0x15f): undefined reference to `cs_fan_define_'
collect2: error: ld returned 1 exit status
"C:\Program Files (x86)\Code_Saturne\4.0\bin\x86_64-w64-mingw32-gfortran" -I C:\tmp\TestCodeSaturne\Fan\fan1\RESU\20160222-1829\src_saturne -I "C:\Program Files (x86)\Code_Saturne\4.0\include\code_saturne" -x f95-cpp-input -Wall -pedantic-errors -std=f2003 -O -c C:\tmp\TestCodeSaturne\Fan\fan1\RESU\20160222-1829\src_saturne\cs_user_initialization-fan.f90
"C:\Program Files (x86)\Code_Saturne\4.0\bin\x86_64-w64-mingw32-g++" -o C:\tmp\TestCodeSaturne\Fan\fan1\RESU\20160222-1829\cs_solver.exe cs_user_initialization-fan.o "-LC:\Program Files (x86)\Code_Saturne\4.0\lib" -L/home/MFEE/opt/x86_64-w64-mingw32/lib -L/home/MFEE/opt/x86_64-w64-mingw32/lib -L/home/MFEE/opt/x86_64-w64-mingw32/lib -L/home/MFEE/opt/x86_64-w64-mingw32/lib -L/home/MFEE/opt/MPI/lib -L/home/MFEE/opt/x86_64-w64-mingw32/lib -O -Wl,--allow-multiple-definition -lsaturne -lple -lcgns -lmedC -lhdf5 -lscotch -lmsmpi -lxml2 -lz -lz -L/usr/lib/gcc/x86_64-w64-mingw32/4.8.2 -L/usr/lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/lib/../lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib/../lib -L/usr/lib/gcc/x86_64-w64-mingw32/4.8.2/../../../../x86_64-w64-mingw32/lib -L/usr/x86_64-w64-mingw32/sys-root/mingw/lib -lz -lgfortran -lmingw32 -lmoldname -lmingwex -lmsvcrt -lquadmath -ladvapi32 -lshell32 -luser32 -lkernel32 -lm
As you may have found, I'm running on Windows 7 64 bits
Code_saturne version is 4.0.2
Thanks a lot for your help...
JB