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

[waves2Foam] working of waveDyMFoam and postProcessWaves2Foam: modified solver affected reloading

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 16, 2014, 03:18
Default working of waveDyMFoam and postProcessWaves2Foam: modified solver affected reloading
  #1
Member
 
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 12
mary mor is on a distinguished road
Hi,
I used waves2Foam solver successfully and got the surfaceElevations right for waveflume case.
Then I tried to compile waveDyMFoam which worked successfully. In order to do this I recompiled waves2Foam and other softwares. Then I tried to compile the waveFlume case again. But the error below is shown in log.postProcessWaves2Foam file:

Code:
Create time


Reading g
Processing: regularSpectrum
    Processing sub-action: interpolateSurfaceElevation
        - Interpolation range: [10; 0.969063]


--> FOAM FATAL ERROR: 
bad size -903

    From function List<T>::List(const label size, const T&)
    in file lnInclude/List.C at line 69.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam210/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/opt/openfoam210/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2  Foam::List<double>::List(int, double const&) in "/opt/openfoam210/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#3  Foam::postProcessingWaves::equidistantTime(Foam::List<std::pair<double, int> > const&, Foam::dictionary const&) in "/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/lib/libwaves2FoamProcessing.so"
#4  Foam::interpolateSurfaceElevation::evaluate() in "/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/lib/libwaves2FoamProcessing.so"
#5  
 in "/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/bin/postProcessWaves2Foam"
#6  __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#7  
 in "/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/bin/postProcessWaves2Foam"

How can I fix this? I think there were some problems with the recomplition of the solver.
Besides is there any problem with the working of waveDyMFoam and postProcessWaves2Foam?
Thanks in advanced
mary mor is offline   Reply With Quote

Old   June 16, 2014, 12:53
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 Mary,

All I can see is that you are interpolating in a list, which begins at larger time that it ends, so the interpolation routine does not know what to do.

Either you have a simulation with waveDyMFoam, which crashed, or you are suffering from the issue with wave probes on moving meshes, which for some reason does not work in certain cases (or on more recent platforms?). This has been discussed several times above, but I am unaware of a solution.

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   July 9, 2014, 02:50
Default
  #3
Member
 
maryam morta
Join Date: Sep 2013
Posts: 54
Rep Power: 12
mary mor is on a distinguished road
Quote:
Originally Posted by mary mor View Post
Hi,
I used waves2Foam solver successfully and got the surfaceElevations right for waveflume case.
Then I tried to compile waveDyMFoam which worked successfully. In order to do this I recompiled waves2Foam and other softwares. Then I tried to compile the waveFlume case again. But the error below is shown in log.postProcessWaves2Foam file:

Code:
Create time


Reading g
Processing: regularSpectrum
    Processing sub-action: interpolateSurfaceElevation
        - Interpolation range: [10; 0.969063]


--> FOAM FATAL ERROR: 
bad size -903

    From function List<T>::List(const label size, const T&)
    in file lnInclude/List.C at line 69.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam210/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/opt/openfoam210/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#2  Foam::List<double>::List(int, double const&) in "/opt/openfoam210/platforms/linuxGccDPOpt/lib/libOpenFOAM.so"
#3  Foam::postProcessingWaves::equidistantTime(Foam::List<std::pair<double, int> > const&, Foam::dictionary const&) in "/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/lib/libwaves2FoamProcessing.so"
#4  Foam::interpolateSurfaceElevation::evaluate() in "/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/lib/libwaves2FoamProcessing.so"
#5  
 in "/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/bin/postProcessWaves2Foam"
#6  __libc_start_main in "/lib/tls/i686/cmov/libc.so.6"
#7  
 in "/home/maryam/OpenFOAM/maryam-2.1.0/platforms/linuxGccDPOpt/bin/postProcessWaves2Foam"

How can I fix this? I think there were some problems with the recomplition of the solver.
Besides is there any problem with the working of waveDyMFoam and postProcessWaves2Foam?
Thanks in advanced
Hi
Regarding to my previous post, I found out the problem was that endTime in controlDict was less than the tMin in postProcessing file.

Now I've got another question. The distribution of gauges in probeDefinition is as lineDistribution with a constant distance between them.
How can I add gauges in the specified points in the tank. I've got a floating object in the domain, so I can not specify them as lineDistribution, because some of them will be in the field of floating object.
I saw there was a pointDistributions.C file in the source folder. Is it possible to use this kind of distribution.

I would be thankful Niel if you answer me soon because I'm in a hurry
Thanks so much for your attention
mary mor is offline   Reply With Quote

Old   July 9, 2014, 16:53
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
Good evening,

@Maryam: If you make a spelling error in lineDistribution you are given all the possible options when the pre-processing program fails - otherwise it should be straight forward for you to code your own stuff.

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.

Last edited by wyldckat; October 8, 2018 at 10:16. Reason: removed answer to another post that was on the main thread
ngj 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
Solver "command not found" error kilroy OpenFOAM 10 August 30, 2018 04:56
[waves2Foam] compiling a new solver with wmake: waveDyMFoam Anna.Mozhgani OpenFOAM Community Contributions 12 October 18, 2016 16:29
[waves2Foam] Problems in Operating waveDyMFoam in openfoam 2.3.1 zhxter OpenFOAM Community Contributions 2 May 18, 2015 20:57
Segmentation fault running waveDyMFoam solver (mod. interDyMFoam solver - waves2Foam) Ed R OpenFOAM Running, Solving & CFD 5 July 2, 2013 11:36
New solver compile error kilroy OpenFOAM Programming & Development 11 April 29, 2013 10:52


All times are GMT -4. The time now is 04:45.