View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003180 | OpenFOAM | Contribution | public | 2019-02-28 20:08 | 2019-03-01 13:54 |
Reporter | handrake0724 | Assigned To | henry | ||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | resolved | Resolution | fixed | ||
Fixed in Version | dev | ||||
Summary | 0003180: functionObject for rigidBodyMeshMotion | ||||
Description | I 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. | ||||
Tags | No tags attached. | ||||
|
|
|
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 |
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 |