|
[Sponsors] |
August 24, 2014, 06:35 |
compiling my movingWallVelocity!!
|
#1 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
I am trying to use movingWallVelocity as a base for developing new boundary condition. I started by copying the source code and renamed it and everything inside the source. I prepared the Make folder and compiled it without errors.
The problem is, it is blow-up before finishing the first time step. Code:
#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::face::centre(Foam::Field<Foam::Vector<double> > const&) const at ??:? #4 Foam::slipmovingWallVelocityFvPatchVectorField::updateCoeffs() at ??:? #5 Foam::fvPatchField<Foam::Vector<double> >::evaluate(Foam::UPstream::commsTypes) at ??:? #6 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::evaluate() at ??:? #7 Foam::dynamicMotionSolverFvMesh::update() at ??:? #8 at ??:? #9 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" #10 at ??:? my Options file is; Code:
EXE_INC = \ -I$(LIB_SRC)/triSurface/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/OpenFOAM/lnInclude LIB_LIBS = \ -lOpenFOAM \ -lfiniteVolume \ -ltriSurface \ -lmeshTools To reproduce the error you can use the wingMotion tutorial and recompile the original BC in your user folder under different name. |
|
August 26, 2014, 03:29 |
|
#2 |
Senior Member
|
Hi Hassan,
You have copied the entire movingWallVelocity patchField directory to a seperate one in, say, $WM_PROJECT_USER_DIR/src and renamed all occurences of movingWallVelocity to fancyMovingWallVelocity? Both in the file names as well as in the files itself? And you have changed the target to where the compiled library is then copied to from $FOAM_LIBBIN to $FOAM_USER_LIBBIN? The error you show is not a compiler error, but a run time error. Have you checked if it is working with movingWallVelocity? I hope this helps and gives you some pointers, though I have my doubts that the hints are worth anything. Let me know. Jens
__________________
Blog: sourceflux.de/blog "The OpenFOAM Technology Primer": sourceflux.de/book Twitter: @sourceflux_de Interested in courses on OpenFOAM? |
|
August 26, 2014, 05:25 |
|
#3 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
Thank you for your response.
That exactly what I did. I run the wingMotion tutorial with movingWallVelocity and it works. But once I changed the BC to mymovingWallVelocity, I get this error. Also, I removed all the LIB_LIBS options and tried to recompile it and it was successful. Is that normal?!! Did you manage to reproduce the error? |
|
August 26, 2014, 13:04 |
|
#4 |
Senior Member
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18 |
I recompiled OpenFOAM again then recompiled mymovingWallVelocity and everything is running now!
I fixed the error but still don't understand why it happened. |
|
Tags |
dynamicmesh, movingwallvelocity, openfoam, programming |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
fluent udf error while compiling: unknown type name __locale_t | aditya.pandare | Fluent UDF and Scheme Programming | 3 | April 12, 2014 15:52 |
Linux vs PC Compiling | Rhyno466 | Fluent UDF and Scheme Programming | 10 | May 11, 2012 18:01 |
Help with KIVA4 source code compiling | geothokar | Main CFD Forum | 0 | September 3, 2010 06:40 |
error msg when compiling user fortran | Ollimarc | CFX | 0 | March 13, 2008 19:16 |
Discussing UDF and C++ Compiling | Big Stone | FLUENT | 9 | April 12, 2004 16:07 |