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

Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2013, 00:48
Default Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x
  #1
New Member
 
Saxwax
Join Date: Aug 2010
Posts: 17
Rep Power: 16
Saxwax is on a distinguished road
Hi,

I initially had some difficulty compiling mesquite-2.2.0 and dynamicTopoFvMesh. Eventually I got it working (I think) so I thought I should post up what I did. Essentially I just followed the steps outlined in dynamicTopoFvMesh. The main difficulty was running ./configure with the correct options before building dynamicTopoFvMesh. The following worked for me:

Download mesquite
Go to mesquite top level directory
<./configure --enable-shared --prefix=(enter actual path to directory)> e.g. --prexix=/home/me/OpenFOAM/ThirdParty-2.1.x/platforms/linux64Gcc/mesquite-2.2.0. This is where the mesquite libraries will be located. When you set the MESQUITE_DIR environment variable later use the directory that was specified previously.
<make>
<make check>
<make install>
Git pull to get dynamicTopoFvMesh source code
Set environment variables as specified in Install.txt
<./Allrun>

I'm currently working on a test case based on the presentation given at OFW7. If I get that working I'll post it up.
mm.abdollahzadeh likes this.

Last edited by Saxwax; January 19, 2013 at 20:37. Reason: More useful
Saxwax is offline   Reply With Quote

Old   January 20, 2013, 12:45
Default
  #2
Senior Member
 
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 153
Rep Power: 15
mm.abdollahzadeh is on a distinguished road
Hi

Could you please help me in setting MESQUITE_DIR environment variable?

Best
Mahdi
mm.abdollahzadeh is offline   Reply With Quote

Old   January 21, 2013, 05:59
Default Set MESQUITE_DIR environment variable
  #3
New Member
 
Saxwax
Join Date: Aug 2010
Posts: 17
Rep Power: 16
Saxwax is on a distinguished road
The method for setting the MESQUITE_DIR environment variable depends on the shell that you are using. You can find the full set of installation instructions here: https://github.com/smenon/dynamicTop....x/Install.txt

In Bash:
export MESQUITE_DIR=$WM_THIRD_PARTY_DIR/mesquite-x.x.x


In Csh:
setenv MESQUITE_DIR $WM_THIRD_PARTY_DIR/mesquite-x.x.x

This assumes that you installed the mesquite software into the $WM_THIRD_PARTY_DIR/mesquite-x.x.x directory, i.e. <./configure --enable-shared --prefix=$WM_THIRD_PARTY_DIR/mesquite-x.x.x>
Also note that you will need to specify the full path when running the configuration script.
mm.abdollahzadeh likes this.

Last edited by Saxwax; January 21, 2013 at 06:04. Reason: Clarification
Saxwax is offline   Reply With Quote

Old   January 21, 2013, 10:08
Default
  #4
Senior Member
 
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 153
Rep Power: 15
mm.abdollahzadeh is on a distinguished road
Hi

I have checked the installation guide already. but my problem is exactly. I dont know that i should add both bash and Csh. and then do i need to use some command to update the varibales?

in the console i am writting the command "env" to list the environment variables. but I dont have nth related to mesquite.
Im working on Ubuntu 10.04 LTS with OpenFoam 2.1.x

Thanks in proceeding for your help.

best
Mahdi


mm.abdollahzadeh is offline   Reply With Quote

Old   January 21, 2013, 14:34
Default
  #5
Senior Member
 
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 153
Rep Power: 15
mm.abdollahzadeh is on a distinguished road
Quote:
Originally Posted by Saxwax View Post
The method for setting the MESQUITE_DIR environment variable depends on the shell that you are using. You can find the full set of installation instructions here: https://github.com/smenon/dynamicTop....x/Install.txt

In Bash:
export MESQUITE_DIR=$WM_THIRD_PARTY_DIR/mesquite-x.x.x


In Csh:
setenv MESQUITE_DIR $WM_THIRD_PARTY_DIR/mesquite-x.x.x

This assumes that you installed the mesquite software into the $WM_THIRD_PARTY_DIR/mesquite-x.x.x directory, i.e. <./configure --enable-shared --prefix=$WM_THIRD_PARTY_DIR/mesquite-x.x.x>
Also note that you will need to specify the full path when running the configuration script.
Hi

I think i solved my previous problem but when compiling the dynamictopochange i am reviving these errors
Code:
In file included from mesquiteMotionSolver.C:27:
mesquiteMotionSolver.H:143: error: ‘Mesquite’ was not declared in this scope
mesquiteMotionSolver.H:143: error: template argument 1 is invalid
mesquiteMotionSolver.H:155: error: ‘Mesquite’ was not declared in this scope
mesquiteMotionSolver.H:155: error: template argument 1 is invalid
mesquiteMotionSolver.H:155: error: template argument 1 is invalid
mesquiteMotionSolver.H:158: error: ‘Mesquite’ was not declared in this scope
mesquiteMotionSolver.H:158: error: template argument 1 is invalid
mesquiteMotionSolver.H:161: error: ‘Mesquite’ was not declared in this scope
mesquiteMotionSolver.H:161: error: template argument 1 is invalid
mesquiteMotionSolver.H:164: error: ‘Mesquite’ has not been declared
mesquiteMotionSolver.H:164: error: ISO C++ forbids declaration of ‘TerminationCriterion’ with no type
mesquiteMotionSolver.H:164: error: expected ‘;’ before ‘tcInner_’
mesquiteMotionSolver.H:165: error: ‘Mesquite’ has not been declared
mesquiteMotionSolver.H:165: error: ISO C++ forbids declaration of ‘TerminationCriterion’ with no type
mesquiteMotionSolver.H:165: error: expected ‘;’ before ‘tcOuter_’
mesquiteMotionSolver.C: In member function ‘void Foam::mesquiteMotionSolver::readOptions()’:
mesquiteMotionSolver.C:380: error: ‘Mesquite’ has not been declared
mesquiteMotionSolver.C:380: error: expected ‘;’ before ‘err’
mesquiteMotionSolver.C:383: error: request for member ‘insert’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:386: error: ‘Mesquite’ was not declared in this scope
mesquiteMotionSolver.C:386: error: template argument 1 is invalid
mesquiteMotionSolver.C:388: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:388: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:392: error: request for member ‘insert’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:395: error: ‘Mesquite’ cannot appear in a constant-expression
mesquiteMotionSolver.C:395: error: template argument 1 is invalid
mesquiteMotionSolver.C:397: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:397: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:401: error: request for member ‘insert’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:404: error: ‘Mesquite’ cannot appear in a constant-expression
mesquiteMotionSolver.C:404: error: template argument 1 is invalid
mesquiteMotionSolver.C:406: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:406: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:410: error: request for member ‘insert’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:413: error: ‘Mesquite’ cannot appear in a constant-expression
mesquiteMotionSolver.C:413: error: template argument 1 is invalid
mesquiteMotionSolver.C:415: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:415: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:419: error: request for member ‘insert’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:422: error: ‘Mesquite’ cannot appear in a constant-expression
mesquiteMotionSolver.C:422: error: template argument 1 is invalid
mesquiteMotionSolver.C:424: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:424: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:428: error: request for member ‘insert’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:431: error: ‘Mesquite’ cannot appear in a constant-expression
mesquiteMotionSolver.C:431: error: template argument 1 is invalid
mesquiteMotionSolver.C:433: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:433: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:437: error: request for member ‘insert’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:440: error: ‘Mesquite’ cannot appear in a constant-expression
mesquiteMotionSolver.C:440: error: template argument 1 is invalid
mesquiteMotionSolver.C:442: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:442: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:446: error: request for member ‘insert’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:449: error: ‘Mesquite’ cannot appear in a constant-expression
mesquiteMotionSolver.C:449: error: template argument 1 is invalid
mesquiteMotionSolver.C:451: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:451: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:455: error: request for member ‘insert’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:458: error: ‘Mesquite’ cannot appear in a constant-expression
mesquiteMotionSolver.C:458: error: template argument 1 is invalid
mesquiteMotionSolver.C:460: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:460: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:485: error: request for member ‘found’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:491: error: request for member ‘toc’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:510: error: request for member ‘found’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:514: error: request for member ‘toc’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::qMetricTable_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:613: error: ‘Mesquite’ cannot appear in a constant-expression
mesquiteMotionSolver.C:613: error: template argument 1 is invalid
mesquiteMotionSolver.C:613: error: template argument 1 is invalid
mesquiteMotionSolver.C:613: error: invalid type in declaration before ‘(’ token
mesquiteMotionSolver.C:621: error: invalid types ‘int[Foam::label]’ for array subscript
mesquiteMotionSolver.C:623: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:623: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:637: error: invalid types ‘int[Foam::label]’ for array subscript
mesquiteMotionSolver.C:639: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:639: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:635: warning: unused variable ‘pValue’
mesquiteMotionSolver.C:653: error: invalid types ‘int[Foam::label]’ for array subscript
mesquiteMotionSolver.C:655: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:655: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:671: error: invalid types ‘int[Foam::label]’ for array subscript
mesquiteMotionSolver.C:673: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:673: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:667: warning: unused variable ‘power’
mesquiteMotionSolver.C:685: error: invalid types ‘int[Foam::label]’ for array subscript
mesquiteMotionSolver.C:687: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:687: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:698: error: invalid types ‘int[Foam::label]’ for array subscript
mesquiteMotionSolver.C:700: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:700: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:715: error: invalid types ‘int[Foam::label]’ for array subscript
mesquiteMotionSolver.C:717: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:717: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:712: warning: unused variable ‘power’
mesquiteMotionSolver.C:745: error: request for member ‘set’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::objFunction_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:747: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:747: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:760: error: request for member ‘set’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::objFunction_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:762: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:762: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:775: error: request for member ‘set’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::objFunction_’, which is of non-class type ‘int’
mesquiteMotionSolver.C:777: error: expected type-specifier before ‘Mesquite’
mesquiteMotionSolver.C:777: error: expected ‘)’ before ‘Mesquite’
mesquiteMotionSolver.C:790: error: request for member ‘set’ in ‘((Foam::mesquiteMotionSolver*)this)->Foam::mesquiteMotionSolver::objFunction_’, which is of non-class type ‘int’
mm.abdollahzadeh is offline   Reply With Quote

Old   January 29, 2013, 04:04
Default Still trying?
  #6
New Member
 
Saxwax
Join Date: Aug 2010
Posts: 17
Rep Power: 16
Saxwax is on a distinguished road
Hi,

Are you still trying to build dynamicTopoFvMesh?

I'm not sure exactly what the issue is. As a guess it looks like the location of something is not known or specified incorrectly.

Perhaps it would help if you could provide some more information on what you have tried. Can you please go through the steps in the Install.txt file and let me know what you did for each one. I'll try to help but I need more information.

Also, if you type <echo $SHELL> into the terminal you should be able to figure out if you are using bash or csh - I'd say it is bash. Just follow the steps for the one you are using not both. I don't think you need to update the variables (export should do that), just keep using the same terminal window that you started with otherwise the variable may become unset (I think).
Saxwax is offline   Reply With Quote

Old   February 8, 2013, 12:18
Default
  #7
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
what does Mesquite do?is it like GGI?Im mixed up between these mrthods of dynamic mesh.which is better for sliding mesh?
immortality is offline   Reply With Quote

Old   February 10, 2013, 06:08
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,980
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by immortality View Post
what does Mesquite do?
Quoting from the MESQUITE Home Page:
Quote:
Originally Posted by http://www.cs.sandia.gov/optimization/knupp/Mesquite.html
MESQUITE is a linkable software library that applies a variety of node-movement algorithms to improve the quality and/or adapt a given mesh.
Mesquite uses advanced smoothing and optimization to:
  • Untangle meshes,
  • Provide local size control,
  • Improve angles, orthogonality, and skew,
  • Increase minimum edge-lengths for increased time-steps,
  • Improve mesh smoothness,
  • Perform anisotropic smoothing,
  • Improve surface meshes, adapt to surface curvature,
  • Improve hybrid meshes (including pyramids & wedges),
  • Smooth meshes with hanging nodes,
  • Maintain quality of moving and/or deforming meshes,
  • Perform ALE rezoning,
  • Improve mesh quality on and near boundaries,
  • Improve transitions across internal boundaries,
  • Align meshes with vector fields, and
  • R-adapt meshes to solutions using error estimates.
Mesquite improves surface or volume meshes which are structured, unstructured, hybrid, or non-comformal. A variety of element types are permitted. Mesquite is designed to be as efficient as possible so that large meshes can be improved.
__________________
wyldckat is offline   Reply With Quote

Old   February 18, 2013, 12:05
Default
  #9
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Hello everybody!

I'm trying to compile the library dynamicTopoFvMesh for OpenFOAM 2.1.x.
The problem I'm facing at is that I could not find the "right" options to configure mesquite. Does anyone know how to do it? Sandeep?

I compiled it using:
Code:
./configure --enable-shared --prefix=/home/pablo/OpenFOAM/ThirdParty-2.1.x/mesquite-2.2.0 --with-pic
Using these options I get the following compiling the library (branch 2.1.x)

Code:
+ wmake libso mesquiteMotionSolver
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file mesquiteMotionSolver.C
could not open file mesquite_config.win.h for source file mesquiteMotionSolver.C
SOURCE=mesquiteMotionSolver.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/pablo/OpenFOAM/ThirdParty-2.1.x/mesquite-2.2.0/include -I/home/pablo/OpenFOAM/OpenFOAM-2.1.x/src/meshTools/lnInclude -I/home/pablo/OpenFOAM/OpenFOAM-2.1.x/src/dynamicMesh/lnInclude  -IlnInclude -I. -I/home/pablo/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/pablo/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/mesquiteMotionSolver.o
In file included from /home/pablo/OpenFOAM/ThirdParty-2.1.x/mesquite-2.2.0/include/Mesquite_all_headers.hpp:10:0,
                 from mesquiteMotionSolver.H:55,
                 from mesquiteMotionSolver.C:27:
/home/pablo/OpenFOAM/ThirdParty-2.1.x/mesquite-2.2.0/include/CurveDomain.hpp:48:7: warning: ‘class Mesquite2::CurveDomain’ has virtual functions and accessible non-virtual destructor [-Wnon-virtual-dtor]
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld: /home/pablo/OpenFOAM/ThirdParty-2.1.x/mesquite-2.2.0/lib64/libmesquite.a(ArrayMesh.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/home/pablo/OpenFOAM/ThirdParty-2.1.x/mesquite-2.2.0/lib64/libmesquite.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [/home/pablo/OpenFOAM/pablo-2.1.x/platforms/linux64GccDPOpt/lib/libmesquiteMotionSolver.so] Error 1
Best

Pablo
pcaron is offline   Reply With Quote

Old   February 18, 2013, 15:21
Default
  #10
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Pablo,

You need it to be position-independent code (fPIC).

When Martin used configure to do it, these are the options that were included, and they seem to work fine:

Code:
    
    ./configure     \
        --prefix=%{_installPrefix}  \
        --enable-release            \
        --disable-debug-assertions  \
        --disable-igeom             \
        --disable-imesh             \
        --disable-irel              \
        --enable-shared             \
        --without-cppunit           \
        --enable-trap-fpe           \
        --disable-function-timers
Where %{_installPrefix} can be replaced with the installation directory. Ultimately, that directory becomes your MESQUITE_DIR environment variable as well.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   February 18, 2013, 17:49
Default
  #11
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Sandeep

thank you very much! It works! I'll start testing the library tomorrow morning!

Best

Pablo

PS: As a suggestion. Since the mesquite library is a prerequisite to build dynamicTopoFvMesh, it would be a great to have these configuration parameters in the install.txt file.
pcaron is offline   Reply With Quote

Old   February 19, 2013, 06:33
Default
  #12
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Sandeep,

I'm trying to configure a test case, but some problems arise. The case is a 2D elbow, I want simulate the filling process with a high viscosity Newtonian fluid. The mesh should autorefine around the front.

I think that the mesquite and dynamicTopofvMesh libraries are correctly compiled (I attached the logs) and the problem is in the case configuration (also attached). I ran a moveDynamicMesh and I got the following error

Code:
Selecting dynamicFvMesh dynamicTopoFvMesh
Selecting motion solver: mesquiteMotionSolver


--> FOAM FATAL ERROR: 
solver table is empty

    From function motionSolver::New(const polyMesh& mesh)
    in file motionSolver/motionSolver.C at line 94.

FOAM exiting
I could not find the mistake, I would appreciate If you can check the case configuration.

Best

Pablo
Attached Files
File Type: gz adaptiveUnstructuredTest.tar.gz (75.1 KB, 18 views)
File Type: gz log.configure.tar.gz (2.2 KB, 4 views)
File Type: gz log.make.tar.gz (18.7 KB, 3 views)
File Type: gz log.makeInstall.tar.gz (3.8 KB, 3 views)
File Type: gz log.dynamicTopoFvMesh.tar.gz (1.8 KB, 8 views)
pcaron is offline   Reply With Quote

Old   February 19, 2013, 08:59
Default
  #13
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
You'll need to add this to your dynamicMeshDict:

Code:
motionSolverLibs ( "libmesquiteMotionSolver.so" );
Hope this helps.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   February 19, 2013, 09:23
Default
  #14
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Hi Sandeep,

I added the line to the dynamicMeshDict and the moveDynamicMesh solver advanced a step, but It seems I messed up something else. Any Ideas?

Code:
Selecting dynamicFvMesh dynamicTopoFvMesh
Selecting motion solver: mesquiteMotionSolver
Time = 0.001
#0  Foam::error::printStack(Foam::Ostream&) in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigSegv::sigHandler(int) in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2   in "/lib64/libc.so.6"
#3  Foam::mesquiteMotionSolver::solve() in "/home/pablo/OpenFOAM/pablo-2.1.x/platforms/linux64GccDPOpt/lib/libmesquiteMotionSolver.so"
#4  Foam::motionSolver::newPoints() in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libdynamicMesh.so"
#5  Foam::dynamicTopoFvMesh::update() in "/home/pablo/OpenFOAM/pablo-2.1.x/platforms/linux64GccDPOpt/lib/libdynamicTopoFvMesh.so"
#6  
 in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/moveDynamicMesh"
#7  __libc_start_main in "/lib64/libc.so.6"
#8  
 at /home/abuild/rpmbuild/BUILD/glibc-2.15/csu/../sysdeps/x86_64/elf/start.S:116
Violación de segmento
pcaron is offline   Reply With Quote

Old   February 19, 2013, 09:30
Default
  #15
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Can't help you there. You'll have to compile in debug (or with -g for debug symbols) to get a more meaningful stack trace.
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   February 19, 2013, 09:52
Default
  #16
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Sandeep,

Here is the stack after recompiling the library in Debug mode.
I hope am not bothering too much.

Code:
--> FOAM FATAL ERROR: 
attempt to access element from zero sized list

    From function UList<T>::checkIndex(const label)
    in file /home/pablo/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/UListI.H at line 103.

FOAM aborting

#0  Foam::error::printStack(Foam::Ostream&) in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::error::abort() in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2  Foam::Ostream& Foam::operator<< <Foam::error>(Foam::Ostream&, Foam::errorManip<Foam::error>) at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/errorManip.H:85
#3  Foam::UList<double>::checkIndex(int) const at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/UListI.H:103
#4  Foam::UList<double>::operator[](int) at ~/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude/UListI.H:168
#5  Foam::mesquiteMotionSolver::solve() at ~/OpenFOAM/pablo-2.1.x/applications/dynamicTopoFvMesh/mesquiteMotionSolver/mesquiteMotionSolver.C:4588
#6  Foam::motionSolver::newPoints() in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libdynamicMesh.so"
#7  Foam::dynamicTopoFvMesh::update() at ~/OpenFOAM/pablo-2.1.x/applications/dynamicTopoFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.C:4517
#8  
 in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/moveDynamicMesh"
#9  __libc_start_main in "/lib64/libc.so.6"
#10  
 at /home/abuild/rpmbuild/BUILD/glibc-2.15/csu/../sysdeps/x86_64/elf/start.S:116
Abortado
pcaron is offline   Reply With Quote

Old   February 19, 2013, 10:10
Default
  #17
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Ah.. I see. I think this is a bug. Can you change your 'surfInterval' entry to 1 instead of 2 and see if it works?
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   February 19, 2013, 10:18
Default
  #18
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
I changed surfInterval from 2 to 1 and commented out all the "Field-based refinement options" stuff.

Here is the output

Code:
Time = 0.001
Solving for point motion:  Initial residual: 1 Final residual: 0.00959673 No Iterations: 11

 ~~~ Mesh Quality Statistics ~~~ 
 Min: 0.572942
 Max: 0.999963
 Mean: 0.938142
 Cells: 861
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

  Refinement Progress: 100% :  Bisections: 1115, Collapses: 31, Total: 1146                 
 Topo modifier time: 2.40978 s
 Bisections :: Total: 1115, Surface: 69
 Collapses  :: Total: 31, Surface: 0
 Swaps      :: Total: 730, Surface: 0
 *** Mapping is being skipped *** 
 Mapping time: 0.0063 s
 Reordering time: 0.044295 s
#0  Foam::error::printStack(Foam::Ostream&) in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigSegv::sigHandler(int) in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2   in "/lib64/libc.so.6"
#3  Foam::topoMapper::correctFluxes() const at ~/OpenFOAM/pablo-2.1.x/applications/dynamicTopoFvMesh/dynamicTopoFvMesh/fieldMapping/topoMapper.C:413
#4  Foam::dynamicTopoFvMesh::resetMesh() at ~/OpenFOAM/pablo-2.1.x/applications/dynamicTopoFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.C:4292
#5  Foam::dynamicTopoFvMesh::update() at ~/OpenFOAM/pablo-2.1.x/applications/dynamicTopoFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.C:4550
#6  
 in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/moveDynamicMesh"
#7  __libc_start_main in "/lib64/libc.so.6"
#8  
 at /home/abuild/rpmbuild/BUILD/glibc-2.15/csu/../sysdeps/x86_64/elf/start.S:116
Violación de segmento
pcaron is offline   Reply With Quote

Old   February 19, 2013, 10:31
Default
  #19
Senior Member
 
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25
deepsterblue will become famous soon enough
Looks like the fluxCorrector is not properly loaded. Can you post the entire output?
__________________
Sandeep Menon
University of Massachusetts Amherst
https://github.com/smenon
deepsterblue is offline   Reply With Quote

Old   February 19, 2013, 10:37
Default
  #20
Member
 
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 16
pcaron is on a distinguished road
Following it is the output and attached it is the dynamicMeshDict

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.1.x-68d39c199c99
Exec   : moveDynamicMesh
Date   : Feb 19 2013
Time   : 12:33:41
Host   : "churrinche.site"
PID    : 20105
Case   : /home/pablo/OpenFOAM/pablo-2.1.x/run/CIMNE/injection/adaptiveUnstructuredTest
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Selecting dynamicFvMesh dynamicTopoFvMesh
Selecting motion solver: mesquiteMotionSolver
Time = 0.001
Solving for point motion:  Initial residual: 1 Final residual: 0.00959673 No Iterations: 11

 ~~~ Mesh Quality Statistics ~~~ 
 Min: 0.572942
 Max: 0.999963
 Mean: 0.938142
 Cells: 861
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

  Refinement Progress: 100% :  Bisections: 1115, Collapses: 31, Total: 1146                 
 Topo modifier time: 2.50908 s
 Bisections :: Total: 1115, Surface: 69
 Collapses  :: Total: 31, Surface: 0
 Swaps      :: Total: 730, Surface: 0
 *** Mapping is being skipped *** 
 Mapping time: 0.006457 s
 Reordering time: 0.044251 s
#0  Foam::error::printStack(Foam::Ostream&) in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#1  Foam::sigSegv::sigHandler(int) in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
#2   in "/lib64/libc.so.6"
#3  Foam::topoMapper::correctFluxes() const at ~/OpenFOAM/pablo-2.1.x/applications/dynamicTopoFvMesh/dynamicTopoFvMesh/fieldMapping/topoMapper.C:413
#4  Foam::dynamicTopoFvMesh::resetMesh() at ~/OpenFOAM/pablo-2.1.x/applications/dynamicTopoFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.C:4292
#5  Foam::dynamicTopoFvMesh::update() at ~/OpenFOAM/pablo-2.1.x/applications/dynamicTopoFvMesh/dynamicTopoFvMesh/dynamicTopoFvMesh.C:4550
#6  
 in "/home/pablo/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/bin/moveDynamicMesh"
#7  __libc_start_main in "/lib64/libc.so.6"
#8  
 at /home/abuild/rpmbuild/BUILD/glibc-2.15/csu/../sysdeps/x86_64/elf/start.S:116
Violación de segmento
Attached Files
File Type: gz dynamicMeshDict.gz (2.2 KB, 35 views)
yms00yms likes this.

Last edited by pcaron; February 20, 2013 at 08:05. Reason: Upload dynamicMeshDict as gz file
pcaron is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 14:52
Compilation error with OF 2.1.x GerhardHolzinger OpenFOAM Installation 5 September 18, 2012 09:04
Linux vs PC Compiling Rhyno466 Fluent UDF and Scheme Programming 10 May 11, 2012 17:01
Help with KIVA4 source code compiling geothokar Main CFD Forum 0 September 3, 2010 05:40
error msg when compiling user fortran Ollimarc CFX 0 March 13, 2008 18:16


All times are GMT -4. The time now is 11:32.