View Issue Details

IDProjectCategoryView StatusLast Update
0003180OpenFOAMContributionpublic2019-03-01 13:54
Reporterhandrake0724 Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Fixed in Versiondev 
Summary0003180: functionObject for rigidBodyMeshMotion
DescriptionI have made a functionObject writting states of rigid bodies for rigidBodyMeshMotion and rigidBodyMeshMotionSolver.

To make the functionObject work, some modifications in rigidBodyMeshMotion and rigidBodyMeshMotionSolver are needed as follows:

const Foam::RBD::rigidBodyMotion& Foam::rigidBodyMeshMotion::model() const
{
    return model_;
}

const Foam::wordList Foam::rigidBodyMeshMotion::bodyNames() const
{
    wordList names(bodyMeshes_.size());

    forAll(bodyMeshes_, i)
    {
        names[i] = bodyMeshes_[i].name_;
    }
    return names;
}

with the access functions above, rigidBodyState functionObject can write states of bodies.

developed codes are attached for your review.
TagsNo tags attached.

Activities

handrake0724

2019-02-28 20:08

viewer  

rigidBodyState.tar.gz (2,587 bytes)

henry

2019-03-01 13:54

manager   ~0010337

Thanks for the patch. I reworked the rigidBodyMeshMotion and rigidBodyMeshMotionSolver classes to avoid the nasty conditional double-cast and updated the rigidBodyState functionObject accordingly.

Resolved by commit d399b83f08922f540f843c7c48d19f6220801f09

Issue History

Date Modified Username Field Change
2019-02-28 20:08 handrake0724 New Issue
2019-02-28 20:08 handrake0724 File Added: rigidBodyState.tar.gz
2019-03-01 13:54 henry Assigned To => henry
2019-03-01 13:54 henry Status new => resolved
2019-03-01 13:54 henry Resolution open => fixed
2019-03-01 13:54 henry Fixed in Version => dev
2019-03-01 13:54 henry Note Added: 0010337