CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Floating point exception (core dumped) issue by solving the change of pitchAxis

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

Like Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2019, 22:52
Default Floating point exception (core dumped) issue by solving the change of pitchAxis
  #1
New Member
 
Ze Shao
Join Date: Apr 2019
Posts: 4
Rep Power: 7
sz617896964 is on a distinguished road
Dear all

I am new to OpenFoam.I tried to find out how to get the force coefficients by putting the code in the controlDict. As shown below,

application icoFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 100;

deltaT 0.001;

writeControl timeStep;

writeInterval 5;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;


functions
{

forceCoeffs1
{
type forceCoeffs;
functionObjectLibs ("libforces.so");
writeControl timeStep;
enabled true;
writeInterval 10;
patches (
body
); //change to your patch name
rho rhoInf;
rhoInf 1000; // rhoInf - reference density
CofR (0 0 0); // CofR - Centre of rotation
liftDir (0 1 0); // dragDir - Direction of drag coefficient
dragDir (1 0 0);// liftDir - Direction of lift coefficient
pitchAxis (0 0 0); // pitchAxis - Pitching moment axis
magUInf 1.0; // magUinf - free stream velocity magnitude
lRef 1; // lRef - reference length, which is the chord length for an airfoil and the diameter for a cylinder
Aref 12.0; // Aref - reference area, which is the chord*span for an airfoil, and diameter*length for your cylinder
}
}

It always show "Floating point exception (core dumped). However, if I change the pitchAxis (0 0 0) to pitchAxis (0 0 1), it will work. I do not know why. In fact, I do not need to know the pitching moment in my case. Would you please do me a favour to explain it?

Kind regards,
Ze
sz617896964 is offline   Reply With Quote

Old   April 24, 2019, 11:26
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

During creation of the forceCoeffs function object axes vectors are normalised, to make their lengths equal to one. Normalisation is made by division axis vector by its norm. If you set axis vector to (0 0 0), its magnitude becomes 0, and you get FPE.

If you do not need pitching moment, simply ignore it.
sz617896964 likes this.
alexeym is offline   Reply With Quote

Reply

Tags
force coefficients, pitchaxis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 28 July 13, 2020 14:26
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 13:12
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 04:13
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50


All times are GMT -4. The time now is 22:37.