Comments (7)
Sorry,Written error, I mean backward.
from myfoam.
Well, you have to use more internal iterations then. You should try to find a good compromise between speed and accuracy obtained with higher number of iterations and computational time.
I will try it.
It converged when iteration set to 50, and waveform becomes symmetry which is better than rhoPimpleFoam with same time setting.
from myfoam.
the LU-SGS scheme is not compatible with forwrd ddt (I mean the explicit Euler). It has to be used with an implicit ddt (i.e. Euler or backward). In the case of time-dependent problems the solver uses dual time stepping technique, i.e. it should use more internal iterations. I run your sinwave case wit lusgs + backward ddt with following (sub-optimal) setup inside fvSolution:
LUSGS { internalIterations 10; localTimestepping true; relTol 1.e-3; tolerance 1.e-4; }
Note that I didn't try to "optimize" the number of internal iterations or tolerances. May be that the code will run with fever internal iterations as well.
In any case, the LU-SGS solver aims to implicit time stepping for steady state or quasi-steady problems with large time steps. For the sine wave I would recommend rather the rhoCentralFoam or an explicit dbns solvers.
from myfoam.
Well, you have to use more internal iterations then. You should try to find a good compromise between speed and accuracy obtained with higher number of iterations and computational time.
from myfoam.
Yes, the backward case works now, I have concluded it again.
- for Euler method, LU-SGS solver is effective, 34.11 s vs 142.55s (rhoPimpleFoam). However, 184s vs 153.13 for backward method.
- At the moment, I am still very sceptical about the correctness of the results, even if they are BACKWARD, and for LU-SGS the amplitude of probe signal even increases gradually, which seems unreasonable.
As your suggestion, I will keep on with dbns solver.
Thanks~
from myfoam.
Well, you have to use more internal iterations then. You should try to find a good compromise between speed and accuracy obtained with higher number of iterations and computational time.
I will try it.
from myfoam.
Very good. On the other hand with 50 iterations the LUSGS would be deadly slow. In any case, the explicit dbns (foam extend?) would be better choice for this kind of problems.
from myfoam.
Related Issues (16)
- Bug for create thermal object HOT 6
- How to access density variable in codedFixedValue boundary condition? HOT 3
- Questions about parameter settings of myLusgsFoam HOT 10
- Questions about myLusgsFoam solver for simulating low Mach number flow HOT 5
- Question about mixingPlane boundary condition HOT 16
- Questions about turbine cascade with inlet velocity varing periodically with time HOT 3
- A question about the code. HOT 3
- A question about the implementation of LU-SGS method in OpenFOAM.
- Oscillating NACA0012 in LusgsFoam HOT 2
- Whether the LU-SGS algorithm can be used in the RANS turbulence model? HOT 1
- Questions about the myLusgsFoam solver in compressible flow simulations HOT 6
- a HOT 1
- hypersonicCylinder bug in parallel HOT 4
- How to extend myFoam to MRF case? HOT 2
- LU-SGS for oscillating NACA-0012
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from myfoam.