CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Problems with interpolation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2014, 11:51
Question Problems with interpolation
  #1
Member
 
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15
oswald is on a distinguished road
Dear Users,

I am trying to implement some forces in the lagrangian library. For this purpose I need the curl of the carrier velocity field at the particles' positions. So I included a interpolator similar for this in kinematicParcel, similar to the already existing interpolators.

Code:
    curlUInterp_
    (
        interpolation<vector>::New
        (
            cloud.solution().interpolationSchemes(),
            fvc::curl(cloud.U())
        )
    ),
This is in principle working. But after some time of running a simulation, I get an output like the following:

0] #0 Foam::error::printStack(Foam::Ostream&) in "/opt/openfoam/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #1 Foam::sigSegv::sigHandler(int) in "/opt/openfoam/openfoam211/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #2 in "/lib/libc.so.6"
[0] #3 Foam::interpolationCellPoint<Foam::Vector<double> >::interpolate(Foam::Vector<double> const&, Foam::tetIndices const&, int) const in "/opt/openfoam/openfoam211/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
[0] #4
[0] at ~/OpenFOAM/user-2.1.1/src/lagrangian/incompressible/intermediate/lnInclude/KinematicParcel.C:67
...

Line 67 in KinematicParcel.C calls this new interpolator:

Code:
    curlUc_ = td.curlUInterp().interpolate(this->position(), tetIs);
All the other interpolators work fine. Does anyone have an idea what the error could be? And maybe how to solve it?
oswald is offline   Reply With Quote

Old   March 7, 2016, 11:28
Default
  #2
Member
 
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 10
dradenkovic is on a distinguished road
Hello oswald,

Have you found the error?

Regards,
Darko
dradenkovic is offline   Reply With Quote

Old   March 15, 2016, 02:49
Default
  #3
Member
 
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15
oswald is on a distinguished road
Hi Darko,

I don't remember exactly what the solution was, but at the moment I call the interpolator in KinematicParcel.C like this:

Code:
    curlUc_ = td.curlUcInterp().interpolate(this->position(), cellI);
and I changed the Cloud so that it has a field called curlUc and I can use this in KinematicParcelTrackingData.H:

Code:
    curlUcInterp_
    (
        interpolation<vector>::New
        (
            cloud.solution().interpolationSchemes(),
            cloud.curlUc()
        )
    ),
Hope this helps
oswald
oswald is offline   Reply With Quote

Old   March 15, 2016, 04:09
Default
  #4
Member
 
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 10
dradenkovic is on a distinguished road
Thank you.

Regards,
Darko
dradenkovic 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
[ICEM] Problems with coedge curves and surfaces tommymoose ANSYS Meshing & Geometry 6 December 1, 2020 11:12
Help on 2D interpolation in StarCCM+ madhuri Siemens 1 May 30, 2017 03:20
Interpolation across regionCouple patches in 1.6-ext Ola Widlund OpenFOAM Programming & Development 3 June 18, 2013 14:40
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
Surface interpolation schemes and parallelization jutta OpenFOAM Running, Solving & CFD 0 February 25, 2010 14:32


All times are GMT -4. The time now is 19:01.