|
[Sponsors] |
May 31, 2018, 06:12 |
Foam::error::printStack(Foam::Ostream&)
|
#1 |
Member
Jiadong Wang
Join Date: Mar 2018
Location: Australia
Posts: 32
Rep Power: 8 |
Hi Foamers,
I encountered a problem when run a tutorial using my simply modified solver. I try to simulate a prescribed motion using sixDoFRigidBodyMotion solver. So I modified the symplectic.C in src/sixDoFRigidBodyMotion/sixDoFSolvers/symplectic/. The only thing I changed is the calculation of centreOfRotation. The original formula is: centreOfRotation() = centreOfRotation0() + deltaT*v(); In my modified file it is: centreOfRotation()[0] = centreOfRotation0()[0] + deltaT*v()[0]; centreOfRotation()[1] = centreOfRotation0()[1] + 0.2*sin(6.28*t); centreOfRotation()[2] = centreOfRotation0()[2] + deltaT*v()[2]; I want to make the body conduct a heave motion in vertical direction with sinusoidal function depend on time. Anyway, the solver is compiled well. Then, I test the modified solver using wingMotion tutorial, but got the following error: [2] #0 Foam::error::printStack(Foam::Ostream&)[3] #0 Foam::error::printStack(Foam::Ostream&)[0] [1] #0 Foam::error::printStack(Foam::Ostream&)#0 Foam::error::printStack(Foam::Ostream&) at ??:? [2] #1 Foam::sigFpe::sigHandler(int) at ??:? at ??:? at ??:? [1] #1 Foam::sigFpe::sigHandler(int)[3] #1 Foam::sigFpe::sigHandler(int)[0] #1 Foam::sigFpe::sigHandler(int) at ??:? [1] #2 ? at ??:? [2] #2 ? at ??:? [0] #2 ? at ??:? [3] #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" [1] #3 ? in "/lib/x86_64-linux-gnu/libc.so.6" [3] #3 ? in "/lib/x86_64-linux-gnu/libc.so.6" [0] #3 ? in "/lib/x86_64-linux-gnu/libc.so.6" [2] #3 ? in "/usr/lib/libmpi.so.12" [0] #4 ompi_coll_tuned_allreduce_intra_recursivedoubling in "/usr/lib/libmpi.so.12" [1] #4 ompi_coll_tuned_allreduce_intra_recursivedoubling in "/usr/lib/libmpi.so.12" [2] #4 ompi_coll_tuned_allreduce_intra_recursivedoubling in "/usr/lib/libmpi.so.12" [3] #4 ompi_coll_tuned_allreduce_intra_recursivedoubling at ??:? [2] #5 PMPI_Allreduce at ??:? [1] #5 PMPI_Allreduce at ??:? [0] #5 PMPI_Allreduce at ??:? [3] #5 PMPI_Allreduce in "/usr/lib/libmpi.so.12" Hope anyone who has relevant experience can provide me some suggestions. Any information is appreciated. |
|
Tags |
sixdofsolver |
|
|