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

[waves2Foam] GABC setWaveField error

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 17, 2021, 09:40
Default GABC setWaveField error
  #1
New Member
 
irengclenk
Join Date: Feb 2021
Posts: 5
Rep Power: 5
irengclenk is on a distinguished road
Dear All,

I just noticed a new feature from waves2Foam, the GABC, and found that interesting. I would like to use that.

I already compiled the updated waves2Foam code, all is working perfectly with the relaxationZone boundary condition tutorial. I am using OpenFOAM-v2012. But when I run the GABC boundary condition I got this kind of error

Code:
*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _7bdb509494-20201222 OPENFOAM=2012
Arch   : "LSB;label=32;scalar=64"
Exec   : setWaveField
Date   : Dec 17 2021
Time   : 15:11:57
Host   : coastal4
PID    : 43687
I/O    : uncollated
Case   : /home/u0142217/Documents/openfoam_secondyear/GABC_trial/regularWave
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

// using new solver syntax:
p_rgh
{
    solver          GAMG;
    tolerance       1e-10;
    relTol          0;
    smoother        DIC;
    nPreSweeps      0;
    nPostSweeps     2;
    nFinestSweeps   2;
    cacheAgglomeration true;
    nCellsInCoarsestLevel 10;
    agglomerator    faceAreaPair;
    mergeLevels     1;
}

// using new solver syntax:
p_rghFinal
{
    solver          GAMG;
    tolerance       1e-10;
    relTol          0;
    smoother        DIC;
    nPreSweeps      0;
    nPostSweeps     2;
    nFinestSweeps   2;
    cacheAgglomeration true;
    nCellsInCoarsestLevel 10;
    agglomerator    faceAreaPair;
    mergeLevels     1;
}


Reading g

Reading waveProperties

Reading waveProperties

Reading field alpha

Reading field U

Reading field p

#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigSegv::sigHandler(int) at ??:?
#2  ? in /lib/x86_64-linux-gnu/libpthread.so.0
#3  Foam::HashTable<Foam::entry*, Foam::word, Foam::string::hash>::Iterator<true>::Iterator(Foam::HashTable<Foam::entry*, Foam::word, Foam::string::hash> const*, Foam::word const&) at ??:?
#4  Foam::dictionary::csearch(Foam::word const&, Foam::keyType::option) const at ??:?
#5  Foam::dictionary::subDict(Foam::word const&, Foam::keyType::option) const at ??:?
#6  Foam::celerityShapeFunctions::New(Foam::fvMesh const&, Foam::word const&, Foam::dictionary const&, Foam::Vector<double> const&, double const&) at ??:?
#7  Foam::gabcPressureRobinVFvPatchScalarField::gabcPressureRobinVFvPatchScalarField(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#8  Foam::fvPatchField<double>::adddictionaryConstructorToTable<Foam::gabcPressureRobinVFvPatchScalarField>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) at ??:?
#9  Foam::fvPatchField<double>::New(Foam::fvPatch const&, Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in ~/OpenFOAM/u0142217-v2012/platforms/linux64GccDPInt32Opt/bin/setWaveField
#10  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::Boundary::readField(Foam::DimensionedField<double, Foam::volMesh> const&, Foam::dictionary const&) in ~/OpenFOAM/u0142217-v2012/platforms/linux64GccDPInt32Opt/bin/setWaveField
#11  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields(Foam::dictionary const&) in ~/OpenFOAM/u0142217-v2012/platforms/linux64GccDPInt32Opt/bin/setWaveField
#12  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::readFields() in ~/OpenFOAM/u0142217-v2012/platforms/linux64GccDPInt32Opt/bin/setWaveField
#13  Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricField(Foam::IOobject const&, Foam::fvMesh const&, bool) in ~/OpenFOAM/u0142217-v2012/platforms/linux64GccDPInt32Opt/bin/setWaveField
#14  main in ~/OpenFOAM/u0142217-v2012/platforms/linux64GccDPInt32Opt/bin/setWaveField
#15  __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
#16  ? in ~/OpenFOAM/u0142217-v2012/platforms/linux64GccDPInt32Opt/bin/setWaveField
Segmentation fault (core dumped)
What is possibly the cause of the error?

Thank you

Kind regards,
irengclenk is offline   Reply With Quote

Old   January 3, 2022, 11:27
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Ivandito,


Have you tried to run any of the tutorials (e.g. tutorials/waveFoamGABC/regularWave)? Here, there is no problem with setWaveField, when I am running on 2106. I guess that your problem is that the wave properties are not correctly set.



I am looking forward to hear your experience, since the GABC is a very strong tool for many wave-type problems.


Kind regards


Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   January 10, 2022, 12:25
Default
  #3
New Member
 
irengclenk
Join Date: Feb 2021
Posts: 5
Rep Power: 5
irengclenk is on a distinguished road
Hi Niels,

Thanks for your response. Yes I also installed it in OF2106 and it was working properly, then I checked the installation in my OF2012 again because I only had problem with OF2012.

I dont know wether this is the correct solution but it works.

So apparently, if I want to install wave2Foam in my OF2012, I need to comment the primitivePatchBase.H in all dep.C file from each folder in preProcessing, so that the preProcessing feature are all compiled. All tutorials are now working in OF2012 as well. I did comparison between analytical focused waves and what we have in the tutorial and it gives the correct result. So, I would say this solves my problem.

Now working on implementing waves-current with GABC

Thanks!
irengclenk is offline   Reply With Quote

Old   January 10, 2022, 13:21
Default
  #4
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Ivandito,


Hmmm, that definitely does not sound like a healthy approach to get it compiled. I do not have a version 2012 myself, but as long as it works for 2106, I am happy with that.


It is good to hear that you have made it work and I would love to hear some comments on the usability, accuracy, etc. To the better of my knowledge, you are the first to give the GABC a spin, where I am not sitting next to the person.


Good luck on the waves and current approach. It is not super simple, but it should be possible. Unfortunately, I have not managed to derive anything that I am happy with to this point.



Cheers


Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   December 13, 2023, 07:36
Default
  #5
MFS
New Member
 
Manuel Fraga Seoane
Join Date: Jan 2020
Posts: 9
Rep Power: 6
MFS is on a distinguished road
Hi irenglenk and Niels,


Have you managed to implement wave+current with GABC? I've been trying to implement "combinedWaves" but I didn't manage to get it running...


Kind regards,


Manu
MFS is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 00:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 09:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 09:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 20:40.