|
[Sponsors] |
free() invalid pointer error for modified new solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 29, 2020, 05:29 |
free() invalid pointer error for modified new solver
|
#1 | ||
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Dear foamers
I modify a fsiFoam and add an object to fluidSolidInterface as: Quote:
Quote:
Thanks Hojatollah |
|||
March 29, 2020, 11:27 |
|
#2 |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
take a look at these two threads:
corrupted size vs prev_size error in foam-extend4.0 *** glibc detected *** free(): invalid pointer As stated, these kind of errors occur when the compiler has to free the same object twice or you are linking libraries that probably have classes with the exact same naming convention. Either way, this is a user coding error. Compile and run the solver in debug mode, that will show you when and where the error occur. Regards, D. Khazaei |
|
March 30, 2020, 14:42 |
|
#3 | |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Yes. It seen, the problem can come from each code line, so I comment each line in object and found the problem comes from stress().faceZoneKappaDelta and fix it.
unfortunately, the showing error can't show correct position. Quote:
|
||
March 30, 2020, 16:12 |
|
#4 | |
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Quote:
For detailed information you need to compile and run in debug mode and use gdb backtrace command to see which line in the code is causing any type of error. This provides step by step sequence of events that lead to the error. |
||
March 31, 2020, 04:13 |
|
#5 |
Senior Member
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7 |
Dear Khazaei
Thanks for your reply. I have a question that not relative to this topic. In setTemperature object. I see the reference article "Vynnycky, M., Kimura, S., Kanev, K., & Pop, I. (1998). Forced convection heat transfer from a flat plate: the conjugate problem. International Journal of Heat and Mass Transfer, 41(1), 45–59. doi:10.1016/s0017-9310(97)00113-0*". It is for steady simulation. And also, in chtMultiRegionFoam solver, it use similar conjugate condition (mixed). Although uses temporal term in "fvm::ddt(rho, h)", but I am not sure the mixed condition for temperature is suitable for fsi problem with transient behavior. Do you sure about this condition? Do you know, the commercial software such as ANSYS, COMSOL, use which conjugate boundary condition? The result of mixed condition for pr >>1 for steady problem give appropriate agreement but for Pr =<1 is not good. Do you found any other reference for Pr =<1? Thanks Hojatollah Last edited by Hgholami; March 31, 2020 at 06:35. |
|
March 31, 2020, 13:14 |
|
#6 | |||
Senior Member
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21 |
Quote:
Solver for steady or transient fluid flow and solid heat conduction, with conjugate heat transfer between regions, buoyancy effects, turbulence, reactions and radiation modelling. Also a simple search using google brought up a few papers that use chtMultiRegionFoam solver for transient simulation. The conjugate procedure implemented in fsi toolkit is doing the exact same thing and I don't see why it can not be used in transient simulations as long as it maintains heat flux and temperature consistency on the interface for each time step. As I didn't have enough time to check CHT + FSI cases yet, I created a new branch called feature-thermoCoupling and removed fsi related part from solids4Foam toolkit until I can make sure it is working as expected. I'm concerned about solid region formulation when dealing with CHT+FSI cases. Nevertheless, the new branch should practically work with both steady and transient CHT only simulations. Let me know if you face any problem running transient cases. Quote:
Quote:
The validation test case provided with solids4Foam is using Pr = 0.01 and it is in good agreement with experimental data. Also you can see that solids4Foam and chtMultiRegionFoam produce almost identical results. Regards, D. Khazaei |
||||
Tags |
free(): invalid pointer, fsifoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PEMFC model with FLUENT | brahimchoice | FLUENT | 22 | April 19, 2020 16:44 |
long error when using make-install SU2_AD. | tomp1993 | SU2 Installation | 3 | March 17, 2018 07:25 |
OpenFOAM install on Ubuntu Natty 11.04 | bkubicek | OpenFOAM | 13 | May 26, 2011 06:48 |
free " ordinary differential equations solver" | ztdep | Main CFD Forum | 2 | March 21, 2006 02:58 |
Free 2D Axisymmetric Potential Flow Solver for Matlab? | Jonas Larsson | Main CFD Forum | 0 | August 13, 2003 10:13 |