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

[waves2Foam] couple surfaceElevation with interDyMFoam or waveDyMFoam?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2014, 07:33
Default couple surfaceElevation with interDyMFoam or waveDyMFoam?
  #1
New Member
 
Jorge Gadelho
Join Date: Feb 2013
Posts: 22
Rep Power: 13
JGadelho is on a distinguished road
Hello Niels,
first of all, sorry for the newbie question, but I don't have the time to explore more and I guess it may help in the future other users.

I have OF 2.2.1 with Waves2Foam (probably R1984) working.
I need to use the surfaceElevation function with InterDyMFoam.

I added this code to the ControlDict file:

Code:
libs
(
    "libwaves2Foam.so"
    "libwaves2FoamSampling.so"
    "libOpenFOAM.so"
    "libincompressibleRASModels.so"
    "libfvMotionSolvers.so"
    "libforces.so"
    
);

functions
{
    surfaceElevation
    {
        type            surfaceElevation;
        functionObjectLibs ( "libwaves2Foam.so" );
        
        outputControl   timeStep; // Alternative: outputTime
        outputInterval  1;
        
        // Additional output controls in waves2Foam
        // Set outputInterval = 1 and timeStep output control if surfaceSampleDeltaT is used.
        samplingStartTime 0; 
        surfaceSampleDeltaT 0.025; // Only an approximate output interval! No feedback on deltaT in the simulation
        
        setFormat raw;
        interpolationScheme cellPointFace;
        fields (alpha1);
        sets
        (
            gauge0
            {
                type        face;
                axis        y;

                start       (0.6 -0.3 0.005);
                end         (0.6 0.2 0.005);
                nPoints     100;
            }  
        
            
        );
    }
}
The surfaceElevation function writes the first time step, but then the simulation crashes with this error message:

Code:
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigSegv::sigHandler(int) at ??:?
#2   in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::valuePointPatchField<double>::updateCoeffs() at ??:?
#4  Foam::GeometricField<double, Foam::pointPatchField, Foam::pointMesh>::GeometricBoundaryField::updateCoeffs() at ??:?
#5  Foam::velocityComponentLaplacianFvMotionSolver::solve() at ??:?
#6  Foam::motionSolver::newPoints() at ??:?
#7  Foam::dynamicMotionSolverFvMesh::update() at ??:?
#8  
 at ??:?
#9  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#10  
 at ??:?
Am I missing something?

thank you!
JGadelho is offline   Reply With Quote

Old   February 12, 2014, 12:21
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 Jorge,

It will be quite difficult for anyone running in OF2.2.1 to help you as long as you do not deliver a running case.
Also note, that I do not have the time to resolve this in the code without an actual solution/understanding of the issue.

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   February 13, 2014, 05:30
Default
  #3
New Member
 
Jorge Gadelho
Join Date: Feb 2013
Posts: 22
Rep Power: 13
JGadelho is on a distinguished road
Quote:
Originally Posted by ngj View Post
Hi Jorge,

It will be quite difficult for anyone running in OF2.2.1 to help you as long as you do not deliver a running case.
Also note, that I do not have the time to resolve this in the code without an actual solution/understanding of the issue.

Kind regards,

Niels
Hello Niels,
my initial question was:

if it is possible to couple surfaceElevation with interDyMFoam or waveDyMFoam?

I've made several tests, and surfaceElevation only works on static mesh solvers, like waveFoam or interFoam. I don't know if I'm making something wrong.

Can you suggest an alternative to read the free surface elevation time series on dynamic mesh solvers?

Thank you again,
Jorge.
JGadelho is offline   Reply With Quote

Old   February 13, 2014, 13:07
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 Jorge,

Yes, I have used the surfaceElevation utility (runTime and post-processing) successfully on moving meshes in 1.6-ext. It should be noted that my motion is vertical, i.e. no change of the location of the grid lines in the hortizontal direction.

Good luck,

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   May 14, 2014, 12:53
Default errors when using run -time surfaceElevation function in simulation by interDyMFoam
  #5
New Member
 
Wang Xiuting
Join Date: May 2014
Location: Tianjin,CHN
Posts: 4
Rep Power: 11
wxtwalkee is on a distinguished road
I am working on the piston wave generation by modifying the oscillatingDisplacement boundary condition in OF-2.2.0 using interDyMFoam. I want to add the surfaceElevation function into the controlDict in order to get the run-time surface elevation. I do it as the tutorial case waveflume. The error reports that "surfaceElevation is not valid functionObject". But when I run the case waveflume by ./Allrun, it works well. Why? Does the surfaceElevation have some problems with the interDyMFoam solver in OF-2.2.0?
wxtwalkee is offline   Reply With Quote

Old   May 14, 2014, 13:23
Default
  #6
New Member
 
Wang Xiuting
Join Date: May 2014
Location: Tianjin,CHN
Posts: 4
Rep Power: 11
wxtwalkee is on a distinguished road
Hi Jorge,
I encounter the same problem with you, I want to know whether you have figure it out and i would be very grateful if you can offer some suggestions.

Thank you
wxtwalkee
wxtwalkee 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
[waves2Foam] waveDyMFoam: doing the modifications manually in interDyMFoam according to waveFoam PVERMA OpenFOAM Community Contributions 0 December 15, 2017 04:34
[waves2Foam] converting interDyMFoam to waveDyMFoam with OpenFOAM 2.1.1 manoj_nav OpenFOAM Community Contributions 2 June 5, 2014 02:52
Segmentation fault running waveDyMFoam solver (mod. interDyMFoam solver - waves2Foam) Ed R OpenFOAM Running, Solving & CFD 5 July 2, 2013 11:36
error using interDyMFoam with kOmegaSST to simulate sloshing anmartin OpenFOAM Running, Solving & CFD 0 July 20, 2010 13:21
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15


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