CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

Please help me Moving Boundary

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

LinkBack Thread Tools Display Modes
Old   August 12, 2008, 10:51
Default My current project: MovingBoun
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 73
Rep Power: 16
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
// move mesh, using solver spec by dynamivMesh

#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


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
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 15:34
Moving Boundary andreis FLUENT 0 April 13, 2005 23: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 22:25.