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

solids4foam for natural frequency of a cantilever beam

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 3 Post By Barry
  • 2 Post By bigphil
  • 1 Post By bigphil
  • 1 Post By bigphil
  • 1 Post By chaosCFD

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2020, 11:10
Default solids4foam for natural frequency of a cantilever beam
  #1
New Member
 
Join Date: May 2010
Posts: 18
Rep Power: 15
Barry is on a distinguished road
Hi (Structural) Foamers,

Thought this post might help some of you to understand the importance of time step in a structural solver using solids4foam toolbox.

The frequency of cantilever beam was validated using the finite volume method by the authors Slone et al https://www.sciencedirect.com/scienc...07904X02000604. Please see fig 3 in this paper. The natural frequency is approx 20 s.

The same case was run using linearGeometryTotalDisplacement model from solids4foam toolbox. The left part of the attached image shows the displacement variation with time for the force inputs as shown in right for different time steps.

As given in the paper, the force was linearly ramped upto 10 s and then released. However, the displacement from simulation does not capture the natural frequency when time step, dt = 1 s. There is too much damping arising from first order Euler scheme. With finer time steps, this numerical damping disappeared to a large extent and the natural frequency is as expected. Unlike the Slone et al's article, the peak displacement is greater than 0.1 m and it gradually reduced with increasing time. Thanks to Philip Cardiff (aka bigphil) for suggesting to perform time step checks.
Attached Images
File Type: jpg comp_timestep_disp_force_beam.jpg (42.9 KB, 58 views)
bigphil, hoehnp and anaspauzi like this.
Barry is offline   Reply With Quote

Old   July 29, 2020, 11:24
Default
  #2
New Member
 
Join Date: May 2010
Posts: 18
Rep Power: 15
Barry is on a distinguished road
I forgot to mention in the above message. At time step = 0.1 s, the results for backward scheme and Euler scheme are same though. As backward scheme is second order and Euler is first order, why is displacement response not sensitive to the type of time scheme?
Barry is offline   Reply With Quote

Old   July 29, 2020, 11:33
Default
  #3
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by Barry View Post
I forgot to mention in the above message. At time step = 0.1 s, the results for backward scheme and Euler scheme are same though. As backward scheme is second order and Euler is first order, why is displacement response not sensitive to the type of time scheme?
As the time-step is reduced, all consistent methods will approach the same answer. The difference is that second-order methods will approach the time-step-independent answer at a quicker rate the first-order methods (well, actually only in the asymptotic region i.e. when getting close to the answer).

Also, for a given time-step size, second-order methods are often more accurate in absolute terms than first-order methods, but this does not have to be the case.

In your case, I suggest you perform the same time-step analysis using both Euler and backward and compare them, and you should see that backward approaches the final solution at a higher rate.

Philip

EDIT: by the way, first order Euler is generally known to require very small toe-steps to be accurate in comparison to Newmark or trapezoidal second order schemes, which can produce the same accuracy with much larger time-step sizes.
Barry and anaspauzi like this.

Last edited by bigphil; July 29, 2020 at 11:35. Reason: Add comment about Euler
bigphil is offline   Reply With Quote

Old   December 12, 2022, 21:49
Default
  #4
New Member
 
Chao Li
Join Date: Oct 2019
Posts: 6
Rep Power: 6
chaosCFD is on a distinguished road
Quote:
Originally Posted by Barry View Post
Hi (Structural) Foamers,

Thought this post might help some of you to understand the importance of time step in a structural solver using solids4foam toolbox.

The frequency of cantilever beam was validated using the finite volume method by the authors Slone et al https://www.sciencedirect.com/scienc...07904X02000604. Please see fig 3 in this paper. The natural frequency is approx 20 s.

The same case was run using linearGeometryTotalDisplacement model from solids4foam toolbox. The left part of the attached image shows the displacement variation with time for the force inputs as shown in right for different time steps.

As given in the paper, the force was linearly ramped upto 10 s and then released. However, the displacement from simulation does not capture the natural frequency when time step, dt = 1 s. There is too much damping arising from first order Euler scheme. With finer time steps, this numerical damping disappeared to a large extent and the natural frequency is as expected. Unlike the Slone et al's article, the peak displacement is greater than 0.1 m and it gradually reduced with increasing time. Thanks to Philip Cardiff (aka bigphil) for suggesting to perform time step checks.
Hello Barry, thanks for sharing! May I ask a question? How is the calculation time of your case for the cantilever? Is the calculation slow? Recently, I also conducted a free vibration simulation of a cantilever using solids4Foam, but the solving procedure is very slow. A 4s simulation lasts nearly 6 hours. The total cell number of the solid model is only 2000, and the timeStep is set as 0.01. How about your case?
chaosCFD is offline   Reply With Quote

Old   December 13, 2022, 17:45
Default
  #5
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by chaosCFD View Post
Hello Barry, thanks for sharing! May I ask a question? How is the calculation time of your case for the cantilever? Is the calculation slow? Recently, I also conducted a free vibration simulation of a cantilever using solids4Foam, but the solving procedure is very slow. A 4s simulation lasts nearly 6 hours. The total cell number of the solid model is only 2000, and the timeStep is set as 0.01. How about your case?
The segregated solution algorithm is slow for high-aspect-ratio geometry, particularly for slender cantilevers. You may find coupled solvers to be a better option in your case, e.g. I showed a coupled solver to be much faster than a segregated solver in cases like this in this paper. In solids4foam, you can try coupledUnsLinGeomLinearElasticSolid and vertexCentredLinGeomSolid.
chaosCFD likes this.

Last edited by bigphil; December 14, 2022 at 09:51. Reason: Fix URL
bigphil is offline   Reply With Quote

Old   December 13, 2022, 21:29
Default
  #6
New Member
 
Chao Li
Join Date: Oct 2019
Posts: 6
Rep Power: 6
chaosCFD is on a distinguished road
Quote:
Originally Posted by bigphil View Post
The segregated solution algorithm is slow for high-aspect-ratio geometry, particularly for slender cantilevers. You may find coupled solvers to be a better option in your case, e.g. I showed a coupled solver to be much faster than a segregated solver in cases like this in this paper. In solids4foam, you can try coupledUnsLinGeomLinearElasticSolid and vertexCentredLinGeomSolid.
Thanks for your suggestion, Prof. Cardiff! Yeah, I also find the coupled solver is much faster, but what is the mechanism behind it? Why the segregated method is slow for high-aspect-ratio structure and why the coupled is faster? Yesterday, I ran a case of which a cantilever subjected by a sudden load with segregated method. I set a very small time step, about 1/5000 of the cantilever's nature period, and the solution was much faster, because the iteration steps became fewer in every calculation time. By the way, I couldn't find the paper with the url. Is this the paper? A block-coupled finite volume methodology for linear elasticity and unstructured meshs.
chaosCFD is offline   Reply With Quote

Old   December 14, 2022, 10:04
Default
  #7
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by chaosCFD View Post
Thanks for your suggestion, Prof. Cardiff! Yeah, I also find the coupled solver is much faster, but what is the mechanism behind it? Why the segregated method is slow for high-aspect-ratio structure and why the coupled is faster? Yesterday, I ran a case of which a cantilever subjected by a sudden load with segregated method. I set a very small time step, about 1/5000 of the cantilever's nature period, and the solution was much faster, because the iteration steps became fewer in every calculation time. By the way, I couldn't find the paper with the url. Is this the paper? A block-coupled finite volume methodology for linear elasticity and unstructured meshs.
Sorry, I have now fixed the URL to the paper; here it is again: P. Cardiff, Ž. Tuković, H. Jasak, A. Ivanković, A block-coupled Finite Volume methodology for linear elasticity and unstructured meshes, Computers & Structures, 175, 2016, https://doi.org/10.1016/j.compstruc.2016.07.004.


In reply to your questions
  • Why is the segregated solver slow (relative to a coupled solver) for these cases? The segregated solver uses an approximation of the divergence of stress term in the momentum equation for the implicit term (a Laplacian term is used); then explicit (deferred corrections) are added so that once the outer iterations converge then the solution satisfies the original momentum equation (with the divergence of stress). This approach is efficient for "blocky" geometry with low aspect ratios; however, for bending of slender cantilevers, explicit terms are large relative to the implicit term resulting in slow convergence of the outer iterations. A coupled method treats all (or most) of the divergence of stress term implicitly, so it does not have this problem. Another solution could be to use a geometric multigrid algorithm, as done by Demirdzic, Muzaferija, Peric and co-workers.
  • Why is the segregated solver much faster when solving the case transiently using small time steps?
    When using small time steps in transient problems, the inertia term (rho*dv/dt) is large relative to the stress term's divergence, so convergence is fast. In these cases, the coupled method could be slower because it is more expensive to build and solve the coupled linear system than the segregated system. For really small time steps, fully explicit methods become competitive as the inertia term fully dominates the solution.
chaosCFD likes this.
bigphil is offline   Reply With Quote

Old   December 14, 2022, 20:15
Default
  #8
New Member
 
Chao Li
Join Date: Oct 2019
Posts: 6
Rep Power: 6
chaosCFD is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Sorry, I have now fixed the URL to the paper; here it is again: P. Cardiff, Ž. Tuković, H. Jasak, A. Ivanković, A block-coupled Finite Volume methodology for linear elasticity and unstructured meshes, Computers & Structures, 175, 2016, https://doi.org/10.1016/j.compstruc.2016.07.004.


In reply to your questions
  • Why is the segregated solver slow (relative to a coupled solver) for these cases? The segregated solver uses an approximation of the divergence of stress term in the momentum equation for the implicit term (a Laplacian term is used); then explicit (deferred corrections) are added so that once the outer iterations converge then the solution satisfies the original momentum equation (with the divergence of stress). This approach is efficient for "blocky" geometry with low aspect ratios; however, for bending of slender cantilevers, explicit terms are large relative to the implicit term resulting in slow convergence of the outer iterations. A coupled method treats all (or most) of the divergence of stress term implicitly, so it does not have this problem. Another solution could be to use a geometric multigrid algorithm, as done by Demirdzic, Muzaferija, Peric and co-workers.
  • Why is the segregated solver much faster when solving the case transiently using small time steps?
    When using small time steps in transient problems, the inertia term (rho*dv/dt) is large relative to the stress term's divergence, so convergence is fast. In these cases, the coupled method could be slower because it is more expensive to build and solve the coupled linear system than the segregated system. For really small time steps, fully explicit methods become competitive as the inertia term fully dominates the solution.
I think I got it. Thanks so much!
bigphil likes this.
chaosCFD is offline   Reply With Quote

Reply


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
Udl cantilever beam problem with ansys workbench assassin_s Structural Mechanics 1 March 26, 2019 14:51
cantilever beam anlysis arif1729 Structural Mechanics 0 October 4, 2016 18:50
[solidMechanics] the dynamic response of cantilever beam under earthquake bieshuxuhe OpenFOAM CC Toolkits for Fluid-Structure Interaction 2 May 28, 2014 10:23
one way FSI: large deflection of cantilever beam inside a microfluidic channel o_mars_2010 CFX 1 October 30, 2012 23:17
comsol cantilever beam problem bhu47 COMSOL 0 June 30, 2008 14:59


All times are GMT -4. The time now is 09:31.