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

[waves2Foam] Problem on compiling waveIsoFoam with OpenFOAM-v2006PLUS

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Maoyanjun

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2020, 22:05
Default Problem on compiling waveIsoFoam with OpenFOAM-v2006PLUS
  #1
New Member
 
Maoyanjun
Join Date: Jan 2016
Posts: 20
Rep Power: 10
Maoyanjun is on a distinguished road
Hello Niels and everyone,
As OpenFOAM-v2006 released, the isoAdection funtion changed a bit. I failed to compile the waveIsoFoam solver on version 2006 but I successed on version 1906 and 1912. Here are some changes I found listed below but I can not fixed it by myself. Hope some one could fixed it and update waves2foam with a waveIsoFoam solver of version 2006_PLUS.

#some path of include files have changed, add below Inclued path can be added in option file of waveIsoFoam solver

```
-I$(LIB_SRC)/transportModels/geometricVoF/lnInclude \
-I$(LIB_SRC)/surfMesh/lnInclude \
```
# Another problem is

```
alphaEqn.H:32:21: error: no matching function for call to ‘Foam::isoAdvection::advect()’
32 | advector.advect();
| ^
In file included from waveIsoFoam.C:53:
```
As this function has change from

```
//- Advect the free surface. Updates alpha field, taking into account
// multiple calls within a single time step.
void advect();

```

to


```
//- Advect the free surface. Updates alpha field, taking into account
// multiple calls within a single time step.
template < class SpType, class SuType >
void advect(const SpType& Sp, const SuType& Su);
```

with two additional arguments. I can not know what this two arguments Sp and Su mean. So I can not fix this conflict by myself.
the `waveIsoFoam` solver call the `advect()` function in `alphaEqn.H` line 32 with none of argument on version 1912 and 1906.

-----------
sorry for the format of the post I do not konw why the markdown syntax doesn't work
Marc Batlle likes this.
Maoyanjun is offline   Reply With Quote

Old   September 3, 2020, 08:51
Default
  #2
New Member
 
Marc Batlle
Join Date: Mar 2017
Posts: 9
Rep Power: 9
Marc Batlle is on a distinguished road
Hello everyone,

With the help of Maoyanjun I prepared a preliminary version of wavesIsoFoam for OF-v2006. You will find tiny comments wherever I added code and a "temporary" modification in the readWaveProperties file.

Thanks again Maoyanjun.

Marc
Attached Files
File Type: gz waveIsoFoam.tar.gz (4.7 KB, 5 views)
Marc Batlle 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
If my problem diverges in OpenFOAM ver3, will it work in 5 quarkz OpenFOAM Running, Solving & CFD 3 April 26, 2018 02:09
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
[swak4Foam] problem in compiling groovyBC in OpenFoam 1.71 javad814 OpenFOAM Community Contributions 4 July 31, 2011 04:33
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 11:32
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 04:48


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