CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x (https://www.cfd-online.com/Forums/openfoam-installation/111985-compiling-dynamictopofvmesh-openfoam-2-1-x.html)

Saxwax January 19, 2013 01:48

Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x
 
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 January 20, 2013 13:45

Hi

Could you please help me in setting MESQUITE_DIR environment variable?

Best
Mahdi

Saxwax January 21, 2013 06:59

Set MESQUITE_DIR environment variable
 
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 January 21, 2013 11:08

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 January 21, 2013 15:34

Quote:

Originally Posted by Saxwax (Post 403078)
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’


Saxwax January 29, 2013 05:04

Still trying?
 
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).

immortality February 8, 2013 13:18

what does Mesquite do?is it like GGI?Im mixed up between these mrthods of dynamic mesh.which is better for sliding mesh?

wyldckat February 10, 2013 07:08

Quote:

Originally Posted by immortality (Post 406775)
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.


pcaron February 18, 2013 13:05

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

deepsterblue February 18, 2013 16:21

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.

pcaron February 18, 2013 18:49

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 February 19, 2013 07:33

5 Attachment(s)
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

deepsterblue February 19, 2013 09:59

You'll need to add this to your dynamicMeshDict:

Code:

motionSolverLibs ( "libmesquiteMotionSolver.so" );
Hope this helps.

pcaron February 19, 2013 10:23

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


deepsterblue February 19, 2013 10:30

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.

pcaron February 19, 2013 10:52

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


deepsterblue February 19, 2013 11:10

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?

pcaron February 19, 2013 11:18

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


deepsterblue February 19, 2013 11:31

Looks like the fluxCorrector is not properly loaded. Can you post the entire output?

pcaron February 19, 2013 11:37

1 Attachment(s)
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



All times are GMT -4. The time now is 01:58.