|
[Sponsors] |
February 17, 2016, 07:18 |
ihFOAM fails to compile with OpenFOAM 3.0.1
|
#201 |
New Member
Join Date: Jan 2016
Posts: 3
Rep Power: 10 |
Hi all,
I tried to compile ihFOAM with OF3.0.1 but it gave me an error due to some missing header files: Code:
[jbettencourt@dhcp-892b8198 ihFOAM]$ of301 ModuleCmd_Load.c(213):ERROR:105: Unable to locate a modulefile for 'openmpi-x86_64' [jbettencourt@dhcp-892b8198 ihFOAM]$ cd solvers/ [jbettencourt@dhcp-892b8198 solvers]$ ls ihFoamFE30_31 ihFoamOF16ext ihFoamOF171 ihFoamOF211 ihFoamOF222 ihFoamOF230 ihFoamOF240 [jbettencourt@dhcp-892b8198 solvers]$ cd ihFoam240 bash: cd: ihFoam240: No such file or directory [jbettencourt@dhcp-892b8198 solvers]$ cd ihFoamOF240 [jbettencourt@dhcp-892b8198 ihFoamOF240]$ ls allMake alphaEqn.H correctPhi.H createPorosity.H ihFoam.C pEqn.H UEqn.H alphaCourantNo.H alphaEqnSubCycle.H createFields.H ihDyMFoam Make setDeltaT.H [jbettencourt@dhcp-892b8198 ihFoamOF240]$ ./allMake Making dependency list for source file ihFoam.C could not open file turbulenceModel.H for source file ihFoam.C due to No such file or directory could not open file createPrghCorrTypes.H for source file ihFoam.C due to No such file or directory g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/twoPhaseMixture/lnInclude -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/transportModels -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/incompressible/lnInclude -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/interfaceProperties/lnInclude -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/turbulenceModels/incompressible/turbulenceModel -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/transportModels/immiscibleIncompressibleTwoPhaseMixture/lnInclude -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/finiteVolume/lnInclude -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/fvOptions/lnInclude -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/sampling/lnInclude -IlnInclude -I. -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/jbettencourt/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude -fPIC -c ihFoam.C -o Make/linux64GccDPInt64Opt/ihFoam.o ihFoam.C:71:29: fatal error: turbulenceModel.H: No such file or directory #include "turbulenceModel.H" ^ compilation terminated. make: *** [Make/linux64GccDPInt64Opt/ihFoam.o] Error 1 ihFoam compilation failed Do you know of any solution to this error? Thanks in advance, Joao |
|
February 17, 2016, 07:59 |
|
#202 | |
New Member
nirbhay tiwary
Join Date: Aug 2015
Posts: 24
Rep Power: 11 |
Quote:
thank u for ur quick reply.Can u tell me what else i have to do in my mesh??Do i have to refine it more?? |
||
February 17, 2016, 08:08 |
|
#203 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hi jpbettenc,
I am not sure whether 3.0.1 is supported (3.0.0 is, though), but compiling the version 2.4.0 solver with OpenFOAM 3.0.1 may be the problem. Please be more careful in the future. Hi Nirbhay, the resolution seems not adequate, it uses tetrahedra (not a problem per se, but not good either), the mesh is very narrow, the initial setFields yields a bumpy free surface... |
|
February 17, 2016, 08:28 |
|
#204 | |
New Member
nirbhay tiwary
Join Date: Aug 2015
Posts: 24
Rep Power: 11 |
Quote:
thanks for ur suggestion.Should i refine mesh around the free surface level??What should i use instead of tetrahedra?? |
||
February 17, 2016, 09:23 |
|
#205 | |
New Member
Join Date: Jan 2016
Posts: 3
Rep Power: 10 |
Quote:
Code:
[jbettencourt@dhcp-892b8198 solvers]$ ls ihFoamFE30_31 ihFoamOF171 ihFoamOF222 ihFoamOF240 ihFoamOF16ext ihFoamOF211 ihFoamOF230 Thanks, Joao |
||
February 17, 2016, 22:22 |
|
#206 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hi Joao,
that is because you cloned it from the wrong place, the guys at IH Cantabria changed all the links in the wiki and IHFOAM site when I left the place, but they are not updating the code. Take a look here for the latest version, compatible with 3.0.0: https://github.com/phicau/IHFOAM Best, Pablo |
|
February 18, 2016, 04:07 |
|
#207 | |
New Member
Join Date: Jan 2016
Posts: 3
Rep Power: 10 |
Quote:
Thanks for clarifying this. I cloned the lastest version from https://github.com/phicau/IHFOAM and it compiled without problems with OF 3.0.1. And thanks also for making this code available for everybody. Best, Joao |
||
February 22, 2016, 04:05 |
IHFoam custom eta at different paddles at wave generation
|
#208 |
New Member
Chow
Join Date: Feb 2016
Posts: 1
Rep Power: 0 |
Hi, I was trying to modify the code to allow custom user inputs for eta and the velocity vector at every patch. I have spent some time looking through the code. As far as I know paddleEta_ does not allow us to specify different eta for different y positions or paddles. Thus I have taken some useful code from multiPistonMovement.C.
Eventually, what I have in my calculatedLevelEtaCustom.H: Code:
... CODE ... forAll( timeSeries_, contador1 ) { if ( timeSeries_[contador1] >= currTime ) { indexF = contador1; break; } } for(int i=0; i<nPaddles_; i++) { if ( indexF == 0) { etaCustomInterp[i] = timeMult * etaCustom_[i][0]; } else { etaCustomInterp[i] = timeMult * interpolation(timeSeries_[indexF-1], timeSeries_[indexF], etaCustom_[i][indexF-1], etaCustom_[i][indexF], currTime); } calculatedLevel[i] = waterDepth_ + timeMult * etaCustomInterp[i]; } Code:
*** Error in `ihFoam': free(): invalid next size (fast): 0x00000000218f01a0 *** Aborted (core dumped) Can anyone help? |
|
March 1, 2016, 10:48 |
|
#209 |
New Member
Diogo R.C.B. Neves
Join Date: Aug 2014
Posts: 16
Rep Power: 12 |
Hi Pablo,
What is exactly the Pseudo-Dynamic Pressure? Thank you for your attention, Best regards, Diogo |
|
March 1, 2016, 21:46 |
|
#210 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Hi Diogo,
take a look at my thesis, it is explained there. http://www.tesisenred.net/bitstream/...pdf?sequence=1 Best, Pablo |
|
March 2, 2016, 05:12 |
|
#211 |
New Member
Diogo R.C.B. Neves
Join Date: Aug 2014
Posts: 16
Rep Power: 12 |
Thank you very much Pablo,
This type of questions is not allways well received and you promptly answered mine My best regards, Diogo |
|
March 3, 2016, 22:01 |
|
#212 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Dear all,
I would like to make you all aware that yesterday I published OLAFOAM, the evolution of IHFOAM: http://www.cfd-online.com/Forums/ope...on-ihfoam.html This has some implications. All my efforts will be put in developing, maintaining and promoting the new code. This does not mean that I am going to drop support for IHFOAM here in this thread and at this stage (eventually I may), but it will certainly have a lower priority. I will soon open an OLAFOAM support thread. Best, Pablo |
|
April 11, 2016, 16:31 |
problem with StokesII-orbital velocity
|
#213 |
New Member
kasra karimi
Join Date: Jan 2016
Location: Tehran
Posts: 10
Rep Power: 10 |
Hi Pablo
Thanks a lot for development of IHFoam. I am using ihFoam to generate waves in a simple 2D flume (6m length*0.4m hight* 0.1m width) and The waves parameter are (H=0.065 T=1.53 d=0.3) which makes it follow the StokesII wave theory. The problem is that the surface elevation-time plot gives a good agreement with theoretical answers, but when it comes to horizontal orbital velocity, the simulation data have unacceptable underestimation in compared to theoretical. I utilized both quadratic and triangular mesh in two different cases but my problem still remained the same. heres my case files including some plots of horizontal orbital velocity (Ux) Vs time, for the elevation of -0.1 below surface & also UxMax profile-depth from Matlab code and OpenFOAM. I would be so thankful if you could help me. http://s000.tinyupload.com/?file_id=...16525276522753 |
|
May 25, 2016, 11:24 |
|
#214 |
Member
Mona
Join Date: Mar 2016
Location: Berlin
Posts: 49
Rep Power: 10 |
Hey guys,
I need to calculate the lift and drag coefficients for a pitching floater that is hinged at one point and is moving due to incoming waves. What I am wondering about is the parameter magUInf that needs to be specified in the controlDict. As I have "only" a wave and not really a free stream velocity I am not sure what value to put there. Any ideas? Cheers, Mona |
|
May 30, 2016, 01:59 |
Calculating overtopping flow rate
|
#215 |
Member
Lee Jung Hoo
Join Date: Dec 2015
Posts: 37
Rep Power: 11 |
Hello pablo! I'm using IHFOAM well for my academic purpose and I'm really appreciative of your effort.
I'm simulating regular waves passing though simple vertical breakwater by using IHFOAM. I want to get the overtopping flow rate by time above the breakwater and I think that it is possible through paraview using 'plot over line', 'integrating values' and 'plot selection over time' but I'm not sure it is working... I read your paper 'Three-dimensional interaction of waves and porous coastal structures using OpenFOAM.Part 2 : Application' and I will be very thankful to you if you give me the way you plot 'Fig. 14. Space-time series of instantaneous overtopping discharge rate'. Thank you so much in advance.. your any comment will very helpful to me..!! |
|
June 1, 2016, 05:05 |
|
#216 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
HI Jung Hoo,
that graph was not performed in paraview. I used OpenFOAM sampling tools to get the flow rate over the crown wall and then postprocessed them with matlab to obtain the final plot. Best, Pablo |
|
June 1, 2016, 09:29 |
|
#217 |
Member
Lee Jung Hoo
Join Date: Dec 2015
Posts: 37
Rep Power: 11 |
Thank you for your reply Pablo!
I have used 'sampleDict' recently, and now I can calculate some values like pressure and water surface level by time using 'sampleDict' and 'postSensPres.py', 'postSensVOF.py'. but I can't understand that overtopping flow rate can be calculated by using 'sampleDict'... it must be due to my poor knowledge.. .... Do you use 'alpha.water' as filedname in 'sampleDict' ?? If so, calculating overtopping flow discharge above a breakwater through 'sampleDict' seems to be so complicated to me.. If it doesn't hurt your feelings, could you show me the contents of 'sampleDict' that can be used for calculating overtopping flow discharge?? If the answer of my question is so complicated in writing, please just post any references about it! And I'm very appreciative of your previous kind reply about 'p_rgh'!.. it helped me to understand 'pseudo-dynamic pressure'. Thank you in advance and I'm always thankful for your effort you made until now in openfoam!! |
|
June 1, 2016, 23:17 |
|
#218 |
Senior Member
Pablo Higuera
Join Date: Jan 2011
Location: Auckland
Posts: 627
Rep Power: 19 |
Probably you will be better off cutting with a plane in paraview and exporting alpha and velocity. There is plenty of information on how to do that in the forum. Then you can obtain overtopping with your favourite programming tool.
Best, Pablo |
|
June 2, 2016, 01:38 |
|
#219 |
Member
Lee Jung Hoo
Join Date: Dec 2015
Posts: 37
Rep Power: 11 |
I'll try it using paraview! Thanks a lot!!
|
|
June 5, 2016, 04:29 |
Absorption at inlet
|
#220 |
Member
Lee Jung Hoo
Join Date: Dec 2015
Posts: 37
Rep Power: 11 |
Hi, I'm simulating regular waves passing through a breakwater using IHFOAM.
I applied absorbing condition on the outlet, but not on the inlet(only wave generating condition). In this case, How can I absorb reflected waves induced by breakwater toward inlet? When I was using waves2foam, I could do that by setting absorbing condition in front of the inlet. Any comments can help me a lot. Thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Divergence detected in AMG solver: k when udf loaded | google9002 | Fluent UDF and Scheme Programming | 3 | November 8, 2019 00:34 |
udf problem | jane | Fluent UDF and Scheme Programming | 37 | February 20, 2018 05:17 |
UDF velocity profile | willroca | Fluent UDF and Scheme Programming | 2 | January 10, 2016 04:13 |
Error messages | atg | enGrid | 7 | August 30, 2013 12:16 |
Phase locked average in run time | panara | OpenFOAM | 2 | February 20, 2008 15:37 |