CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Move mesh patch pointwise

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

LinkBack Thread Tools Display Modes
Old   August 16, 2017, 07:10
Default Move mesh patch pointwise
New Member
Join Date: Dec 2016
Posts: 17
Rep Power: 2
dariodario32 is on a distinguished road
Hi all,
I'm working on a FSI code that involve OF 4.1 and Calculix (as structural solver).
In this moment I'm struggling to assing the mesh motion to the patch in OF solver. What i wrote so far is:

vectorField displacements;

...assigning value to displacements from structural solver...

pointVectorField& PointDisplacement = const_cast<pointVectorField&>
mesh.objectRegistry::lookupObject<pointVectorField >

PointDisplacement.boundaryField()[patchI].patchInternalField() == displacements;

the problem is that I can't see any changes in the mesh, not even in the pointDisplacement dict.

Does anybody know why?
dariodario32 is offline   Reply With Quote

Old   August 17, 2017, 14:08
New Member
Join Date: Dec 2016
Posts: 17
Rep Power: 2
dariodario32 is on a distinguished road
I'm using dynamicMotionSolverFvMesh.
Looking at the code:

bool Foam::dynamicMotionSolverFvMesh::update()

if (foundObject<volVectorField>("U"))
volVectorField& U =
const_cast<volVectorField&>(lookupObject<volVector Field>("U"));

return true;
it is clear that I should pass the positions of the nodes into newPoints, but I cannot realize how to do that.
dariodario32 is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 225 August 25, 2015 19:43
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55

All times are GMT -4. The time now is 03:49.