|
[Sponsors] |
November 18, 2019, 06:12 |
Segmentation fault while interpolating
|
#1 | ||
New Member
chen yu Huang
Join Date: Nov 2019
Posts: 18
Rep Power: 6 |
Hello,
my solver diverges while interpolating. In my case I have created a new solver which based on icoFoam. After calculating pressure the solver calls my own function to derive some specified points. The velocity of these points are then derived by interpolating and transfer to my own function. At beginning there is no problem, but after 0.5 second flowtime, I got error and it seems that interpolation is fail, so I did some tests 1. If I set 0.5 as startTime and run again my solver, it works but it may stop again if endTime is longer(In my case endTime is 1 second). 2. I have used pthread in my solver(the error #2). I disabled it but the solver still diverges. 3.If I hide all command lines and interpolation except calling my own program, it works, so the Segmentation fault is not from my own program 4.To test solver I set 10 points. I have printed each time step of position and velocity. The solver stops after interpolating first position. The following are some parts of interpolation and error message. I will be grateful if someone give me advise. Thank you!! Here is my program: Quote:
Here is Error message: Quote:
|
|||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Segmentation fault when running dieselFoam or dieselEngineFoam in parallel | francesco | OpenFOAM Bugs | 4 | May 2, 2017 22:59 |
Segmentation fault in SU2 V5.0 | ygd | SU2 | 2 | March 1, 2017 05:38 |
Segmentation fault when running in parallel | Pj. | OpenFOAM Running, Solving & CFD | 3 | April 8, 2015 09:12 |
Segmentation Fault w/ compiled OF 2.2.0 - motorBike example | sudo | OpenFOAM Running, Solving & CFD | 3 | April 2, 2013 18:27 |
segmentation fault when installing OF-2.1.1 on a cluster | Rebecca513 | OpenFOAM Installation | 9 | July 31, 2012 16:06 |