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. |
Hi
Could you please help me in setting MESQUITE_DIR environment variable? Best Mahdi |
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. |
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 |
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: |
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). |
what does Mesquite do?is it like GGI?Im mixed up between these mrthods of dynamic mesh.which is better for sliding mesh?
|
Quote:
Quote:
|
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 Pablo |
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:
|
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. |
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 Best Pablo |
You'll need to add this to your dynamicMeshDict:
Code:
motionSolverLibs ( "libmesquiteMotionSolver.so" ); |
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 |
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,
Here is the stack after recompiling the library in Debug mode. I hope am not bothering too much. Code:
--> FOAM FATAL ERROR: |
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?
|
I changed surfInterval from 2 to 1 and commented out all the "Field-based refinement options" stuff.
Here is the output Code:
|
Looks like the fluxCorrector is not properly loaded. Can you post the entire output?
|
1 Attachment(s)
Following it is the output and attached it is the dynamicMeshDict
Code:
/*---------------------------------------------------------------------------*\ |
All times are GMT -4. The time now is 01:58. |