Quote:
you mean Bcs of sonicFoam case ????? As far as schemes are concerned , i used Minmod perfectly , ,However for rhoCentralFoam im not sure, as it is a completely different ballgame .. |
Quote:
It would be very interesting for me to see your 0/p, 0/U, 0/T files, as well as the system/fvSchemes and maybe also the system/fvSolution dictionary. Perhaps, there is something in, I don't already know. |
Quote:
Code:
type waveTransmissive; Code:
boundaryField Code:
internalField uniform 281; HTML Code:
[CODE]internalField uniform (260.39 0 0); |
Code:
solvers Code:
ddtSchemes |
Thanks Mihir!
However, I am a little bit confused, because you said that you use Minmod for the discretization of the divergent terms and backward for the convective terms. By the way, are you simulating a CD nozzle, as well? |
Quote:
heres for sonicFoam Code:
ddtSchemes |
Okay, thanks. I think I'll try your settings. Let's see what it produce.
By the way: With rhoCentralFoam I noticed that a change of the lInf value (of the waveTransmissive BC) from 0.01, over 0.05, 0.5, 5, 50, 500 and finally 5000 does not have any effect on the result of my simulation. Which is, that the pressure waves are not transmitted across the outlet. Thus, I assume that rhoCentralFoam is (by any reason) not capable to apply the waveTransmissive BC. However, sonicFoam does apply the waveTransmissive BC, and changes of lInf resulted in very different behaviours. Does anyone know, why a certain BC does not work with a certain solver? |
hi at all!
i read all the comments concerning the growing courant nr. problem because mine is the same :) i set up a case with the icoFoam solver to achieve a first solution which i can improve later with other solver that display the reality better. i took the controlDict, fvSchemes and fvSolutions from the "icoFoam cavity tutorial". unfortunately not even this simplified calculation works because after round about 8 to 10 time steps the courant nr. is increased to something over e+100 (well i'd say this is a bit more than 1 :) ) first i tried to decrease the time step to 3.5e-6 and change the writeControl to "adjustableRunTime"... but when looked at the runlogs, the timestep didn't change and remained constant. then i tried to limit the courant number with "maxCo 1", but i read that it doesn't work for "icoFoam", because its a simple solver. is this correct? do you have any idea, what i can do to achieve a solution that doesn't abort? |
hi bephi,
try to use bounded schemes like "upwind" or a TVD-Scheme for the div-schemes. i think the convective terms produce an unbounded solution so you have to limit them. icofoam solves the NS-Eqs. I haven't testet this solver but i tested simplefoam and there its nearly the same problem. Joern |
hi joern!
thanks a lot for the quick reply! so you say I should change this: Code:
ddtSchemes would it be okay when the mean value of the co-nr. is <1 or should the max Co-Nr <1 as well? if also needed, here are my files: p and U starting files: Code:
dimensions [0 2 -2 0 0 0 0]; Code:
application icoFoam; Code:
ddtSchemes Code:
solvers |
the max-conum should not be much larger than 1 because the discretisation of OF ist just semi implicit.
the decoupling in OF causes explicit factors. In my test cases (for my diploma thesis) the solver simplefoam was only stable with maxCoNum<1.5. Try maxCoNum<1. 7 is too much for OF, i think. That would just work with a full implicit solver. Add: If you use "Gauss linear" for all discretisations you get an central that is instable for ALL Delta t. |
Quote:
Best, |
help
hi everyone
I have a new solver for two-phase modeling. but there is a problem while running any case (dam break for instance). when in ControlDict I put the write interval one second the solution diverge quickly but if I put it .05 second the solution converges. I could not understand how the write interval affects the convergence of the system. please help as soon as possible |
Quote:
Best, |
Quote:
Please open a new thread, and provide more information to increase the chances someone can help. Best, |
Quote:
you are right that it doesn't make sense to fix pressure and velocity at the inlet! i changed it but now my max. Co-No is increasing again to around about 7... is this a problem? greets! |
Quote:
@bephi: a maxconum of 7 is now problem as long as your solution is ok ^^ take a look at the results (paraview) if they look physical ok. or try to calculate a bit longer to look if the solver stays stable. have you tried smaller timesteps to see if the maxconum stays smaller? |
hi!
at the moment my problem is the following: i calculated a time step of 3.5e-6 s because my highest velocity is 26.83 m/s² and the smalest element lenght is 0.0001m the fluid needs round about 0.3 to 0.5 s to flow through the model so it would take 100000 steps which is too much in my in opinion.. so i increased the timestep to 0.0003 and after that to 0.00003 but then the co-number increases again until the calculation crashes... i didn't thought that a simple laminar calculation would be so difficult?! :( |
if it takes to many steps, try a coarser mesh.
but if your mesh is too fine you need smaller timesteps, thats normal. are you sure about your max. velocity? i dont know the eigenvalues of the NS-eqs but for the euler-equations the max. velocity isnt just the max. u, its max.(u+c) with the speed of sound c. my tip: try smaller timesteps, you will see if the solver stays stable. btw: how many cells does your testcase have? |
now a calculation with 100 timesteps was successful...i think i'll set up 100 additional steps and look what happens...
when do i know that the solution is converged? my model has 116112 trias, 622697 tetras and 198870 pentas |
All times are GMT -4. The time now is 13:09. |