|
[Sponsors] |
March 1, 2011, 11:36 |
segmentation error
|
#1 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
Hello everybody,
I want to correct a boundary condition of a variable called “nHatfv” by means of working with “nHapt” in these lines: surfaceVectorField::GeometricBoundaryField& nHatb = nHatfv.boundaryField(); const fvBoundaryMesh& boundary = mesh.boundary(); forAll(boundary, patchi) { fvsPatchVectorField& nHatp = nHatb[patchi]; vectorField nf = boundary[patchi].nf(); scalarField a12 = nHatp & nf; scalarField b2(nHatp.size()); forAll(b2,facei) { b2[facei] = Foam::cos(Foam::acos(a12[facei])); } nHatp /=b2*a12; } The solver compiles Ok without errors, but when I want to run my tutorial, I have the folllowing error: #0 Foam::errorprintStack(Foam::Ostream&) in "/home/isabel/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so" #1 Foam::sigSegv::sigSegvHandler(int) in "/home/isabel/OpenFOAM/OpenFOAM-1.5/lib/linuxGccDPOpt/libOpenFOAM.so" #2 Uninterpreted: [0xb807a400] #3 main in "/home/isabel/OpenFOAM/OpenFOAM-1.5/applications/bin/linuxGccDPOpt/informe24" #4 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6" #5 _start at /build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122 Segmentation error and I saw that the error dissapears if I supress these lines: forAll(b2,facei) { b2[facei] = Foam::cos(Foam::acos(a12[facei])-theta[facei]); } But I need these lines. What can I do? |
|
March 1, 2011, 11:40 |
|
#2 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
Let me guess - do you have any empty patches?
|
|
March 2, 2011, 02:22 |
|
#3 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
May be, in the first lime I equal “nHatb = nHatfv.boundaryField()”, but I did not defined nHatfv in my “createFields.H”.
Is this the problem? |
|
March 2, 2011, 02:23 |
|
#4 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
May be, in the first lime I equal “nHatb = nHatfv.boundaryField()”, but I did not defined nHatfv in my “createFields.H”.
Is this the problem? |
|
March 2, 2011, 02:25 |
|
#5 |
Senior Member
isabel
Join Date: Apr 2009
Location: Spain
Posts: 171
Rep Power: 17 |
May be, in the first lime I equal “nHatb = nHatfv.boundaryField()”, but I did not defined nHatfv in my “createFields.H”.
Is this the problem? |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 18:54 |
compile errors of boundary condition "expDirectionMixed" | liying02ts | OpenFOAM Bugs | 2 | February 1, 2010 20:11 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 19:08 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 17:51 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |