CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[IHFOAM] How to install IHFOAM 1806 in OpenFOAM 1806

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By IHFOAM Team

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2018, 00:18
Default How to install IHFOAM 1806 in OpenFOAM 1806
  #1
New Member
 
Luo_Bingjun
Join Date: Oct 2018
Location: CHINA
Posts: 14
Rep Power: 8
Robin86 is on a distinguished road
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.
Robin86 is offline   Reply With Quote

Old   October 24, 2018, 21:04
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: IHFOAM should be already integrated into OpenFOAM v1806, it should not require any additional installation steps.
__________________
wyldckat is offline   Reply With Quote

Old   November 6, 2018, 10:38
Default
  #3
Senior Member
 
IHFOAM Team's Avatar
 
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 121
Rep Power: 9
IHFOAM Team is on a distinguished road
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
wyldckat likes this.
__________________
http://ihfoam.ihcantabria.com/
IHFOAM Team is offline   Reply With Quote

Old   November 6, 2018, 21:27
Default
  #4
New Member
 
Luo_Bingjun
Join Date: Oct 2018
Location: CHINA
Posts: 14
Rep Power: 8
Robin86 is on a distinguished road
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!
Robin86 is offline   Reply With Quote

Old   November 7, 2018, 03:53
Default
  #5
Senior Member
 
IHFOAM Team's Avatar
 
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 121
Rep Power: 9
IHFOAM Team is on a distinguished road
Hi Robin86,

Quote:
Originally Posted by Robin86 View Post
I am new here and feel sorry to bother you.
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
        );
    }
}
Best Regards,
IHFOAM Team
__________________
http://ihfoam.ihcantabria.com/
IHFOAM Team is offline   Reply With Quote

Old   November 7, 2018, 09:00
Default
  #6
New Member
 
Luo_Bingjun
Join Date: Oct 2018
Location: CHINA
Posts: 14
Rep Power: 8
Robin86 is on a distinguished road
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!
Robin86 is offline   Reply With Quote

Old   March 12, 2019, 09:13
Default
  #7
New Member
 
Join Date: Feb 2018
Posts: 2
Rep Power: 0
DarT is on a distinguished road
Quote:
Originally Posted by Robin86 View Post
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!
Hi Robin86, I'm facing the same issue at the moment. Did you mange to create the plot with xaxis = time and yaxis = elevation?
DarT is offline   Reply With Quote

Old   March 12, 2019, 11:30
Default
  #8
Senior Member
 
IHFOAM Team's Avatar
 
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 121
Rep Power: 9
IHFOAM Team is on a distinguished road
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/
IHFOAM Team is offline   Reply With Quote

Old   March 12, 2019, 12:24
Default
  #9
New Member
 
Join Date: Feb 2018
Posts: 2
Rep Power: 0
DarT is on a distinguished road
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:
Originally Posted by IHFOAM Team View Post
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.
DarT is offline   Reply With Quote

Old   July 23, 2021, 15:53
Default
  #10
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
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
syavash is offline   Reply With Quote

Old   November 12, 2021, 13:44
Default
  #11
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Quote:
Originally Posted by syavash View Post
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
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.
qi.yang@polimi.it is offline   Reply With Quote

Old   November 17, 2021, 12:38
Default
  #12
Senior Member
 
IHFOAM Team's Avatar
 
IHFOAM The Environmental Hydraulics Institute "IHCantabria"
Join Date: Sep 2017
Location: Santander (Spain)
Posts: 121
Rep Power: 9
IHFOAM Team is on a distinguished road
Hi kimy and Ehsan,

Quote:
... solve wave and current interaction....
We have not released the code to solve waves+currents.
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 05:20.
IHFOAM Team is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[OpenFOAM.com] Docker OpenFOAM install error on Mac OS X dersh OpenFOAM Installation 10 May 6, 2016 13:49
[OpenFOAM.org] Installation notes: OpenFOAM 2.3.x (git repo) on OSX 10.9 opedrofunk OpenFOAM Installation 7 July 1, 2015 14:51
Install openFOAM from with proxy server Dhruval OpenFOAM Installation 3 October 18, 2014 16:38
Unable to install OpenFOAM 1.6-ext Maimouna OpenFOAM Installation 23 May 8, 2014 06:47


All times are GMT -4. The time now is 08:38.