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

Move mesh patch pointwise

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 16, 2017, 08:10
Default Move mesh patch pointwise
  #1
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 9
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:

Quote:
vectorField displacements;

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

pointVectorField& PointDisplacement = const_cast<pointVectorField&>
(
mesh.objectRegistry::lookupObject<pointVectorField >
(
"pointDisplacement"
)
);


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

mesh.update();
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, 15:08
Default
  #2
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 9
dariodario32 is on a distinguished road
I'm using dynamicMotionSolverFvMesh.
Looking at the code:

Quote:
bool Foam::dynamicMotionSolverFvMesh::update()
{
fvMesh::movePoints(motionPtr_->newPoints());

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

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

Reply

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
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 10: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 10:34.