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

Question: mesh.update() in FSI

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

Like Tree17Likes

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 7, 2015, 07:00
Default
  #41
New Member
 
wuwenbo
Join Date: Jan 2013
Posts: 17
Rep Power: 13
wuwenbo is on a distinguished road
I'm using "velocityLaplacian" to move my mesh. Can you tell me which boundary condition you used instead of "movingWallVelocity"? I can't find a suitable boundary condition in the OF 2.3.0.
wuwenbo is offline  

Old   May 9, 2015, 09:50
Default
  #42
Member
 
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23
pi06jl6 will become famous soon enough
Quote:
Originally Posted by wuwenbo View Post
I'm using "velocityLaplacian" to move my mesh. Can you tell me which boundary condition you used instead of "movingWallVelocity"? I can't find a suitable boundary condition in the OF 2.3.0.
movingWallVelocity works fine for me, I am using displacementLaplacian with inverse distance, I have implemented support for velocityLaplacian but havent used it .
pi06jl6 is offline  

Old   May 9, 2015, 22:04
Default
  #43
New Member
 
wuwenbo
Join Date: Jan 2013
Posts: 17
Rep Power: 13
wuwenbo is on a distinguished road
Quote:
However, I resolved the pressure oscillation: Dont try use movePoints twice in a subiteration, just move the points and assume that the movement is sufficient smaller than the cell size, adjust the time step so that this assumption is valid.
I have review your post about FSI yesterday, you don't using "movePoints" or "mesh.update()" in subiteration, and using "movingWallVelocity" still. So, I'm curious about how the effect of displacement of the solid can be act on fluid in each subiteration. I have done as you mentioned, and observe the "Up" in "movingWallVelocity", I find that "Up" don't change until the mesh is update.

The "movingWallVelocity" is the boundary condition of the interface for fluid computation. So I think the parameters in "movingWallVelocity" don't change mean that the fluid domain is just computed once by itself (not Fsi) in the subiteration. Is that right? So, i hope you can tell me how you act the effect of solid on fluid in each subiteration very much.
wuwenbo is offline  

Old   May 9, 2015, 22:21
Default
  #44
New Member
 
wuwenbo
Join Date: Jan 2013
Posts: 17
Rep Power: 13
wuwenbo is on a distinguished road
if your case can still be computed in "weak couple" (just compute one coupling in each time step) way?
wuwenbo is offline  

Old   May 15, 2015, 10:30
Default
  #45
Member
 
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23
pi06jl6 will become famous soon enough
Quote:
Originally Posted by wuwenbo View Post
I have review your post about FSI yesterday, you don't using "movePoints" or "mesh.update()" in subiteration, and using "movingWallVelocity" still. So, I'm curious about how the effect of displacement of the solid can be act on fluid in each subiteration. I have done as you mentioned, and observe the "Up" in "movingWallVelocity", I find that "Up" don't change until the mesh is update.

The "movingWallVelocity" is the boundary condition of the interface for fluid computation. So I think the parameters in "movingWallVelocity" don't change mean that the fluid domain is just computed once by itself (not Fsi) in the subiteration. Is that right? So, i hope you can tell me how you act the effect of solid on fluid in each subiteration very much.
Correctly, but ... why do you concern with moving the points without update? I wrote that it gave reasonable results only for small time steps and the larger the boundary velocity less added mass where observed, hence a poor choice.

I am little unsure about what the issue is here. To answer your question : Look into the code where does the points enter in the calculation, then you get the answer, it does affect, but it works only for when the changes is small.

Let me remind you that when i first implemented FSI in 2008 everything worked nice, no pressure oscillation, then feb 2014 when i used OF 2.1 everything went wrong, and quickly i realized that it were due to swapping of pointer in movePoints and it were confirmed by others on forum that that version of OF didnt support subiterative FSI (only weak). So, then i did an assumption: for sufficiently small time steps the same assumption as one do for pressure can be done for U for the FSI purpose. Thus, the text above about moving the boundary points without movePoints/update is an approximation (first order, crude) that is used in the version of OF where the swap of the pointers in movePoints prevents you to use the update twice during same time step. I strongly discourage you to use that, partly since not all fields are updated properly as you pointing out yourself and which i also state above. I strongly advice you use movePoints twice instead while you using older version, since I got a letter from one OF user that he used that trick for his work with his thesis.

In current version of OF you can use update in subiterations. I have verified my code by benchmark and i can assure you, just use pimpleDyMFoam, insert your Solver function and couple the solvers. Everything will purr like a cat.

Last edited by pi06jl6; May 15, 2015 at 11:40.
pi06jl6 is offline  

Old   May 15, 2015, 10:43
Default
  #46
Member
 
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23
pi06jl6 will become famous soon enough
Quote:
Originally Posted by wuwenbo View Post
if your case can still be computed in "weak couple" (just compute one coupling in each time step) way?
Do mind we take this off-forum instead? Like over email?
pi06jl6 is offline  

Old   February 21, 2016, 05:06
Default
  #47
Member
 
Johan Lorentzon
Join Date: Mar 2009
Location: Lunds University, Sweden
Posts: 78
Rep Power: 23
pi06jl6 will become famous soon enough
For whom that reads this post:

I do receive emails on this subject and questions how to resolve the issue with pressure spikes on strongly coupled FSI, my answer is the following,

0. I have only used pimpleDymFOAM.C from OpenFOAM, i am using DEAL.II package for the solid part. I dont have adequate knowledge to answer properly regarding OpenFOAM, most of my time is adressed to build different FEM solvers and preproccessing/postprocessing tools which is outside OpenFOAM package.

1. I do not give out my research code, perhaps snippet code. The reason is to protect you from cut your finger while using my code.

2. Do use the latest version of OF, this sort most of the issues.

3. Mesh update is the last thing you do per subiteration.

4. Regarding stability issue, use relaxation techniques.

If the administrator could lock/remove this thread, i would appreciate this.
pi06jl6 is offline  

Closed Thread

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
initial file for fsi modeling? mortazavi CFX 0 July 21, 2009 02:06
1-way FSI Vs. 2-way FSI k_buz Main CFD Forum 0 May 12, 2009 04:10
fsi sun Siemens 8 January 19, 2009 23:17
FSI on a Rotating Structural Model drgolf CFX 9 August 30, 2007 12:08
Restart of FSI simulation V. Kumar CFX 3 July 20, 2006 13:23


All times are GMT -4. The time now is 02:45.