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

FloatingObject parameter question

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 24, 2016, 09:31
Default FloatingObject parameter question
  #1
New Member
 
Evan
Join Date: May 2016
Posts: 23
Rep Power: 10
k13113y is on a distinguished road
Hi, I'm trying to run a simulation of a 3x3x3 cube in a 100x100x20 environment using the framework of the floatingObject tutorial. I'm just unsure of what the 'innerDistance' and 'outerDistance' are. Here's my dynamicMeshDict file... thanks

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicMotionSolverFvMesh;

motionSolverLibs ("libsixDoFRigidBodyMotion.so");

solver sixDoFRigidBodyMotion;

sixDoFRigidBodyMotionCoeffs
{
patches (floatingObject);
innerDistance 0.05;
outerDistance 0.35;


centreOfMass (50 50 10);

// Cuboid dimensions
Lx 3.0;
Ly 3.0;
Lz 3.0;

// Density of the solid
rho 920;

// Cuboid mass
mass #calc "$rho*$Lx*$Ly*$Lz";

// Cuboid moment of inertia about the centre of mass
momentOfInertia #codeStream
{
codeInclude
#{
#include "diagTensor.H"
#};

code
#{
scalar sqrLx = sqr($Lx);
scalar sqrLy = sqr($Ly);
scalar sqrLz = sqr($Lz);
os <<
$mass
*diagTensor(sqrLy + sqrLz, sqrLx + sqrLz, sqrLx + sqrLy)/12.0;
#};
};

report on;
accelerationRelaxation 0.7;
k13113y is offline   Reply With Quote

 

Tags
dynamicmeshdict, floatingobject


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
[PyFoam] running pyFoam(Plot)Runner.py in parallel Studi OpenFOAM Community Contributions 10 September 6, 2015 16:38
calculating output parameter in cfd post markus67 CFX 3 August 26, 2015 09:28
Parameter Output Problem Sabayonetta FLUENT 0 May 11, 2015 02:53
meshing of a compound volume in GMSH shawn3531 OpenFOAM 4 March 12, 2015 10:45
How to set as input parameter in Fluent a variable existing outside it? didimad FLUENT 1 March 3, 2015 11:10


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