|
[Sponsors] |
[IHFOAM] How to install IHFOAM 1806 in OpenFOAM 1806 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Luo_Bingjun
Join Date: Oct 2018
Location: CHINA
Posts: 14
Rep Power: 7 ![]() |
How to install IHFOAM 1806 in OpenFOAM 1806? I know that some functions in IHFOAM are included in OF 1806. I want to use IHFOAM to generate wave. Should I install IHFOAM 1806 additionally? If so, how to install it.?I foud it different from the old version of IHFOAM.
|
|
![]() |
![]() |
![]() |
![]() |
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick answer: IHFOAM should be already integrated into OpenFOAM v1806, it should not require any additional installation steps.
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Robin86,
It is already integrated in OpenFOAM-v1806!!!! Type: cd ~/OpenFOAM/OpenFOAM-v1806/tutorials/multiphase/interFoam/laminar Please, take a look to any of these tutorials: - waveExampleCnoidal - waveExampleIrregularMultiDirection - waveExampleSolitary - waveExampleSolitaryGrimshaw - waveExampleSolitaryMcCowan - waveExampleStokesI - waveExampleStokesII - waveExampleStokeV - waveExampleStreamFunction - waveMangroveInteraction Best Regards, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Luo_Bingjun
Join Date: Oct 2018
Location: CHINA
Posts: 14
Rep Power: 7 ![]() |
Thank you for your reply. Actually, I learn about the integration of IHFOAM in OpenFOAM-v1806. But I don't know how to monitor the free surface of wave through IHFOAM. I have already run some example cases in laminar folder. None of case monitors the free surface of wave. I want to draw the curve of wave elevation and time in specified location. Could you tell me how to realize this in IHFOAM? Could you recommend some paper or informatino to me? I am new here and feel sorry to bother you.
Thank you very much! |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Robin86,
Please, feel free to ask anything you may not understand, it is one of the best ways to learn things. We have added some monitoring tools in the controlDict (free surface sensors) to be able to track and draw the free surface elevation in time in a specific location. Please, take a look to the end of the controlDict: Code:
functions { line { type sets; libs ("libsampling.so"); enabled true; writeControl writeTime; writeInterval 1; interpolationScheme cellPoint; setFormat raw; sets ( line1 { type uniform; axis distance; start ( 1.0 0.02 0.0 ); end ( 1.0 0.02 0.55 ); nPoints 1001; } line2 { type uniform; axis distance; start ( 2.0 0.02 0.0 ); end ( 2.0 0.02 0.55 ); nPoints 1001; } line3 { type uniform; axis distance; start ( 3.0 0.02 0.0 ); end ( 3.0 0.02 0.55 ); nPoints 1001; } line4 { type uniform; axis distance; start ( 5.0 0.02 0.0 ); end ( 5.0 0.02 0.55 ); nPoints 1001; } line5 { type uniform; axis distance; start ( 7.5 0.02 0.0 ); end ( 7.5 0.02 0.55 ); nPoints 1001; } line6 { type uniform; axis distance; start ( 10.0 0.02 0.0 ); end ( 10.0 0.02 0.55 ); nPoints 1001; } line7 { type uniform; axis distance; start ( 12.0 0.005 0.0 ); end ( 12.0 0.005 0.55 ); nPoints 1001; } line8 { type uniform; axis distance; start ( 14.0 0.005 0.0 ); end ( 14.0 0.005 0.55 ); nPoints 1001; } ); fixedLocations false; fields ( U alpha.water ); } } IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ |
|
![]() |
![]() |
![]() |
![]() |
#6 |
New Member
Luo_Bingjun
Join Date: Oct 2018
Location: CHINA
Posts: 14
Rep Power: 7 ![]() |
Thank you for your reply. Actually, I have already seen the controlDict file in the case waveExampleStokesI. Ater running the case, I only get the alpha.water data along the line in a specified time step. I want to make sure the elevation of the wave in one specified location in all time steps. I want to draw the curve, whose x axis is time and y aixs is wave elevation. How can I realize this? Thank you!
|
|
![]() |
![]() |
![]() |
![]() |
#7 | |
New Member
Join Date: Feb 2018
Posts: 2
Rep Power: 0 ![]() |
Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#8 |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi Robin and DarT,
You can create a post-processing code in any language that you feel comfortable (matlab, fortran, C/C++, python, ...). There is nothing extraordinaire in how to get the free surface evolution: For your case, I would recommend to go into the post-processing folder, and loop over all the time steps; in every time step, multiply each cell height by the volume of fraction and sum them up. Add the final result to a matrix that can resemble like M(time_step,free_surface_elevation). Finally, make a plot in which, "time_step" is in x-axis and "free_surface_elevation" in y-axis. Best Regards, IHFOAM Team.
__________________
http://ihfoam.ihcantabria.com/ |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
New Member
Join Date: Feb 2018
Posts: 2
Rep Power: 0 ![]() |
Thought that was the case! Thanks for your prompt reply.
If anyone reading this wants an R script to do it then give me a message ![]() Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#10 |
Senior Member
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18 ![]() |
I think it is the convenient thread to ask my question.
Is it possible to do wave-current simulations using IHFoam capabilities? If so, is there any tutorial available? I would appreciate it if you would kindly give me some hints. Kind regards, syavash |
|
![]() |
![]() |
![]() |
![]() |
#11 |
Senior Member
|
Hi, I am also curious about this topic. In fact I read the literature in which they developed the solver to solve wave and current interaction. However, still don't know how to set it.
|
|
![]() |
![]() |
![]() |
![]() |
#12 | |
Senior Member
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 120
Rep Power: 9 ![]() |
Hi kimy and Ehsan,
Quote:
Check this: - Wave-*‐current generation with OpenFOAM. Application to coastal and offshore structures - Wave and current interaction with moored floating bodies using Overset Method Please, send us a direct message if you are interested in a potential collaboration. Best, IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/ Last edited by IHFOAM Team; November 18, 2021 at 04:20. |
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 14:24 |
[OpenFOAM.com] Docker OpenFOAM install error on Mac OS X | dersh | OpenFOAM Installation | 10 | May 6, 2016 12:49 |
[OpenFOAM.org] Installation notes: OpenFOAM 2.3.x (git repo) on OSX 10.9 | opedrofunk | OpenFOAM Installation | 7 | July 1, 2015 13:51 |
Install openFOAM from with proxy server | Dhruval | OpenFOAM Installation | 3 | October 18, 2014 15:38 |
Unable to install OpenFOAM 1.6-ext | Maimouna | OpenFOAM Installation | 23 | May 8, 2014 05:47 |