|
[Sponsors] |
September 3, 2014, 11:51 |
Problems with interpolation
|
#1 |
Member
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15 |
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()) ) ), 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); |
|
March 7, 2016, 11:28 |
|
#2 |
Member
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 10 |
Hello oswald,
Have you found the error? Regards, Darko |
|
March 15, 2016, 02:49 |
|
#3 |
Member
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15 |
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); Code:
curlUcInterp_ ( interpolation<vector>::New ( cloud.solution().interpolationSchemes(), cloud.curlUc() ) ), oswald |
|
March 15, 2016, 04:09 |
|
#4 |
Member
Darko Radenkovic
Join Date: Oct 2015
Posts: 38
Rep Power: 10 |
Thank you.
Regards, Darko |
|
|
|
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 |