lheea / grid2grid Goto Github PK
View Code? Open in Web Editor NEWHOS Wrapper for C++/fortran CFD solvers
License: GNU General Public License v3.0
HOS Wrapper for C++/fortran CFD solvers
License: GNU General Public License v3.0
hello
I am a beginner in computational fluid dynamics. Thank you very much for providing us with this amazing tool, GridsGrid. I am trying to compile grid2grid and wave2foam, but from the reference you provided I cannot understand how to go about building the complete calculation files .Can I trouble you to give me a simple calculation example?
Best regards
Dear Grid2Grid developers:
I have problem to run the test subroutine in the src/libGrid2Grid/main.f90 after compiling the grid2grid library.
I can successfully compile the grid2grid library. However, when I test the surboutine testSurf2Vol() in debug mode, the program has error. The program i tested is located at src/libGrid2Grid/main.f90
The program generated the following error:
HOS Ocean Surf2Vol ...
forrtl: severe (174): SIGSEGV, segmentation fault occurred
Image PC Routine Line Source
Grid2GridTest 00000000006FC43A Unknown Unknown Unknown
libpthread-2.31.s 00007FFFF7E593C0 Unknown Unknown Unknown
Grid2GridTest 00000000004944A6 Unknown Unknown Unknown
Grid2GridTest 0000000000493F06 Unknown Unknown Unknown
Grid2GridTest 00000000004A48DA Unknown Unknown Unknown
Grid2GridTest 0000000000536384 Unknown Unknown Unknown
Grid2GridTest 0000000000534E90 Unknown Unknown Unknown
Grid2GridTest 000000000054A38F Unknown Unknown Unknown
Grid2GridTest 000000000040C4B8 Unknown Unknown Unknown
Grid2GridTest 0000000000403948 Unknown Unknown Unknown
Grid2GridTest 00000000004038D2 Unknown Unknown Unknown
libc-2.31.so 00007FFFF7C790B3 __libc_start_main Unknown Unknown
Grid2GridTest 00000000004037DE Unknown Unknown Unknown
I debug the code and fund the program will have error at line #209 of hosOcean.inc:
this%nXmode_ = nint(x1) * this%dict_%getIntOrDefault("extraInterpolationNumber", 1)
It looks like %this%dict_ is not initialized and the function getIntOrDefault() can't evaluate
this%nkey method.
The tested main program is changed to run the subroutine testSurf2Vol().
The program is as followings:
Program main
Implicit None
Character(Len =100) :: inputFileName
inputFileName = "postGrid2Grid.dict"
!Call testDict()
!Call testPost(inputFileName)
Call testSurf2Vol()
! Call testVol2Vol()
End Program
Hi, thanking very much for sharing the program for us! i got many installation problems when i tried to install gird2grid in my ubtuntu(64), following the steps wirtten in reference "Grid2Grid : HOS Wrapper Program", the main problem is as follows:
when i input the orders as follows:
then it started to be wrong:
then i typed in shown as followings:
..alos,if i typed in" make create "or "make createlib",it will show:
what can i do for this ? actually,there's many problems on previous steps, but i have managered to make it anyway. i'd really appreciate it if you could help to solve this problem. Cause for my research , Grid2Grid is essential step of the start!!!
thank you very much!!
Hi
thanks for sharing such an interesting package.
can you please let us know which HOS solver and OpenFOAM are required?
Hi!
Thank you for sharing this software open source!
I'm looking forward to trying it out in combination with HOS-ocean ๐
I've had some different issues compiling the software, but I have managed to solve a lot of them and are now stuck on what I think is the final step.
I get some linking error regarding the FFT library, and haven't been able to find any answers on google.
Here is the output/error I get:
$ cmake --build build
Scanning dependencies of target bspline
[ 4%] Building Fortran object src/libBspline/CMakeFiles/bspline.dir/src/bspline_sub_module.f90.o
[ 8%] Building Fortran object src/libBspline/CMakeFiles/bspline.dir/src/bspline_oo_module.f90.o
[ 12%] Building Fortran object src/libBspline/CMakeFiles/bspline.dir/src/bspline_module.f90.o
[ 16%] Linking Fortran static library ../../../lib/libbspline.a
[ 16%] Built target bspline
Scanning dependencies of target fymc
[ 20%] Building Fortran object src/libFyMc/CMakeFiles/fymc.dir/src/mfpGlobal.f90.o
[ 24%] Building Fortran object src/libFyMc/CMakeFiles/fymc.dir/src/general/mfpGeneral.f90.o
[ 28%] Building Fortran object src/libFyMc/CMakeFiles/fymc.dir/src/geometry/mfpGeometry.f90.o
[ 32%] Linking Fortran static library ../../../lib/libfymc.a
[ 32%] Built target fymc
Scanning dependencies of target postG2G
[ 36%] Building Fortran object src/libGrid2Grid/CMakeFiles/postG2G.dir/modGrid2GridGlobal.f90.o
[ 40%] Building Fortran object src/libGrid2Grid/CMakeFiles/postG2G.dir/HDF5/modHDF5Interface.f90.o
[ 44%] Building Fortran object src/libGrid2Grid/CMakeFiles/postG2G.dir/fftw3/modFourier_r2c_FFTW3.f90.o
[ 48%] Building Fortran object src/libGrid2Grid/CMakeFiles/postG2G.dir/surf2Vol/modSurf2Vol.f90.o
[ 52%] Building Fortran object src/libGrid2Grid/CMakeFiles/postG2G.dir/vol2Vol/modVol2Vol.f90.o
[ 56%] Building Fortran object src/libGrid2Grid/CMakeFiles/postG2G.dir/modGrid2Grid.f90.o
[ 60%] Building Fortran object src/libGrid2Grid/CMakeFiles/postG2G.dir/postGrid2Grid/modPostGrid2Grid.f90.o
[ 64%] Building Fortran object src/libGrid2Grid/CMakeFiles/postG2G.dir/main.f90.o
[ 68%] Linking Fortran executable ../../../postG2G
[ 68%] Built target postG2G
Scanning dependencies of target Grid2Grid
[ 72%] Building Fortran object src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/modGrid2GridGlobal.f90.o
[ 76%] Building Fortran object src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/HDF5/modHDF5Interface.f90.o
[ 80%] Building Fortran object src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/fftw3/modFourier_r2c_FFTW3.f90.o
[ 84%] Building Fortran object src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/surf2Vol/modSurf2Vol.f90.o
[ 88%] Building Fortran object src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/vol2Vol/modVol2Vol.f90.o
[ 92%] Building Fortran object src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/modGrid2Grid.f90.o
[ 96%] Building Fortran object src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/postGrid2Grid/modPostGrid2Grid.f90.o
[100%] Linking Fortran shared library ../../../lib/libGrid2Grid.so
/usr/bin/ld: /usr/local/lib/libfftw3.a(f77api.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfftw3.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/build.make:201: recipe for target '../lib/libGrid2Grid.so' failed
make[2]: *** [../lib/libGrid2Grid.so] Error 1
CMakeFiles/Makefile2:240: recipe for target 'src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/all' failed
make[1]: *** [src/libGrid2Grid/CMakeFiles/Grid2Grid.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
All and any ideas on how to solve this are really appreciated.
Thanks!
Best Regards,
Niclas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.