|
[Sponsors] |
April 15, 2010, 07:45 |
Solver table is empty
|
#1 |
Member
Rasoul
Join Date: Feb 2010
Posts: 32
Rep Power: 16 |
Hello,
I'm one of the new people trying to run "moving cone" tutorial on the openfoam 1.5 (on the mac). I did blockMesh and then icoDyMFoam. but the execution interrupted with the following error: / * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 Selecting dynamicFvMesh dynamicMotionSolverFvMesh Selecting motion solver: velocityComponentLaplacian --> FOAM Warning : From function dlLibraryTable:pen(const fileName& functionLibName) in file db/dlLibraryTable/ dlLibraryTable.C at line 79 |
|
April 15, 2010, 09:10 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Either change .so to .dylib in the relevant library or create a symlink in $OFAM_LIBBIN Bernhard |
||
April 16, 2010, 06:07 |
|
#3 | |
Member
Rasoul
Join Date: Feb 2010
Posts: 32
Rep Power: 16 |
Quote:
Thanks a lot Dear Bernhard!!! |
||
May 19, 2010, 14:10 |
|
#4 |
New Member
Daniele Trimarchi
Join Date: Mar 2010
Location: Southampton, Uk
Posts: 11
Rep Power: 16 |
Hi Foamers, I'm happily running the moving cone, and I'm now trying to do some minor modifications. In particular, I'm using the velocityLaplacian solver, and I can impose rigid body motion in the domain.
Now I'd like to modify the solver, in order to apply a correction function to the velocity. For example, I'd like to impose a simple deforming body motion u(y). don't know if there is any simpler way, but I think I want to try by modifying the solver, where the motion law is. So I: 1_ copied the FvMotionSolvers/ in my working dir, and renamed as MyFvMotionSolver. There, I copied the Make/ folder also. 2_ Deleted folders I don't need to modify, for instance displacements 3_ renamed fvmotionSolver/ and velocity/ as MyfvmotionSolver and Myvelocity/ 4_ In Myvelocity, deleted ComponentLaplacian, that I don't need. Renamed laplacian in Mylaplacian 5_ Substituted in the full set of files fvMotionSolver -> MyfvMotionSolver. And velocityLaplacianFvMotionSolver ->MyvelocityLaplacianFvMotionSolver with sed s/oldstring/newstring/g <oldfile >newfile 6_ In the Make/file, I just left MyfvMotionSolver/MyfvMotionSolver.C Myvelocity/Mylaplacian/MyvelocityLaplacianFvMotionSolver.C LIB = $(FOAM_LIBBIN)/libMyfvMotionSolvers 7_ In the Make/options, I left all as I found, but I added the line: -I$(LIB_SRC)/fvMotionSolver/lnInclude |
|
May 19, 2010, 14:15 |
|
#5 |
New Member
Daniele Trimarchi
Join Date: Mar 2010
Location: Southampton, Uk
Posts: 11
Rep Power: 16 |
** Sorry, continue from the last message...(n.4) ***
for recovering all the necessary dependancies. Now, when I try to recompile with 'wmake libso', I get compilation errors such as: ------------------------------------------- Myvelocity/Mylaplacian/MyvelocityLaplacianFvMotionSolver.C: In constructor ‘Foam::MyvelocityLaplacianFvMotionSolver::Myveloci tyLaplacianFvMotionSolver(const Foam:olyMesh&, Foam::Istream&)’: Myvelocity/Mylaplacian/MyvelocityLaplacianFvMotionSolver.C:90: error: no matching function for call to ‘Foam::motionDiffusivity::New(Foam::MyvelocityLapl acianFvMotionSolver&, Foam::ITstream&)’ /home/daniele/OpenFOAM/OpenFOAM-1.6.x/src/fvMotionSolver/lnInclude/motionDiffusivity.H:86: note: candidates are: static Foam::autoPtr<Foam::motionDiffusivity> Foam::motionDiffusivity::New(const Foam::fvMotionSolver&, Foam::Istream&) Myvelocity/Mylaplacian/MyvelocityLaplacianFvMotionSolver.C: In member function ‘virtual void Foam::MyvelocityLaplacianFvMotionSolver::updateMes h(const Foam::mapPolyMesh&)’: Myvelocity/Mylaplacian/MyvelocityLaplacianFvMotionSolver.C:155: error: no matching function for call to ‘Foam::motionDiffusivity::New(Foam::MyvelocityLapl acianFvMotionSolver&, Foam::ITstream&)’ /home/daniele/OpenFOAM/OpenFOAM-1.6.x/src/fvMotionSolver/lnInclude/motionDiffusivity.H:86: note: candidates are: static Foam::autoPtr<Foam::motionDiffusivity> Foam::motionDiffusivity::New(const Foam::fvMotionSolver&, Foam::Istream&) make: *** [Make/linuxGccDPOpt/MyvelocityLaplacianFvMotionSolver.o] Error 1 ------------------------------------------------- Can anyone help me understanding where I'm wrong? Cheers, Daniele |
|
May 21, 2010, 13:26 |
velocityLaplacian Modified
|
#6 |
New Member
Daniele Trimarchi
Join Date: Mar 2010
Location: Southampton, Uk
Posts: 11
Rep Power: 16 |
Hi Foamers, after a lot of struggling, I decided to use the original sources, recompiled from another location. Less 'nice' but it works.
Actually I managed to impose some body deformations [u=y(y)], and the geometry seems to deform well. This has been done by modifying velocitylaplacianfvMotionSolver.C, l.112 et following, as: tmp<pointField> tcurPoints ( fvMesh_.points() //+ fvMesh_.time().deltaT().value()*pointMotionU_.inte rnalField() + fvMesh_.time().deltaT().value()*pointMotionU_.inte rnalField()*fvMesh_.points().component(vector::Y) ); Now, it seems that my boundary conditions on the beam are not updated in the right way. In fact (I post a picture) the x-component of the velocity at the beam is constant, and not linear, following the beam body motion. I tried to have a look about the possible causes, or corrections to do, but I'm quite lost... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |
First steps w moving mesh FOAM FATAL ERROR solver table is empty | tehache | OpenFOAM Running, Solving & CFD | 2 | May 14, 2007 05:59 |
Solver and Table | ali | CFX | 0 | January 22, 2007 14:07 |
compressible two phase flow in CFX4.4 | youngan | CFX | 0 | July 2, 2003 00:32 |
Setting a B.C using UserFortran in 4.3 | tokai | CFX | 10 | July 17, 2001 17:25 |