HomerReid / scuff-em

A comprehensive and full-featured computational physics suite for boundary-element analysis of electromagnetic scattering, fluctuation-induced phenomena (Casimir forces and radiative heat transfer), nanophotonics, RF device engineering, electrostatics, and more. Includes a core library with C++ and python APIs as well as many command-line applications.
http://www.homerreid.com/scuff-em
GNU General Public License v2.0
126 stars 50 forks source link

smallbin double linked list corrupted; largerTransferred Power flux #85

Closed ZhihaoJia16 closed 8 years ago

ZhihaoJia16 commented 8 years ago

Hi, I install scuff-em-Overhaul201512, trying to reproduce the example Thermal radiation, heat transfer, and non-equilibrium Casimir forces between silicon dioxide spheres about two spheres.

*** Error in `scuff-neq': malloc(): smallbin double linked list corrupted: 0x000000000217d100 ***

The details are follows: I run,

#!/bin/bash
for N in 501 
do
  ARGS=""
  ARGS="${ARGS} --geometry SiO2Spheres_${N}.scuffgeo"
  ARGS="${ARGS} --OmegaFile OmegaFile"
  ARGS="${ARGS} --Power --ZForce"
  ARGS="${ARGS} --DSIRadius 5"
  ARGS="${ARGS} --DSIPoints 302"
  scuff-neq ${ARGS}
done

it crashes after computing of one or several omega every time, with error

*** Error in `scuff-neq': malloc(): smallbin double linked list corrupted: 0x000000000217d100 ***

I do % export SCUFF_INTERPOLATION_TOLERANCE=1e-2, it does not work. Anyway, I finally get SiO2Spheres_501.SIFlux.DSI302 file. The Transferred Power flux between two SiO2 spheres is

jia

But, numerical values computed is larger 4-6 orders of magnitude than that of reference.

Best. Thank you in advance.

ZhihaoJia16 commented 8 years ago

I still get error received signal 11 when I reproduce Flux spectrum of the gold cone-plate configuration at a single separation d = 0.2L with fine surface meshes in Fluctuating-surface-current formulation of radiative heat transfer: Theory and applications. (For coarse surface meshes, it's ok )

tu2

then I do % export SCUFF_INTERPOLATION_TOLERANCE=1e-3, it does not work, get

...
03/28/16::17:53:06:   80 % (2318/2898)... 
03/28/16::17:53:09:   90 % (2608/2898)... 
03/28/16::17:53:11:  ...done! 
03/28/16::17:53:11: Computing neq quantities at omega=0.113722... 
03/28/16::17:53:11:  Assembling self contributions to T(0)... 
03/28/16::17:53:11: Assembling BEM matrix block (0,0) 
/home/jia/scuff-em-installation/lib/libscuff.so.0(+0x717d3)[0x7ff4742a77d3]
/lib/x86_64-linux-gnu/libc.so.6(+0x36d40)[0x7ff473687d40]
/usr/lib/x86_64-linux-gnu/libgomp.so.1(+0x8a63)[0x7ff472365a63]
/home/jia/scuff-em-installation/lib/libscuff.so.0(_ZN5scuff29GetSurfaceSurfaceInteractionsEPNS_15GetSSIArgStructE+0x227)[0x7ff474266547]
/home/jia/scuff-em-installation/lib/libscuff.so.0(_ZN5scuff11RWGGeometry22AssembleBEMMatrixBlockEiiSt7complexIdEPdP7HMatrixPS5_iiPvbiS6_S3_+0xb00)[0x7ff4742644a0]
scuff-neq[0x404e49]
scuff-neq[0x4036f0]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7ff473672ec5]
scuff-neq[0x4038f8]

**<><> received signal 11 

Best. Thank you in advance.

HomerReid commented 8 years ago

I've made some improvements to SCUFF-NEQ. Please pull from the Overhaul201512 branch and rebuild and re-run your tests.

Here are a couple of comments:

ZhihaoJia16 commented 8 years ago

Thank you for your answer. I will try it.