|
[Sponsors] |
error with new+modified interfaceProperties library |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 7, 2016, 10:50 |
error with new+modified interfaceProperties library
|
#1 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16 |
Hello,
i am trying to modify the interfaceProperties lib. To do this i created a new library (say "myInterfaceProperties"), which, for the moment, looks exactly as the original one. The only difference is that i am trying to pass more fields to the library. I modified the constructors part in interfaceProperties.C as follow (red parts are new) Code:
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // Foam::myInterfaceProperties::myInterfaceProperties ( const volScalarField& alpha1, const volVectorField& U, const volScalarField& DeltaX, const volScalarField& DeltaY, const IOdictionary& dict ) : alpha1_(alpha1), U_(U), dx_(DeltaX), dy_(DeltaY), Code:
const volScalarField& alpha1_; const volVectorField& U_; const volScalarField& dx_; const volScalarField& dy_; I called the new library in createField.H as Code:
myInterfaceProperties interface(alpha1, U, DeltaX, DeltaY, twoPhaseProperties); Code:
Create mesh for time = 0 PIMPLE: Operating solver in PISO mode Reading field p_rgh Reading field U Reading/calculating face flux field phi Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian #0 Foam::error::printStack(Foam::Ostream&) at ??:? #1 Foam::sigSegv::sigHandler(int) at ??:? #2 in "/lib/x86_64-linux-gnu/libc.so.6" #3 Foam::myInterfaceProperties::myInterfaceProperties(Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::IOdictionary const&) at ??:? #4 at ??:? #5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #6 at ??:? Segmentation fault (core dumped) Any idea about the error? Andrea |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Multi species mass transport library [update] | novyno | OpenFOAM Community Contributions | 111 | November 9, 2021 23:37 |
ERROR: unable to find library | HJH | CFX | 6 | February 26, 2019 06:52 |
decomposePar is missing a library | whk1992 | OpenFOAM Pre-Processing | 8 | March 7, 2015 07:53 |
Compiled library vs. inInclude Files, DSMC solver crashes after run | GPesch | OpenFOAM Programming & Development | 8 | April 18, 2013 07:17 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 15:49 |