|
[Sponsors] |
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 19, 2013, 01:48 |
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x
|
#1 |
New Member
Saxwax
Join Date: Aug 2010
Posts: 17
Rep Power: 16 |
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. Last edited by Saxwax; January 19, 2013 at 21:37. Reason: More useful |
|
January 20, 2013, 13:45 |
|
#2 |
Senior Member
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 153
Rep Power: 15 |
Hi
Could you please help me in setting MESQUITE_DIR environment variable? Best Mahdi |
|
January 21, 2013, 06:59 |
Set MESQUITE_DIR environment variable
|
#3 |
New Member
Saxwax
Join Date: Aug 2010
Posts: 17
Rep Power: 16 |
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. Last edited by Saxwax; January 21, 2013 at 07:04. Reason: Clarification |
|
January 21, 2013, 11:08 |
|
#4 |
Senior Member
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 153
Rep Power: 15 |
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 |
|
January 21, 2013, 15:34 |
|
#5 | |
Senior Member
mahdi abdollahzadeh
Join Date: Mar 2011
Location: Covilha,Portugal
Posts: 153
Rep Power: 15 |
Quote:
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’ |
||
January 29, 2013, 05:04 |
Still trying?
|
#6 |
New Member
Saxwax
Join Date: Aug 2010
Posts: 17
Rep Power: 16 |
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). |
|
February 8, 2013, 13:18 |
|
#7 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
what does Mesquite do?is it like GGI?Im mixed up between these mrthods of dynamic mesh.which is better for sliding mesh?
|
|
February 10, 2013, 07:08 |
|
#8 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quoting from the MESQUITE Home Page:
Quote:
__________________
|
||
February 18, 2013, 13:05 |
|
#9 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
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 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 Pablo |
|
February 18, 2013, 16:21 |
|
#10 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
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 |
|
February 18, 2013, 18:49 |
|
#11 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
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. |
|
February 19, 2013, 07:33 |
|
#12 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
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 Best Pablo |
|
February 19, 2013, 09:59 |
|
#13 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
You'll need to add this to your dynamicMeshDict:
Code:
motionSolverLibs ( "libmesquiteMotionSolver.so" ); |
|
February 19, 2013, 10:23 |
|
#14 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
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 |
|
February 19, 2013, 10:30 |
|
#15 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
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.
|
|
February 19, 2013, 10:52 |
|
#16 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
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 |
|
February 19, 2013, 11:10 |
|
#17 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
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?
|
|
February 19, 2013, 11:18 |
|
#18 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
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 |
|
February 19, 2013, 11:31 |
|
#19 |
Senior Member
Sandeep Menon
Join Date: Mar 2009
Location: Amherst, MA
Posts: 403
Rep Power: 25 |
Looks like the fluxCorrector is not properly loaded. Can you post the entire output?
|
|
February 19, 2013, 11:37 |
|
#20 |
Member
Pablo Caron
Join Date: Nov 2009
Location: Buenos Aires, Argentina
Posts: 75
Rep Power: 17 |
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 Last edited by pcaron; February 20, 2013 at 09:05. Reason: Upload dynamicMeshDict as gz file |
|
|
|
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 |
Compilation error with OF 2.1.x | GerhardHolzinger | OpenFOAM Installation | 5 | September 18, 2012 10:04 |
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 |