CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Help compiling code (newbie) (https://www.cfd-online.com/Forums/openfoam-programming-development/132562-help-compiling-code-newbie.html)

thsb20 April 2, 2014 16:22

Help compiling code (newbie)
 
Hi everyone,

Im currently doing my dissertation at University of Bath, UK on cyclocopter rotors and found the following blog post:

http://lordvon64.blogspot.co.uk/2014...87540156025031

The model he has made closely follows the experimental data from other cyclocopters and I would love to be able to run/edit his code, listed on github here:

https://github.com/lordvon/OpenFOAM_...ster/cycloRamp

Now, bear with me at this point, I am totally new to OpenFOAM, and I dont know how to run this code. I have installed OpenFOAM correctly (done a few of the tutorials to confirm) and downloaded the repository from Github.

What is the next step? In the files on Github he has the 'compiling new OpenFOAM source' file, which lists how to compile. All the steps until the last line seem to have been done in the downloaded repository, if I am correct? The files in /Make have been made. The last line details adding the line to controlDict, does this mean I go into controlDict in the system files and add the line? then run the file remake?

If anyone could give me an idiots guide to doing this I would be very much appreciated, starting from the begining. The author of the blog is helpful but being in different time zones the reply's are quite delayed.

Thanks,

Tom

kmooney April 2, 2014 18:48

Hi Tom,

It looks like you're pretty close. If you have already compiled that library you should be pretty close.

The last step is to add a line to the controlDict of whatever case you're running this on but there is a typo in his instructions. There should be a semicolon closing the parentheses ; like this:

libs ( "libCycloRamp.so" );

Do you already have an example case that will engage the functionality of this new library?

Cheer!
Kyle


Quote:

Originally Posted by thsb20 (Post 483518)
Hi everyone,

Im currently doing my dissertation at University of Bath, UK on cyclocopter rotors and found the following blog post:

http://lordvon64.blogspot.co.uk/2014...87540156025031

The model he has made closely follows the experimental data from other cyclocopters and I would love to be able to run/edit his code, listed on github here:

https://github.com/lordvon/OpenFOAM_...ster/cycloRamp

Now, bear with me at this point, I am totally new to OpenFOAM, and I dont know how to run this code. I have installed OpenFOAM correctly (done a few of the tutorials to confirm) and downloaded the repository from Github.

What is the next step? In the files on Github he has the 'compiling new OpenFOAM source' file, which lists how to compile. All the steps until the last line seem to have been done in the downloaded repository, if I am correct? The files in /Make have been made. The last line details adding the line to controlDict, does this mean I go into controlDict in the system files and add the line? then run the file remake?

If anyone could give me an idiots guide to doing this I would be very much appreciated, starting from the begining. The author of the blog is helpful but being in different time zones the reply's are quite delayed.

Thanks,

Tom


thsb20 April 2, 2014 19:09

Ah OK, I think I get hwo it works now.

I was thinking of the code uplaoded to Github as the code to run on its own. But its actually just the library which other code uses to run.

So I need to find out the example that will use this library, then add the line you said to the controlDict file of that example, then run that example as normal? It doesnt mention anythign about that in his blog post does it? The only sentance that soudns like it points to the right example is 'I used the pimpleDyMFoam solver in PISO mode (no SIMPLE iterations)'. Does that mean anything?

Thanks for your help

Tom

kmooney April 2, 2014 19:24

Without an example case you're going to have to effectively reverse engineer the case configuration. Also, it looks like the mesh he's using its awfully complicated in terms of multiple embedded rotational sliding boundary interfaces.

After having a quick look at his code its going to be really difficult to put a case together from scratch, even with a ton of OpenFOAM experience. I think your best bet is to get in touch with the original developer and ask for an example case.

Cheers,
Kyle

thsb20 April 2, 2014 19:44

Hi Kyle,

Thanks for the info. Ive contacted the author and he is going to post a case file to this thread, which should help me get the simulation up and running.

Thanks for the help, im sure I may have a couple more questions lol, using OpenFOAM is on a whole different level to what im used to

Tom

lordvon April 2, 2014 19:52

1 Attachment(s)
You will not have to reverse-engineer anything!!! I am the author of the post mentioned above. Here I have attached the case and mesh files for the cyclorotor simulation. Here is how I use it:

-I view the mesh by 'gmsh main.geo' inside the mesh folder. I change whatever I need in mesh/inputs.geo.

-run './parallel runname' in the main directory (where case and mesh reside)

-That's it!

That is after of course you have compiled the custom solidBodyMotionFunctions that were referenced above, and installed gmsh. Also, you might have to chmod +x a few files to make them executable.

Please let me know of any questions!

thsb20 April 3, 2014 03:04

I think my problem is with compiling the solver at the moment. when I run the make command I get the following :

wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file cycloRamp.C
SOURCE=cycloRamp.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/opt/openfoam230/src/dynamicFvMesh/lnInclude -I/opt/openfoam230/src/dynamicFvMesh/solidBodyMotionFvMesh/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/cycloRamp.o
In file included from cycloRamp.H:38:0,
from cycloRamp.C:26:
/opt/openfoam230/src/dynamicFvMesh/lnInclude/solidBodyMotionFunction.H: In static member function ‘static Foam::autoPtr<Foam::solidBodyMotionFunction> Foam::solidBodyMotionFunction::adddictionaryConstr uctorToTable<solidBodyMotionFunctionType>::New(con st Foam::dictionary&, const Foam::Time&) [with solidBodyMotionFunctionType = Foam::solidBodyMotionFunctions::cycloRamp]’:
/opt/openfoam230/src/dynamicFvMesh/lnInclude/solidBodyMotionFunction.H:90:9: instantiated from ‘Foam::solidBodyMotionFunction::adddictionaryConst ructorToTable<solidBodyMotionFunctionType>::adddic tionaryConstructorToTable(const Foam::word&) [with solidBodyMotionFunctionType = Foam::solidBodyMotionFunctions::cycloRamp]’
cycloRamp.C:46:1: instantiated from here
/opt/openfoam230/src/dynamicFvMesh/lnInclude/solidBodyMotionFunction.H:90:9: error: cannot allocate an object of abstract type ‘Foam::solidBodyMotionFunctions::cycloRamp’
cycloRamp.H:53:7: note: because the following virtual functions are pure within ‘Foam::solidBodyMotionFunctions::cycloRamp’:
/opt/openfoam230/src/dynamicFvMesh/lnInclude/solidBodyMotionFunction.H:110:50: note: virtual Foam::autoPtr<Foam::solidBodyMotionFunction> Foam::solidBodyMotionFunction::clone() const
/opt/openfoam230/src/dynamicFvMesh/lnInclude/solidBodyMotionFunction.H:90:9: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Make/linux64GccDPOpt/cycloRamp.o] Error 1

It looks like its throwing up a few errors, do you have any idea what it means?

lordvon April 3, 2014 09:12

Hi Thomas,
I made sure it worked before I uploaded it to Github, though the instructions could be better, which I have updated based on feedback from this thread.

Please delete the cycloRamp library files and redownload them and try again. This time, only doing these few things:

-type 'sudo' and then login
-Go inside the main directory of the downloaded files (where Make, cycloRamp.C,cycloRamp.h,etc. reside)
-Make the freshly downloaded file executable by 'chmod +x remake'
-Run './remake'

If you do not get errors, great! Compiling always seems to be the biggest obstacle in running custom OpenFOAM stuff. You then can run a simulation with './parallel yourRunName' in the main directory of the case files I uploaded to this thread. Even if you get errors then, they will be very easy to debug. Since you and I have spent a bit of time on this, I am determined to get it working for you :)

Which version of OpenFOAM are you using?

thsb20 April 3, 2014 09:46

Iv followed the instructions but still get a couple of error messages,a lthough it is far fewer than before.

I get:

linux64GccDPOpt/options:7: *** commands commence before first target. Stop.
wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/tom/OpenFOAM/tom-2.3.0/applications/solvers/cycloRamp
cp: cannot stat `/home/tom/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/lib/libCycloRamp.so': No such file or directory

In your 'compiling new OpenFOAM source' file you have the text to put in the options file as different to the file you uploaded. Ive tried both and get the same error though.

It feels like its so close. Im using OpenFOAM 2.3.0 :)

lordvon April 3, 2014 11:08

Oops, I guess they are different but they both should work. After a little Google searching, it might be the format of the text in the Make/options file. I updated the file on Github, and all I did was remove the tabs. Try and see if anything is different.

I wish I could test it, but it works as is on my computer unfortunately.

thsb20 April 3, 2014 15:51

Im getting further and further each time I go through. At the moment its making the /Make/linux64GccDPOpt files and a /lnInclude folder with links to the .C and .H files.

However there is still an error:

cycloRamp.C:46:1: instantiated from here
/opt/openfoam230/src/dynamicFvMesh/lnInclude/solidBodyMotionFunction.H:90:9: error: cannot allocate an object of abstract type ‘Foam::solidBodyMotionFunctions::cycloRamp’
cycloRamp.H:53:7: note: because the following virtual functions are pure within ‘Foam::solidBodyMotionFunctions::cycloRamp’:
/opt/openfoam230/src/dynamicFvMesh/lnInclude/solidBodyMotionFunction.H:110:50: note: virtual Foam::autoPtr<Foam::solidBodyMotionFunction> Foam::solidBodyMotionFunction::clone() const
/opt/openfoam230/src/dynamicFvMesh/lnInclude/solidBodyMotionFunction.H:90:9: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Make/linux64GccDPOpt/cycloRamp.o] Error 1
cp: cannot stat `/home/tom/OpenFOAM/root-2.3.0/platforms/linux64GccDPOpt/lib/libCycloRamp.so': No such file or directory

Looks like its on line 46 of cycloRamp.C, running this bit of code:

namespace Foam
{
namespace solidBodyMotionFunctions
{
defineTypeNameAndDebug(cycloRamp, 0);
addToRunTimeSelectionTable
(
solidBodyMotionFunction,
cycloRamp,
dictionary
);
}
}

Any ideas?

Tom

lordvon April 4, 2014 21:27

Could be the version. Ill try out 230, as I used 222. Or, you could try out 222. I will try to let you know tomorrow.

thsb20 April 6, 2014 16:39

Hi,

Success on the compiling front, I installed 222 and it compiled perfectly. Now just got to figure out how to run the other code.

When the code runs I get a warning that it could not load libCycloBucket.so. Is there another library called this? The github code only has cycloRamp.so. I also get one for libRampedAxisRotationMotion.so, this is on Github so I will compile it and that error should go away

Tom

lordvon April 6, 2014 17:16

1 Attachment(s)
Great!

libCycloBucket and libRampedAxisRotationMotion were other custom codes of mine I made for different pitching schedule and ramping up the rotor speed for (supposedly) faster transient simulation, respectively. They are utilized in 'system/controlDict' and 'constant/dynamicMeshDict'.

In dynamicMeshDict you specify rotation speed and for my custom code the cyclorotor parameters. It is an error on my part that those case files use cycloBucket instead of cycloRamp in the dynamicMeshDict. So, I have attached the case files that work the same way as the earlier one, except that it has the correct dynamicMeshDict (no need to recompile, etc.). But you should compile rampedAxisRotationMotion if its no problem, otherwise you will need to change the dynamicMeshDict to not use it, and instead use the standard OpenFOAM mesh rotation function, which does a hard start.

The mesh in the new attached case files is different. If you prefer the old mesh, simply copy over your old 'mesh' to replace the one in the new attachment. (I also changed the cyclorotor.zip posted earlier to avoid confusion)

Just as a side note, in libCycloRamp the pitching motion is sinusoidal with respect to azimuthal position (of the blade w.r.t. rotor center). In libCycloBucket the pitching schedule looks more like a clipped sine wave. So if you are interested in implementing this or other more interesting pitching schedules as a function of azimuthal position, let me know and I can upload it. Pretty much any arbitrary sufficiently-smooth pitching schedule is possible with the method described in "Design, Development, and Flight Test of a Small-Scale Cyclogyro UAV Utilizing a Novel Cam-Based Passive Blade Pitching Mechanism" by Zachary Adams, et al. I do not know where to get the PDF for free for everyone, but since you are a University undergrad you should be able to access it for free somehow.

thsb20 April 7, 2014 04:52

Excellent, closer than ever.

I make it through the set up; till the run case question its all fine with no errors. However when I run the case I get the followign error:

Selecting dynamicFvMesh multiSolidBodyMotionFvMesh
Selecting solid-body motion function rampedAxisRotationMotion
[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] keyword CofG is undefined in dictionary "/home/tom/OpenFOAM/OpenFOAM-2.2.2/cyclorotor/runname/processor0/../constant/dynamicMeshDict.multiSolidBodyMotionFvMeshCoeffs.r otorVolume.rampedAxisRotationMotionCoeffs"
[0]
[0] file: /home/tom/OpenFOAM/OpenFOAM-2.2.2/cyclorotor/runname/processor0/../constant/dynamicMeshDict.multiSolidBodyMotionFvMeshCoeffs.r otorVolume.rampedAxisRotationMotionCoeffs from line 26 to line 26.
[0]
[0] From function dictionary::lookupEntry(const word&, bool, bool) const
[0] in file db/dictionary/dictionary.C at line 402.
[0]
FOAM parallel run exiting
[0]

rampedAxisRotationMotion compiled correctly with no errors but it looks like this is an error in that library

Tom

lordvon April 7, 2014 14:14

Alright I think we are out of the woods. These are just typos (i had different versions of rampedAxisRotationMotion). I uploaded the corrected cases once again to the links above. The only thing that is different is 'constant/dynamicMeshDict'.

thsb20 April 8, 2014 04:22

Almost there,

I get the error when I run the case:

[0] file: /home/tom/Desktop/cyclorotor/2/processor0/0/p at line 0.
[0]
[0] From function regIOobject::readStream()
[0] in file db/regIOobject/regIOobjectRead.C at line 73.
[0]
FOAM parallel run exiting
[0]

There is the folder '0' in the /runname folder, with the p file in, but not within the individual processor folders. It says this for all 4 processors (0, 1, 2, 3)

The newly updated zip files also have 1 error in the mesh but I copied over the old mesh and its working perfectly so no worries there.

Thanks for all the help. I really appreciate it

Tom

lordvon April 8, 2014 08:51

I think an error is occurring earlier. Please put all output into a text file and upload it.

thsb20 April 8, 2014 13:48

When I run ./parallel I get the following:

Code:

root@tom-770Z5E-780Z5E:~/Desktop/cyclorotor# ./parallel 1
./setup: line 18: ./fixBoundary: Permission denied
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.2                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.2-9739c53ec43f
Exec  : renumberMesh -constant -overwrite
Date  : Apr 08 2014
Time  : 18:42:53
Host  : "tom-770Z5E-780Z5E"
PID    : 4450
Case  : /home/tom/Desktop/cyclorotor/1
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 = constant

Mesh size: 28575
Before renumbering :
    band          : 4669
    profile        : 1.58332e+07

Using default renumberMethod.

Selecting renumberMethod CuthillMcKee


After renumbering :
    band          : 150
    profile        : 2.11817e+06

Writing mesh to "constant"

End.

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.2                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.2-9739c53ec43f
Exec  : decomposePar
Date  : Apr 08 2014
Time  : 18:42:54
Host  : "tom-770Z5E-780Z5E"
PID    : 4455
Case  : /home/tom/Desktop/cyclorotor/1
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



Decomposing mesh region0

Create mesh

Calculating distribution of cells
Selecting decompositionMethod scotch

Finished decomposition in 0.06 s

Calculating original mesh data

Distributing cells to processors

Distributing faces to processors

Distributing points to processors

Constructing processor meshes

Processor 0
    Number of cells = 7195
    Number of faces shared with processor 1 = 11
    Number of faces shared with processor 2 = 8
    Number of processor patches = 2
    Number of processor faces = 19
    Number of boundary faces = 14835

Processor 1
    Number of cells = 7185
    Number of faces shared with processor 0 = 11
    Number of faces shared with processor 3 = 12
    Number of processor patches = 2
    Number of processor faces = 23
    Number of boundary faces = 15067

Processor 2
    Number of cells = 7099
    Number of faces shared with processor 0 = 8
    Number of faces shared with processor 3 = 11
    Number of processor patches = 2
    Number of processor faces = 19
    Number of boundary faces = 14803

Processor 3
    Number of cells = 7096
    Number of faces shared with processor 1 = 12
    Number of faces shared with processor 2 = 11
    Number of processor patches = 2
    Number of processor faces = 23
    Number of boundary faces = 14613

Number of processor faces = 42
Max number of cells = 7195 (0.71741% above average 7143.75)
Max number of processor patches = 2 (0% above average 2)
Max number of faces between processors = 23 (9.52381% above average 21)

Time = 0


--> FOAM FATAL IO ERROR:

    patch type 'patch' not constraint type 'empty'
    for patch defaultFaces of field p in file "/home/tom/Desktop/cyclorotor/1/0/p"

file: /home/tom/Desktop/cyclorotor/1/0/p.boundaryField.defaultFaces from line 3 to line 3.

    From function emptyFvPatchField<Type>::emptyFvPatchField
(
    const fvPatch& p,
    const Field<Type>& field,
    const dictionary& dict
)

    in file fields/fvPatchFields/constraint/empty/emptyFvPatchField.C at line 100.

FOAM exiting

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.2                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.2-9739c53ec43f
Exec  : renumberMesh -overwrite -parallel
Date  : Apr 08 2014
Time  : 18:42:55
Host  : "tom-770Z5E-780Z5E"
PID    : 4457
Case  : /home/tom/Desktop/cyclorotor/1
nProcs : 4
Slaves :
3
(
"tom-770Z5E-780Z5E.4458"
"tom-770Z5E-780Z5E.4459"
"tom-770Z5E-780Z5E.4460"
)

Pstream initialized with:
    floatTransfer      : 0
    nProcsSimpleSum    : 0
    commsType          : nonBlocking
    polling iterations : 0
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 = constant

Mesh size: 28575
Before renumbering :
    band          : 150
    profile        : 2.0311e+06

Using default renumberMethod.

Selecting renumberMethod CuthillMcKee


Renumbering processor cell decomposition map cellProcAddressing
Renumbering processor face decomposition map faceProcAddressing
Renumbering processor point decomposition map pointProcAddressing
After renumbering :
    band          : 150
    profile        : 2.03135e+06

Writing mesh to "constant"

End.

Finalising parallel run
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.2                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.2-9739c53ec43f
Exec  : potentialFoam -parallel
Date  : Apr 08 2014
Time  : 18:42:56
Host  : "tom-770Z5E-780Z5E"
PID    : 4465
Case  : /home/tom/Desktop/cyclorotor/1
nProcs : 4
Slaves :
3
(
"tom-770Z5E-780Z5E.4466"
"tom-770Z5E-780Z5E.4467"
"tom-770Z5E-780Z5E.4468"
)

Pstream initialized with:
    floatTransfer      : 0
    nProcsSimpleSum    : 0
    commsType          : nonBlocking
    polling iterations : 0
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

Reading field p

[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] cannot find file
[0]
[0] file: /home/tom/Desktop/cyclorotor/1/processor0/0/p at line 0.
[0]
[0]    From function regIOobject::readStream()
[0]    in file db/regIOobject/regIOobjectRead.C at line 73.
[0]
FOAM parallel run exiting
[0]
[1]
[1]
[1] --> FOAM FATAL IO ERROR:
[1] cannot find file
[1]
[1] file: /home/tom/Desktop/cyclorotor/1/processor1/0/p at line 0.
[1]
[1]    From function regIOobject::readStream()
[1]    in file db/regIOobject/regIOobjectRead.C at line 73.
[1]
FOAM parallel run exiting
[1]
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
[2]
[2]
[2] --> FOAM FATAL IO ERROR:
[2] cannot find file
[2]
[2] file: /home/tom/Desktop/cyclorotor/1/processor2/0/p at line 0.
[2]
[2]    From function regIOobject::readStream()
[2]    in file db/regIOobject/regIOobjectRead.C at line 73.
[2]
FOAM parallel run exiting
[2]
[3]
[3]
[3] --> FOAM FATAL IO ERROR:
[3] cannot find file
[3]
[3] file: /home/tom/Desktop/cyclorotor/1/processor3/0/p at line 0.
[3]
[3]    From function regIOobject::readStream()
[3]    in file db/regIOobject/regIOobjectRead.C at line 73.
[3]
FOAM parallel run exiting
[3]
--------------------------------------------------------------------------
mpirun has exited due to process rank 0 with PID 4465 on
node tom-770Z5E-780Z5E exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
[tom-770Z5E-780Z5E:04464] 3 more processes have sent help message help-mpi-api.txt / mpi-abort
[tom-770Z5E-780Z5E:04464] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.2                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.2-9739c53ec43f
Exec  : checkMesh -constant -allGeometry -allTopology
Date  : Apr 08 2014
Time  : 18:42:57
Host  : "tom-770Z5E-780Z5E"
PID    : 4472
Case  : /home/tom/Desktop/cyclorotor/1
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 polyMesh for time = constant

Enabling all (cell, face, edge, point) topology checks.

Enabling all geometry checks.

Time = constant

Mesh stats
    points:          59306
    internal points:  0
    edges:            146121
    internal edges:  27485
    internal edges using one boundary point:  0
    internal edges using two boundary points:  27485
    faces:            115384
    internal faces:  56066
    cells:            28575
    faces per cell:  6
    boundary patches: 25
    point zones:      0
    face zones:      0
    cell zones:      8

Overall number of cells of each type:
    hexahedra:    28575
    prisms:        0
    wedges:        0
    pyramids:      0
    tet wedges:    0
    tetrahedra:    0
    polyhedra:    0

Checking topology...
    Boundary definition OK.
    Cell to face addressing OK.
    Point usage OK.
    Upper triangular ordering OK.
    Face vertices OK.
    Topological cell zip-up check OK.
    Face-face connectivity OK.
  <<Writing 2 cells with two non-boundary faces to set twoInternalFacesCells
  *Number of regions: 8
    The mesh has multiple regions which are not connected by any face.
  <<Writing region information to "constant/cellToRegion"

Checking patch topology for multiply connected surfaces...
    Patch              Faces    Points  Surface topology                  Bounding box
    bladeAmi01          64      128      ok (non-closed singly connected)  (-0.149909 0.250091 0) (0.149909 0.549909 0.01)
    blade0              112      224      ok (non-closed singly connected)  (-0.0708681 0.369422 0) (0.070921 0.430525 0.01)
    bladeAmi11          64      128      ok (non-closed singly connected)  (-0.496319 0.0500914 0) (-0.196502 0.349909 0.01)
    blade1              112      224      ok (non-closed singly connected)  (-0.39729 0.1408 0) (-0.295583 0.259147 0.01)
    bladeAmi21          64      128      ok (non-closed singly connected)  (-0.496319 -0.349909 0) (-0.196502 -0.0500914 0.01)
    blade2              112      224      ok (non-closed singly connected)  (-0.39729 -0.259147 0) (-0.295583 -0.1408 0.01)
    bladeAmi31          64      128      ok (non-closed singly connected)  (-0.149909 -0.549909 0) (0.149909 -0.250091 0.01)
    blade3              112      224      ok (non-closed singly connected)  (-0.0708681 -0.430525 0) (0.070921 -0.369422 0.01)
    bladeAmi41          64      128      ok (non-closed singly connected)  (0.196502 -0.349909 0) (0.496319 -0.0500914 0.01)
    blade4              112      224      ok (non-closed singly connected)  (0.315832 -0.270921 0) (0.376935 -0.129132 0.01)
    bladeAmi51          64      128      ok (non-closed singly connected)  (0.196502 0.0500914 0) (0.496319 0.349909 0.01)
    blade5              112      224      ok (non-closed singly connected)  (0.315832 0.129132 0) (0.376935 0.270921 0.01)
    ami1                312      624      ok (non-closed singly connected)  (-0.599998 -0.599998 0) (0.599998 0.599998 0.01)
    bladeAmi00          64      128      ok (non-closed singly connected)  (-0.15 0.25 0) (0.15 0.55 0.01)
    bladeAmi10          64      128      ok (non-closed singly connected)  (-0.49641 0.05 0) (-0.19641 0.35 0.01)
    bladeAmi20          64      128      ok (non-closed singly connected)  (-0.49641 -0.35 0) (-0.19641 -0.05 0.01)
    bladeAmi30          64      128      ok (non-closed singly connected)  (-0.15 -0.55 0) (0.15 -0.25 0.01)
    bladeAmi40          64      128      ok (non-closed singly connected)  (0.19641 -0.35 0) (0.49641 -0.05 0.01)
    bladeAmi50          64      128      ok (non-closed singly connected)  (0.19641 0.05 0) (0.49641 0.35 0.01)
    shaft              24      48      ok (non-closed singly connected)  (-0.025 -0.025 0) (0.025 0.025 0.01)
    tunnel              40      84      ok (non-closed singly connected)  (-24 -24 0) (24 24 0.01)
    outlet              20      42      ok (non-closed singly connected)  (24 -24 0) (24 24 0.01)
    inlet              20      42      ok (non-closed singly connected)  (-24 -24 0) (-24 24 0.01)
    ami0                312      624      ok (non-closed singly connected)  (-0.6 -0.6 0) (0.6 0.6 0.01)
    defaultFaces        57150    59306    ok (non-closed singly connected)  (-24 -24 0) (24 24 0.01)

Checking geometry...
    Overall domain bounding box (-24 -24 0) (24 24 0.01)
    Mesh (non-empty, non-wedge) directions (1 1 1)
    Mesh (non-empty) directions (1 1 1)
    Boundary openness (-1.16238e-20 2.3518e-23 -1.52923e-18) OK.
    Max cell openness = 1.78734e-15 OK.
    Max aspect ratio = 291.433 OK.
    Minimum face area = 1.41039e-07. Maximum face area = 8.4606.  Face area magnitudes OK.
    Min volume = 1.41039e-09. Max volume = 0.084606.  Total volume = 23.0398.  Cell volumes OK.
    Mesh non-orthogonality Max: 30.2646 average: 4.67601
    Non-orthogonality check OK.
    Face pyramids OK.
    Max skewness = 0.608728 OK.
    Coupled point location match (average 0) OK.
    Face tets OK.
    Min/max edge length = 7.15891e-05 3.46237 OK.
    All angles in faces OK.
    Face flatness (1 = flat, 0 = butterfly) : average = 1  min = 1
    All face flatness OK.
    Cell determinant (wellposedness) : minimum: 0 average: 4.08785e-31
 ***Cells with small determinant (< 0.001) found, number of cells: 28575
  <<Writing 28575 under-determined cells to set underdeterminedCells
    Concave cell check OK.

Failed 1 mesh checks.

End


thsb20 April 8, 2014 13:49

and after I run case:

Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.2                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.2-9739c53ec43f
Exec  : pimpleDyMFoam -parallel
Date  : Apr 08 2014
Time  : 18:44:59
Host  : "tom-770Z5E-780Z5E"
PID    : 4487
Case  : /home/tom/Desktop/cyclorotor/1
nProcs : 4
Slaves :
3
(
"tom-770Z5E-780Z5E.4488"
"tom-770Z5E-780Z5E.4489"
"tom-770Z5E-780Z5E.4490"
)

Pstream initialized with:
    floatTransfer      : 0
    nProcsSimpleSum    : 0
    commsType          : nonBlocking
    polling iterations : 0
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 multiSolidBodyMotionFvMesh
Selecting solid-body motion function rampedAxisRotationMotion
Applying solid body motion rampedAxisRotationMotion to 1070 points of cellZone rotorVolume
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 0 points of cellZone bladeVolume0
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 0 points of cellZone bladeVolume1
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 0 points of cellZone bladeVolume2
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 6896 points of cellZone bladeVolume3
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 6890 points of cellZone bladeVolume4
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 0 points of cellZone bladeVolume5
Reading field p

[2] [3]
[3]
[3]
[2]
[2] --> FOAM FATAL IO ERROR:
[2] cannot find file
[2]
[2] file: /home/tom/Desktop/cyclorotor/1/processor2/0/p at line 0.
[2]
--> FOAM FATAL IO ERROR:
[3] cannot find file
[3]
[3] file: /home/tom/Desktop/cyclorotor/1/processor3/0/p at line 0.
[3]
[3]    From function regIOobject::readStream()
[3]    in file db/regIOobject/regIOobjectRead.C at line 73.
[3]
FOAM parallel run exiting
[3]
[1]
[2]    From function regIOobject::readStream()
[2]    in file db/regIOobject/regIOobjectRead.C at line 73.
[2]
FOAM parallel run exiting
[2]
[0]
[0]
[0] --> FOAM FATAL IO ERROR:
[0] cannot find file
[0]
[0] file: /home/tom/Desktop/cyclorotor/1/processor0/0/p at line [1]
[1] --> FOAM FATAL IO ERROR:
[1] cannot find file
[1]
[1] file: /home/tom/Desktop/cyclorotor/1/processor1/0/p at line 0.
[1]
[1]    From function regIOobject::readStream()
[1]    in file db/regIOobject/regIOobjectRead.C0.
[0]
[0]    From function regIOobject::readStream()
[0]  at line 73.
[1]
FOAM parallel run exiting
[1]
    in file db/regIOobject/regIOobjectRead.C at line 73.
[0]
FOAM parallel run exiting
[0]
--------------------------------------------------------------------------
MPI_ABORT was invoked on rank 2 in communicator MPI_COMM_WORLD
with errorcode 1.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes, depending on
exactly when Open MPI kills them.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun has exited due to process rank 2 with PID 4489 on
node tom-770Z5E-780Z5E exiting without calling "finalize". This may
have caused other processes in the application to be
terminated by signals sent by mpirun (as reported here).
--------------------------------------------------------------------------
[tom-770Z5E-780Z5E:04486] 3 more processes have sent help message help-mpi-api.txt / mpi-abort
[tom-770Z5E-780Z5E:04486] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages
./parallel: line 23: break: only meaningful in a `for', `while', or `until' loop

I have done chmod +x on both parallel and setup, and running with root permissions. After pasting this in I noticed the error on the very first line. I hadnt seen it before because my terminal was limited to 512 lines showing. Having already given permission to setup by chmod I dont know why it is restricting access

thsb20 April 8, 2014 13:57

Ah, i realised fixBoundary is in the /case folder, going to chmod all the files in that folder and see if that fixes it

thsb20 April 8, 2014 14:05

After applying executable permissions to all files im pretty sure it all runs fine until the run case part.

After I run the case this is the terminal:

Code:

/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.2.2                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.2.2-9739c53ec43f
Exec  : pimpleDyMFoam -parallel
Date  : Apr 08 2014
Time  : 19:00:28
Host  : "tom-770Z5E-780Z5E"
PID    : 5790
Case  : /home/tom/Desktop/cyclorotor/1
nProcs : 4
Slaves :
3
(
"tom-770Z5E-780Z5E.5791"
"tom-770Z5E-780Z5E.5792"
"tom-770Z5E-780Z5E.5793"
)

Pstream initialized with:
    floatTransfer      : 0
    nProcsSimpleSum    : 0
    commsType          : nonBlocking
    polling iterations : 0
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 multiSolidBodyMotionFvMesh
Selecting solid-body motion function rampedAxisRotationMotion
Applying solid body motion rampedAxisRotationMotion to 1070 points of cellZone rotorVolume
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 0 points of cellZone bladeVolume0
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 0 points of cellZone bladeVolume1
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 0 points of cellZone bladeVolume2
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 6896 points of cellZone bladeVolume3
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 6890 points of cellZone bladeVolume4
Selecting solid-body motion function cycloRamp
Applying solid body motion cycloRamp to 0 points of cellZone bladeVolume5
Reading field p

Reading field U

Reading/calculating face flux field phi

AMI: Creating addressing and weights between 64 source faces and 64 target faces
AMI: Patch source weights min/max/average = 1.00055, 1.00055, 1.00055
AMI: Patch target weights min/max/average = 1.00055, 1.00055, 1.00055
AMI: Creating addressing and weights between 64 source faces and 64 target faces
AMI: Patch source weights min/max/average = 1.00055, 1.00056, 1.00055
AMI: Patch target weights min/max/average = 1.00055, 1.00055, 1.00055
AMI: Creating addressing and weights between 64 source faces and 64 target faces
AMI: Patch source weights min/max/average = 1.00055, 1.00056, 1.00055
AMI: Patch target weights min/max/average = 1.00055, 1.00055, 1.00055
AMI: Creating addressing and weights between 64 source faces and 64 target faces
AMI: Patch source weights min/max/average = 1.00055, 1.00055, 1.00055
AMI: Patch target weights min/max/average = 1.00055, 1.00055, 1.00055
AMI: Creating addressing and weights between 64 source faces and 64 target faces
AMI: Patch source weights min/max/average = 1.00055, 1.00056, 1.00055
AMI: Patch target weights min/max/average = 1.00055, 1.00055, 1.00055
AMI: Creating addressing and weights between 64 source faces and 64 target faces
AMI: Patch source weights min/max/average = 1.00055, 1.00056, 1.00055
AMI: Patch target weights min/max/average = 1.00055, 1.00055, 1.00055
AMI: Creating addressing and weights between 312 source faces and 312 target faces
AMI: Patch source weights min/max/average = 1.00001, 1.00001, 1.00001
AMI: Patch target weights min/max/average = 1.00001, 1.00001, 1.00001
Selecting incompressible transport model Newtonian
Selecting turbulence model type RASModel
Selecting RAS turbulence model SpalartAllmaras
SpalartAllmarasCoeffs
{
    sigmaNut        0.66666;
    kappa          0.41;
    Cb1            0.1355;
    Cb2            0.622;
    Cw2            0.3;
    Cw3            2;
    Cv1            7.1;
    Cv2            5;
}

Reading field rAU if present

No finite volume options present


PIMPLE: Operating solver in PISO mode


Starting time loop

forces blade0:

forces blades:

forces shaft:

forces rotor:

Courant Number mean: 0 max: 0
deltaT = 0.2
Time = 0.2

solidBodyMotionFunctions::rampedAxisRotationMotion::transformation(): Time = 0.2 transformation: ((0 0 0) (0.999864 (0 0 0.0164673)))
solidBodyMotionFunctions::cycloRamp::transformation(): Time = 0.2 transformation: ((-0.164971 0.212763 0) (0.280207 (0 0 0.95994)))
solidBodyMotionFunctions::cycloRamp::transformation(): Time = 0.2 transformation: ((-0.297131 -0.0540086 0) (0.237848 (0 0 0.971302)))
solidBodyMotionFunctions::cycloRamp::transformation(): Time = 0.2 transformation: ((-0.0222471 -0.0271189 0) (0.550852 (0 0 0.834603)))
solidBodyMotionFunctions::cycloRamp::transformation(): Time = 0.2 transformation: ((0.00724851 0.26913 0) (0.825156 (0 0 0.564905)))
solidBodyMotionFunctions::cycloRamp::transformation(): Time = 0.2 transformation: ((-0.250205 0.16912 0) (0.849131 (0 0 0.528182)))
solidBodyMotionFunctions::cycloRamp::transformation(): Time = 0.2 transformation: ((-0.0245374 -0.0250656 0) (0.621851 (0 0 0.783136)))
AMI: Creating addressing and weights between 64 source faces and 64 target faces
[3] #0  Foam::error::printStack(Foam::Ostream&)[1] #0  Foam::error::printStack(Foam::Ostream&)[0] #0  Foam::error::printStack(Foam::Ostream&)[2] #0  Foam::error::printStack(Foam::Ostream&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[1] #1  Foam::sigFpe::sigHandler(int) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[3] #1  Foam::sigFpe::sigHandler(int) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccD in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/liPOpt/lib/libOpenFOAM.sbOpenFOAM.so"
[0] #1  Foam::sigFpe::sigHandler(int)o"
[2] #1  Foam::sigFpe::sigHandler(int) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[3] #2  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[1] #2  in "/lib/x86_64-linux-gnu/libc.so.6"
[3] #3  Foam::boundBox::inflate(double) in "/lib/x86_64-linux-gnu/libc.so.6"
[1] #3  Foam::boundBox::inflate(double) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[2] #2  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #2  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[3] #4  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::checkPatches(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&) const in "/lib/x86_64-linux-gnu/libc.so.6"
[2] #3  Foam::boundBox::inflate(double) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[1] #4  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::checkPatches(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&) const in "/lib/x86_64-linux-gnu/libc.so.6"
[0] #3  Foam::boundBox::inflate(double) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[3] #5  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::update(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[2] #4  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::checkPatches(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&) const in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[1] #5  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::update(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[3] #6  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::AMIInterpolation(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::autoPtr<Foam::searchableSurface> const&, Foam::faceAreaIntersect::triangulationMode const&, bool, bool) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #4  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::checkPatches(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&) const in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[2] #5/libmeshTools.so"  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::update(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&)
[1] #6  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::AMIInterpolation(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::autoPtr<Foam::searchableSurface> const&, Foam::faceAreaIntersect::triangulationMode const&, bool, bool) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[0] #5  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::update(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[3] #7  Foam::cyclicAMIPolyPatch::resetAMI() const in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[2] #6  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::AMIInterpolation(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::autoPtr<Foam::searchableSurface> const&, Foam::faceAreaIntersect::triangulationMode const&, bool, bool) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[1] #7  Foam::cyclicAMIPolyPatch::resetAMI() const in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[3] #8  Foam::polyBoundaryMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[0] #6  Foam::AMIInterpolation<Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> >, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > >::AMIInterpolation(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, Foam::autoPtr<Foam::searchableSurface> const&, Foam::faceAreaIntersect::triangulationMode const&, bool, bool) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[2] #7  Foam::cyclicAMIPolyPatch::resetAMI() const in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[1] #8  Foam::polyBoundaryMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[0] #7  Foam::cyclicAMIPolyPatch::resetAMI() const in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[2] #8  Foam::polyBoundaryMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[1] #9  Foam::polyMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[3] #9  Foam::polyMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so"
[0] #8  Foam::polyBoundaryMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[2] #9  Foam::polyMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[1] #10  Foam::fvMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[3] #10  Foam::fvMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #9  Foam::polyMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[2] #10  Foam::fvMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
[1] #11  Foam::multiSolidBodyMotionFvMesh::update() in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so"
[0] #10  Foam::fvMesh::movePoints(Foam::Field<Foam::Vector<double> > const&) in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so"
[1] #12  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
[3] #11  Foam::multiSolidBodyMotionFvMesh::update()
 in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
[2] #11  Foam::multiSolidBodyMotionFvMesh::update()[1]  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
[1] #13  __libc_start_main in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so"
[2] #12  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libfiniteVolume.so"
[0] #11  Foam::multiSolidBodyMotionFvMesh::update() in "/home/tom/OpenFOAM/OpenF in "/lib/x86_64-linux-gnu/libc.soOAM-2.2.2/platforms/li.6"
[1] #14  nux64GccDPOpt/lib/libdynamicFvMesh.so"
[3] #12 
 in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so"
[0] #12


thsb20 April 8, 2014 14:06

And:

Code:

[2]  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
[2] #13  __libc_start_main
[1]  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
[tom-770Z5E-780Z5E:05791] *** Process received signal ***
[tom-770Z5E-780Z5E:05791] Signal: Floating point exception (8)
[tom-770Z5E-780Z5E:05791] Signal code:  (-6)
[tom-770Z5E-780Z5E:05791] Failing at address: 0x169f
[3]  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
[3] #13  __libc_start_main[tom-770Z5E-780Z5E:05791] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f44afa324a0]
[tom-770Z5E-780Z5E:05791] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f44afa32425]
[tom-770Z5E-780Z5E:05791] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f44afa324a0]
[tom-770Z5E-780Z5E:05791] [ 3] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam8boundBox7inflateEd+0x25) [0x7f44b0c6ddf5]
[tom-770Z5E-780Z5E:05791] [ 4] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZNK4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_E12checkPatchesERKSA_SD_+0xcb) [0x7f44b3d4d51b]
[tom-770Z5E-780Z5E:05791] [ 5] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZN4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_E6updateERKSA_SD_+0x5df) [0x7f44b3d5ec8f]
[tom-770Z5E-780Z5E:05791] [ 6] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZN4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_EC1ERKSA_SD_RKNS_7autoPtrINS_17searchableSurfaceEEERKNS_17faceAreaIntersect17triangulationModeEbb+0xb40) [0x7f44b3d60230]
[tom-770Z5E-780Z5E:05791] [ 7] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZNK4Foam18cyclicAMIPolyPatch8resetAMIEv+0x624) [0x7f44b3d4ad14]
[tom-770Z5E-780Z5E:05791] [ 8] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam16polyBoundaryMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0x19e) [0x7f44b0bc5aae]
[tom-770Z5E-780Z5E:05791] [ 9] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam8polyMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0x1e7) [0x7f44b0c12d87]
[tom-770Z5E-780Z5E:05791] [10] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libfiniteVolume.so(_ZN4Foam6fvMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0xac) [0x7f44b1df2e2c]
[tom-770Z5E-780Z5E:05791] [11] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so(_ZN4Foam26multiSolidBodyMotionFvMesh6updateEv+0x2be) [0x7f44b48bce0e]
[tom-770Z5E-780Z5E:05791] [12] pimpleDyMFoam() [0x41a4d4]
[tom-770Z5E-780Z5E:05791] [13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f44afa1d76d]
[tom-770Z5E-780Z5E:05791] [14] pimpleDyMFoam() [0x41ed1d]
[tom-770Z5E-780Z5E:05791] *** End of error message ***
 in "/lib/x86_64-linux-gnu/libc.so.6"
[2] #14  [0]  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
[0] #13  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
[3] #14 

 in "/lib/x86_64-linux-gnu/libc.so.6"
[0] #14  [2]  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
[tom-770Z5E-780Z5E:05792] *** Process received signal ***
[tom-770Z5E-780Z5E:05792] Signal: Floating point exception (8)
[tom-770Z5E-780Z5E:05792] Signal code:  (-6)
[tom-770Z5E-780Z5E:05792] Failing at address: 0x16a0

[3]  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
[tom-770Z5E-780Z5E:05793] *** Process received signal ***
[tom-770Z5E-780Z5E:05793] Signal: Floating point exception (8)
[tom-770Z5E-780Z5E:05793] Signal code:  (-6)
[tom-770Z5E-780Z5E:05793] Failing at address: 0x16a1
[tom-770Z5E-780Z5E:05792] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f48c63004a0]
[tom-770Z5E-780Z5E:05792] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f48c6300425]
[tom-770Z5E-780Z5E:05792] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f48c63004a0]
[tom-770Z5E-780Z5E:05792] [ 3] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam8boundBox7inflateEd+0x25) [0x7f48c753bdf5]
[tom-770Z5E-780Z5E:05792] [ 4] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZNK4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_E12checkPatchesERKSA_SD_+0xcb) [0x7f48ca61b51b]
[tom-770Z5E-780Z5E:05792] [ 5] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZN4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_E6updateERKSA_SD_+0x5df) [0x7f48ca62cc8f]
[tom-770Z5E-780Z5E:05792] [ 6] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZN4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_EC1ERKSA_SD_RKNS_7autoPtrINS_17searchableSurfaceEEERKNS_17faceAreaIntersect17triangulationModeEbb+0xb40) [0x7f48ca62e230]
[tom-770Z5E-780Z5E:05792] [ 7] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZNK4Foam18cyclicAMIPolyPatch8resetAMIEv+0x624) [0x7f48ca618d14]
[tom-770Z5E-780Z5E:05792] [ 8] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam16polyBoundaryMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0x19e) [0x7f48c7493aae]
[tom-770Z5E-780Z5E:05792] [ 9] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam8polyMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0x1e7) [0x7f48c74e0d87]
[tom-770Z5E-780Z5E:05792] [10] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libfiniteVolume.so(_ZN4Foam6fvMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0xac) [0x7f48c86c0e2c]
[tom-770Z5E-780Z5E:05792] [11] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so(_ZN4Foam26multiSolidBodyMotionFvMesh6updateEv+0x2be) [0x7f48cb18ae0e]
[tom-770Z5E-780Z5E:05792] [12] pimpleDyMFoam() [0x41a4d4]
[tom-770Z5E-780Z5E:05792] [13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f48c62eb76d]
[tom-770Z5E-780Z5E:05792] [14] pimpleDyMFoam() [0x41ed1d]
[tom-770Z5E-780Z5E:05792] *** End of error message ***
[tom-770Z5E-780Z5E:05793] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7fc9d67954a0]
[tom-770Z5E-780Z5E:05793] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7fc9d6795425]
[tom-770Z5E-780Z5E:05793] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7fc9d67954a0]
[tom-770Z5E-780Z5E:05793] [ 3] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam8boundBox7inflateEd+0x25) [0x7fc9d79d0df5]
[tom-770Z5E-780Z5E:05793] [ 4] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZNK4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_E12checkPatchesERKSA_SD_+0xcb) [0x7fc9daab051b]
[tom-770Z5E-780Z5E:05793] [ 5] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZN4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_E6updateERKSA_SD_+0x5df) [0x7fc9daac1c8f]
[tom-770Z5E-780Z5E:05793] [ 6] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZN4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_EC1ERKSA_SD_RKNS_7autoPtrINS_17searchableSurfaceEEERKNS_17faceAreaIntersect17triangulationModeEbb+0xb40) [0x7fc9daac3230]
[tom-770Z5E-780Z5E:05793] [ 7] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZNK4Foam18cyclicAMIPolyPatch8resetAMIEv+0x624) [0x7fc9daaadd14]
[tom-770Z5E-780Z5E:05793] [ 8] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam16polyBoundaryMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0x19e) [0x7fc9d7928aae]
[tom-770Z5E-780Z5E:05793] [ 9] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam8polyMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0x1e7) [0x7fc9d7975d87]
[tom-770Z5E-780Z5E:05793] [10] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libfiniteVolume.so(_ZN4Foam6fvMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0xac) [0x7fc9d8b55e2c]
[tom-770Z5E-780Z5E:05793] [11] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so(_ZN4Foam26multiSolidBodyMotionFvMesh6updateEv+0x2be) [0x7fc9db61fe0e]
[tom-770Z5E-780Z5E:05793] [12] pimpleDyMFoam() [0x41a4d4]
[tom-770Z5E-780Z5E:05793] [13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7fc9d678076d]
[tom-770Z5E-780Z5E:05793] [14] pimpleDyMFoam() [0x41ed1d]
[tom-770Z5E-780Z5E:05793] *** End of error message ***
[0]  in "/home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/bin/pimpleDyMFoam"
[tom-770Z5E-780Z5E:05790] *** Process received signal ***
[tom-770Z5E-780Z5E:05790] Signal: Floating point exception (8)
[tom-770Z5E-780Z5E:05790] Signal code:  (-6)
[tom-770Z5E-780Z5E:05790] Failing at address: 0x169e
[tom-770Z5E-780Z5E:05790] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f00995744a0]
[tom-770Z5E-780Z5E:05790] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x35) [0x7f0099574425]
[tom-770Z5E-780Z5E:05790] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) [0x7f00995744a0]
[tom-770Z5E-780Z5E:05790] [ 3] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam8boundBox7inflateEd+0x25) [0x7f009a7afdf5]
[tom-770Z5E-780Z5E:05790] [ 4] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZNK4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_E12checkPatchesERKSA_SD_+0xcb) [0x7f009d88f51b]
[tom-770Z5E-780Z5E:05790] [ 5] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZN4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_E6updateERKSA_SD_+0x5df) [0x7f009d8a0c8f]
[tom-770Z5E-780Z5E:05790] [ 6] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZN4Foam16AMIInterpolationINS_14PrimitivePatchINS_4faceENS_7SubListERKNS_5FieldINS_6VectorIdEEEES6_EESA_EC1ERKSA_SD_RKNS_7autoPtrINS_17searchableSurfaceEEERKNS_17faceAreaIntersect17triangulationModeEbb+0xb40) [0x7f009d8a2230]
[tom-770Z5E-780Z5E:05790] [ 7] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libmeshTools.so(_ZNK4Foam18cyclicAMIPolyPatch8resetAMIEv+0x624) [0x7f009d88cd14]
[tom-770Z5E-780Z5E:05790] [ 8] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam16polyBoundaryMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0x19e) [0x7f009a707aae]
[tom-770Z5E-780Z5E:05790] [ 9] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libOpenFOAM.so(_ZN4Foam8polyMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0x1e7) [0x7f009a754d87]
[tom-770Z5E-780Z5E:05790] [10] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libfiniteVolume.so(_ZN4Foam6fvMesh10movePointsERKNS_5FieldINS_6VectorIdEEEE+0xac) [0x7f009b934e2c]
[tom-770Z5E-780Z5E:05790] [11] /home/tom/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libdynamicFvMesh.so(_ZN4Foam26multiSolidBodyMotionFvMesh6updateEv+0x2be) [0x7f009e3fee0e]
[tom-770Z5E-780Z5E:05790] [12] pimpleDyMFoam() [0x41a4d4]
[tom-770Z5E-780Z5E:05790] [13] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f009955f76d]
[tom-770Z5E-780Z5E:05790] [14] pimpleDyMFoam() [0x41ed1d]
[tom-770Z5E-780Z5E:05790] *** End of error message ***
--------------------------------------------------------------------------
mpirun noticed that process rank 1 with PID 5791 on node tom-770Z5E-780Z5E exited on signal 8 (Floating point exception).
--------------------------------------------------------------------------
./parallel: line 23: break: only meaningful in a `for', `while', or `until' loop


lordvon April 8, 2014 14:09

Well, if you get errors in setting it up, there is no use running it.

Are you also new to Linux? If not, the errors should be pretty clear.

You need to run 'chmod +x fixBoundary'. 'setup' is a script that uses other scripts. Those other scripts should be executable.

lordvon April 8, 2014 14:11

Show all outputs when you run './setup casename'

lordvon April 8, 2014 14:23

I just downloaded my cylclorotor.zip file, 'chmod +x setup parallel case/enclosed case/fixBoundary case/bashMultiply', './parallel test', answered 'y' to run the simulation and it worked. So I am not sure what errors you are getting.

Are you sure the two custom libraries, rampedAxisRotationMotion and cycloRamp compiled successfully?

You mentioned you are using the old mesh... try the new mesh. I got some warnings running the new mesh, but no errors. It will still work fine.

thsb20 April 8, 2014 15:13

I figured that out right after posting haha. Ive done exactly what youve said and im getting a error:

mpirun noticed that process rank 2 with PID 8280 on node tom-770Z5E-780Z5E exited on signal 8 (Floating point exception).

Would I be right in thinking this means somewhere in the code there is a divide by zero or some other mathematical error?

thsb20 April 8, 2014 15:14

Is there any way you could paste your terminal output when you run ./parallel. And I can compare the correct output to mine.

It may help me figure out the exact point it goes wrong

lordvon April 8, 2014 15:42

1 Attachment(s)
You should post your output from running './parallel test', where 'test' is the name of the new folder that is created that contains the files pertinent to your simulation. Please do not forget to specify it.

I don't know how it would help, but attached is my output to running './parallel test' (I quit the simulation with CTRL+C at the end, it did not abort by error). Note that in the beginning Gmsh complains of error, but its just GUI stuff. The mesh is still made.

thsb20 April 8, 2014 16:01

1 Attachment(s)
Hi,

Ive compared logs and before running the case it seems like the mesh is slightly different. Im not sure why as I havn't done anything to it. If you look at the section 'Checking patch topology for multiply connected surfaces...' the points are slightly different in number, not much, but slightly off.

After running the case the transformation of the cycloRamp functions:
(solidBodyMotionFunctions::cycloRamp::transformati on(): Time = 0.2 transformation: ((-0.164971 0.212763 0) (0.280207 (0 0 0.95994))))
are all fine and the same, but the rampedAxisRotationMotion transformation above is different:

Mine:
solidBodyMotionFunctions::rampedAxisRotationMotion ::transformation(): Time = 0.2 transformation: ((0 0 0) (0.999864 (0 0 0.0164673)))
Yours:
solidBodyMotionFunctions::rampedAxisRotationMotion ::transformation(): Time = 0.2 transformation: ((0 0 0) (0.586916 (0 0 0.809648)))

Could be where the number is so close to zero that it starts throwing up errors. All I can think of is that the rampedAxisRotationMotion you have on github is a slightly older version of the one you are running. Could that be the case?

If so, I think this could be the final piece in the puzzle

Tom

lordvon April 8, 2014 16:33

Can you go into your newly named folder and run 'moveDynamicMesh'?

This will move the mesh, but will not solve for anything. Thus, you can see if there is a mismatch of the predicted motions of the blade volumes and the main rotor volume. You can view the locations of the meshes at the latest timestep with 'paraFoam'

lordvon April 8, 2014 16:41

Hmmm, I checked the github source and the units on the two custom codes seem to be consistent. But we'll see your result.

lordvon April 8, 2014 16:52

Actually they are not consistent. I think you solved it. I made a change to the github files for rampedAxisRotationMotion.C. All I did was delete the degToRad() conversions.

Please redownload and recompile rampedAxisRotationMotion. I bet it will work this time.

thsb20 April 8, 2014 16:59

1 Attachment(s)
I get the error:

--> FOAM FATAL ERROR:
Unable to find initial target face

From function void Foam::AMIInterpolation<SourcePatch, TargetPatch>::calcAddressing(const SourcePatch&, const TargetPatch&, label, label)
in file lnInclude/AMIInterpolation.C at line 725.

FOAM aborting

Full log in attached

lordvon April 8, 2014 17:02

Can you please look at my last posts? You brought attention to an inconsistency in rampedAxisRotationMotion that I fixed.

thsb20 April 8, 2014 17:21

HUZZAH!!!!! Its currently solving, i make that a productive evening. Ill let you know if I run into any problems, but at the moment its all flowing nicely. Once the code finishes is it just a case of typing 'paraFoam' to do the post processing stuff?

Thank you so much for all this, its very much appreciated

thsb20 April 8, 2014 17:23

Out of interest, how long does the code take to run on your PC?

lordvon April 8, 2014 17:34

Awesome!

Yes, once you want to view the results, 'paraFoam' will bring up a GUI, in which you can view the p and U fields, surface distributions, etc. It is pretty straightforward to use and there are a lot of good tutorials out there.

Keep in my mind you need to specify the frequency of writing out the results to be viewed. This is controlled in controlDict.

The simulation does not take long at all; should be about a few hours. BUT, the run time is highly variable according to the size of the mesh and the maximum Courant number. I think a high Courant number is set in the case files (30?), and the Courant number used in my validation runs was 2 (more accurate, smaller time step, higher overall run time). So in the beginning of the simulation, you may want to use the high Courant number, and when the force results settle, you can change it to a lower Courant number. You can simply change this in controlDict while the case is still running. On my computer (i7-2700 processor) it ran in a few hours, I think. I ran these back in November last year, so I don't remember exactly, but I know it never took more than a day.

Oh, and since this simulation is run in parallel, you should run 'reconstructPar -latestTime' before you view the latest time step in paraFoam.

Also, inside the 'parallel' script you should see that I specified it to run on 4 cores. If you want to use a different number, you should change this.

To view forces, 'chmod +x f' and run the file named f. If you changed the mesh or operating parameters, you should change them accordingly in the variables at the top of the 'f' script.

thsb20 April 8, 2014 19:30

This is absolutely incredible. Thank so much.

Couple of things, in paraFoam, it only seems to give me two steps, 0 is 0s and 1 is 10s. there doesnt seem to be any inbetween. I can use the 10s mark to be my steady state forces, which is perfect, jsut wondering if I can get inbetween states, for animations etc.


Also, If I were to edit the mesh to make it more like my system, from what I can see:

Change chord length is /mesh/blades/0_inputs.geo, Change bladeShord
Change max and min pitch is maxPitch, minPitch in /rotor
rotor radius to smaller is rotorRadius in /rotor
blade count down to 4 is bladeCount in /rotor.

Then check mesh etc and run again?

Then to change the rotational speed where would I go?

Or would changing these things in the mesh then mean I would need to change a load of files in the /case directory, like the dynamiMeshDict

lordvon April 8, 2014 20:07

If you look in processor0, processor1, etc. you will see the time steps available that were written (the frequency of writing is in controlDict). If you want all of these timesteps, do 'reconstructPar' and it will reconstruct from the decomposed processor0,etc. parts and thus make it available to paraView (it used to be able to read decomposed timesteps directly, but now it does not for some reason; you have to reconstruct them first).

Any changes you make in the mesh and geometry can be immediately viewed by opening main.geo in Gmsh.
All those parameters are easily changeable in the corresponding 0_inputs.geo files. But changing the number of blades requires a little more editing. Since you want less blades, you will have to manually comment out the parts in main.geo that specify bladeVolume4 and bladeVolume5, since they will no longer exist (For every blade there is a corresponding blade volume).

In the case files, you will have to edit dynamicMeshDict. In it, you can see that variables for each blade volume is specified.
The custom function needs to know the initial location of the blade, its radial distance from the center of the rotor, and the initial and final rotation speeds in order to calculate each blade volume's center of pitching. Comment out bladeVolumes 4 and 5, then change phi_ to 0,90,180,270 for bladeVolumes 0,1,2, and 3, respectively. ALL other variables have to be the same for EVERY blade volume. And: radialVelocityf = OMEGAF, radialVelocity0 = OMEGA0, t0 = T0, tf = TF, CofG = COFR. When you change the radius in the geometry/mesh, you also have to change it here for all blade volumes. Here is also where you change the rotational speeds.

Finally, the parameter changes have to be taken into account into the 'f' file. Change the rotation speed accordingly. Note that the power figure will not be correctly computed during the ramp-up phase, as the rotation speed is actually less than what is input during this period.


All times are GMT -4. The time now is 15:20.