CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

compiling my movingWallVelocity!!

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2014, 06:35
Default compiling my movingWallVelocity!!
  #1
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
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 ??:?
I tried it with two different cases which are working fine with the original movingWallVelocity on two different systems on each one I tried it with two OpenFOAM versions; 2.2.x and 2.3.x updated. BTW the two cases use two different solvers.

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
Actually it is not my first time working with movingWallVelocity, I used it before but when I started adding new modification to my BC. I couldn't run it, therefore I decided to start from scratch.
To reproduce the error you can use the wingMotion tutorial and recompile the original BC in your user folder under different name.
hk318i is offline   Reply With Quote

Old   August 26, 2014, 03:29
Default
  #2
Senior Member
 
Jens Höpken
Join Date: Apr 2009
Location: Duisburg, Germany
Posts: 159
Rep Power: 17
jhoepken is on a distinguished road
Send a message via Skype™ to jhoepken
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?
jhoepken is offline   Reply With Quote

Old   August 26, 2014, 05:25
Default
  #3
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
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?
hk318i is offline   Reply With Quote

Old   August 26, 2014, 13:04
Default
  #4
Senior Member
 
Hassan Kassem
Join Date: May 2010
Location: Germany
Posts: 242
Rep Power: 18
hk318i is on a distinguished road
I recompiled OpenFOAM again then recompiled mymovingWallVelocity and everything is running now!
I fixed the error but still don't understand why it happened.
hk318i is offline   Reply With Quote

Reply

Tags
dynamicmesh, movingwallvelocity, openfoam, programming


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 04:24.