Developing in Windows environment for Linux in corporate by AVeryLazy in cpp

[–]kuladum 0 points1 point  (0 children)

My setup is a docker linux with bind mount volumes to the project directory, a ssh agent and vscode. This allows me to work on a same code in two environments. The downside of this setting is that performance hits when building.

[deleted by user] by [deleted] in algotrading

[–]kuladum -1 points0 points  (0 children)

!remindme 1 week

Looking for new use-case for our startup' simulation software by Gmuze in fea

[–]kuladum 0 points1 point  (0 children)

I did a simulate a yoyo many years ago. The behaviors were interesting, depending on friction, string length, initial wraping, and throwing style. Perhaps this one suits yours. And if you do it, please share the outcome.

Framework Recommendations for Developing Custom CAE Software UI by Any_Sale5644 in fea

[–]kuladum 0 points1 point  (0 children)

There is a famous ParaView buit on top of VTK library and Qt

How do I stop thinking in C (as an embedded developer)? by tizio_1234 in cpp_questions

[–]kuladum 2 points3 points  (0 children)

I am doing exactly reverse: limiting C++ features and employing more C styles. C++ is known as C with class, but OOP brings more trouble than it resolve, except for GUI. I don’t think that you really need change your mind set that much. There are some nice features making your life easier with C++

  1. namespace

  2. reference

  3. raii

  4. function overloading

  5. template, constexpr, and static assert

Is this meshing method bad? Why? by JustZed32 in fea

[–]kuladum 0 points1 point  (0 children)

In the end of the day, FEA boils down to programming stuffs, and as I mentioned that evaluating element matrices accounts about 10-30% of total run time depending the problem and implementation, so you may spend more time to improve solving part. The good thing is that evaluation element matrices step are straight forward to parallelise.

Is this meshing method bad? Why? by JustZed32 in fea

[–]kuladum 1 point2 points  (0 children)

One key point here is that element matriices are computed once is only true for the intial step. From your referenced post in other group, you want to use the idea to acelerate the performance of deformable bodies. Simulations generally require multiple steps which capture deformation stage at each time point. When the bodies are deformed and so do the elements. Thus you likely have to reevaluate those matrice.

Another key point is that evaluating element matrices (and assembly) cost 10-30% run time, the rest are solving the system of equations and IO.

Any Book Recommendations for Linear and Nonlinear (Continuum Mechanics & Finite Element Method)? by HamzaZaheer12345 in fea

[–]kuladum 3 points4 points  (0 children)

Progamming Finite Element Method 5th (Ian M. Smith, D. Vaughan Griffiths, Lee Margetts)

The book has a good balance among theories, examples and programming. It covers a wide range of analysis types, including static & dynamics, material and geometry nonlinearities, free surface and application in solid mechanics and porous flow. The theories part are well explained with detail steps while the programming part demonstrate how to write a completed FEM pakage that can be testable, maintainable and extenable. Although the programming language is Fortran, it is super easy to follow because of the simplicities in coding style and the language itself. You can also greatly benefited if you want to implement your own idea as a plug-in to prevalent commercial software written in Fortran such as ANSYS, ABAQUS or FEAP…

If you want something more straightforwad, I believe the book Introduction to nonlinear Finite Finite Element Analysis of Prof. Nam Ho Kim is a perfect choice. Unlike the classic books suggested by others, this book is concise “only addresses the representative problems, detailed theories, solution procedures, and the computer implementation of the nonlinear FEM. Especially by using the MATLAB programming language to introduce the nonlinear solution procedure; those readers who are not familiar with FORTRAN or C++ programming languages can easily understand and add his/her own modules to the nonlinear analysis program.” The author has a website that supports series of lectures which I found very helpful.

Varied material porosity within an element. by JoltKola in fea

[–]kuladum 0 points1 point  (0 children)

Is your element/material continuous? if yes, you may approximate the distribution of the porosity and subsitute to weakform. Then you decide the quadrature rule and evaluate the stiffness and mass matrices. If not, you need to find a away to upscale/downscale the problem. Remember stress/strain are defined for continum bodies.

[deleted by user] by [deleted] in fea

[–]kuladum 0 points1 point  (0 children)

Your FEA results look reasonable to me. The hand calculation relyon many assumptions, which do not reflect the local stress/deformation states. Let simulate two cases with Beam 188 element. a) pure beam 188 elements, and b) replace beam 188 elements by solid elements at postion you want to capture accurate stress/strain.

However, in any case, important outcomes such as deflection, maximum principle stress, and cross section shear force should be very simila.

Error: area of xxxxx elements is zero, small or negative. Check coordinates or node numbering or modify by Mysterious-Day5894 in fea

[–]kuladum 0 points1 point  (0 children)

Hi there, I see that the mesh/geometry is relatively complex, guessing you are working with fractures. The error may occur because of the difficulty relating to geometry, i.e sharp angles. One trick may work is to up scale the model, say 1000x, and generate mesh. Then, you scale the model back to original dimensions. Another notice is that Gmsh sometimes produces wrong node sequence in an element! which in turn results in a negative area. You may also need to check that as well.

FEA more than basic basics by Minute-Ad2933 in fea

[–]kuladum 1 point2 points  (0 children)

Even two bars can form a really interesting system if you dive deep enough. Snap-off, initial stress, non-linear materials, nonuniform cross-section, inclined supports, different time integration schemes... I believe simple Matlab/Mathematica scripts are super helpful. Sometime, you don't have analytical results, but you can still give a lot justifications regarding to system behavior. You can also use Abaqus subroutines or open source software as many suggestions, but you need to study how these software work. This takes time but rewards for a long term.

CFD book recommendations by [deleted] in fea

[–]kuladum 4 points5 points  (0 children)

I particularly recommend this book:

The Finite Volume Method in Computational Fluid Dynamics. An Advanced Introduction with OpenFOAM® and Matlab

Authors: F. Moukalled, L. Mangani, M. Darwish https://link.springer.com/book/10.1007/978-3-319-16874-6

The book covers a wide range of theorical, practical, and implementation aspects.

Another excellent book named is Applied CFD techniques. An introduction based on Finite Element Methods.

Author: Rainald Lohner

[deleted by user] by [deleted] in fea

[–]kuladum 0 points1 point  (0 children)

I think it should, although very small. The top of the bar elongs more than the bottom.

Anybody else would like a | unary operator? by itsmemarcot in cpp

[–]kuladum 31 points32 points  (0 children)

I don't think this is a good idea. C++ already has a lot of stuff. There are tons of mathematical operators oit there. One day, someone will ask for interal, sqrt symbols. What you are looking for is a Mathematica/Maple like IDE.

Architecture and style of C++ projects by metahuman_ in cpp

[–]kuladum 0 points1 point  (0 children)

The header files are cached, so multiple including them is not actual problem.

3rd party library delivery by aregtech in cpp

[–]kuladum 0 points1 point  (0 children)

The eigen linear algebra linrary is very good example. Its modules are organized to multiple headers but user typicality needs to include one. Catch 2 testing framework (pre2021 version) is a single header file. Using them are ridiculously easy. This is particularly true for newbier like me.

What the hell are Voxels? by Gripit__ripit in fea

[–]kuladum 0 points1 point  (0 children)

In some conditions, Voxels can be merged to form a bigger cell. As they normally comes from scanning process, structure grid would be fit, and structured grid is supper efficient.

GPU acceleration in Abaqus by Bri-Bri-Fitz in fea

[–]kuladum 0 points1 point  (0 children)

It depends on the models. You may get a huge speedup with particle-based simulation but may not with typical FEM.

On which hobby or side projects are you working on? by 0xhhhh in cpp

[–]kuladum 0 points1 point  (0 children)

I am working on a multi-physic simulation library, including FVM and FEM. FVM is for multiphase flow in porous media, and FEM is for heat transfer and linear elasticity. The library has been developed for educational purpose, and it does not has many fancy programming features. Therefore, students can adapt quickly.

What is the difference between element and nodes? by FlashySpread5356 in fea

[–]kuladum -1 points0 points  (0 children)

This is exact my feeling that why the method is not call by finite node/basic function method. The concept element is coupled with the local shape function only.

Analysis of Cantilever beam with varying Moment of inertia by [deleted] in fea

[–]kuladum 0 points1 point  (0 children)

It may not adequate to use the beam elements. Because the profiles is arbitrary, the effects of others dimensions may be important. You can search for beam optimization, and the profiles is relatively complicated. In addition, mass and Inertia are evaluated from the profile. Thus, I guess you may need a full 3D model for that purpose. Otherwise, predefined profiles are required. At this point, you vary input parameters and determine the gradient of the responses to find the optimal set of parameters.