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

Please help me Moving Boundary

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 12, 2008, 11:51
Default My current project: MovingBoun
  #1
Member
 
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23
pi06jl6 will become famous soon enough
My current project: MovingBoundary solver have shown not move the grid! the following code is used,

Main code:
// 1/dt
scalar factor=1/(runTime.deltaT().value());
// loop over all boundary points
forAll(fluidMesh.localPoints(),fluidI) {
// get displacement vector shared::icofsi_db.get_displacement(fluidI,patchU[fluidI]);
// calculate dU this gives the motionU on boundary
patchU[fluidI]=factor*patchU[fluidI];
}
// move mesh, using solver spec by dynamivMesh
mesh.movePoints(motionPtr->newPoints());

#include file:

autoPtr<foam::motionsolver> motionPtr = motionSolver::New(mesh);

tetPointVectorField::GeometricBoundaryField &motionU=const_cast<tetpointvectorfield&>(mesh.obj ectRegistry::lookupObject<tetp ointvectorfield>("motionU")).boundaryField();

Foam::vectorField &patchU=refCast<foam::vectorfield>(motionU[MovingBoundary]);

The result is that the fluid mesh didnt move accordingly the displacement vector i provided as above. Any clue to the error?

Then i use the FEM solver in OF 1.3 which i am not about to use anymore ( xn=x0+dt*dU, velocity solver).

Anyone who can give me anyhint in what solver to use to solve above problem in official 1.4.1/1.5 ( not dev), the case i am working transfer a displacement vector on each point on the moving fluid boundary, then i want to use motionSolver to adjust the mesh in a robust manner since the movement is unknown/moderate large. Further i truly would appriciate a piece of code that i could use as starting point for my implementation.

Thank you for helping me!

PS. I have searched through whole forum and found
no help! However,I have seen the excellent studies of mesh movement. Guessing laplacefacedecompistion should be used but i have no clue how to implement it!
pi06jl6 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
Slip Boundary Condition for Moving Boundary Shukla Main CFD Forum 3 November 11, 2005 16:02
moving boundary Wu Guojiang FLUENT 2 August 6, 2005 16:34
Moving Boundary andreis FLUENT 0 April 14, 2005 00:36
moving boundary in CFX 5.7 Gary Wang CFX 7 February 11, 2005 03:28
moving boundary Amir Khanlou FLUENT 0 March 9, 2003 13:04


All times are GMT -4. The time now is 18:52.