Hello, Yvan, I move my previous post here as sugested by you. I attached the setup programmes. My mesh is msh and it can't be uploaded to the forum apparently. It is a structured uniform 1000 hexa elements mesh along 10 mm in x. In the BC programme uploaded, concetration is set at 1e3. If you change that value to 1, you will find that the solver stops as if it had reached stationnary, far too soon.
I was making some test because I want to perform some calculations of mixing in small channels and I found the following result:
Imagine a unidimensional diffusion problem say a structured mesh on x direction of 10 mm, with 1000 elements. On one end I set a dirichlet condition for my salar, and at the other end I set homogeneus Neuman. Velocity field is frozen at 0.
I set the diffusion coefficient at 5e(-10)*rho (with rho=998 kg/m3).
If I set the boundary condition with a scalar value of 1 (a concetration of 1/kg) the calculation stops way before the concentration spreads along x.
If I set the boundary condition with a scalar value of 1e3 (a concetration of 1e3/kg) the calculation reaches steady state OK.
If I set the boundary condition with a scalar value of 1e6 (a concetration of 1e6/kg) the calculation reaches steady state OK.
If I plot the concentration profile divided by the scalar value imposed (1e3 and 1e6 respectively, both profiles are superimposed at all time steps. The profile for a scalar value of 1, is also superimposed with the other two but only for the first time steps and then it frozes while the other two continue diffusing properly.
I guess there is probably a code variable that tells the code that steady state has been reached and it stops calculating but I don't know which is that variable, which is its default value etc.
Could you please help me with this issue?
Thanks
unsteady scalar diffusion stopping before steady state
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
-
- Posts: 9
- Joined: Tue Aug 05, 2014 2:56 pm
unsteady scalar diffusion stopping before steady state
- Attachments
-
- cs_user_postprocess.c
- (24.3 KiB) Downloaded 269 times
-
- cs_user_parameters.f90
- (91.55 KiB) Downloaded 255 times
-
- cs_user_boundary_conditions.f90
- (22.24 KiB) Downloaded 218 times
-
- Posts: 4208
- Joined: Mon Feb 20, 2012 3:25 pm
Re: unsteady scalar diffusion stopping before steady state
Hello,
The simplest solution for me to check this would be to run a small test case, but I do not have any version 3.0 setup anymore (as version 3.0 has not been maintained since 5.0 was released over year ago, and I am already too busy supporting the current versions).
Did you test this on version 5.0 (or 5.1 or 5.2 ?). If you have a test case for a current version I could run it in case the issue still exists.
Best regards,
Yvan
The simplest solution for me to check this would be to run a small test case, but I do not have any version 3.0 setup anymore (as version 3.0 has not been maintained since 5.0 was released over year ago, and I am already too busy supporting the current versions).
Did you test this on version 5.0 (or 5.1 or 5.2 ?). If you have a test case for a current version I could run it in case the issue still exists.
Best regards,
Yvan
-
- Posts: 9
- Joined: Tue Aug 05, 2014 2:56 pm
Re: unsteady scalar diffusion stopping before steady state
Thanks Yvan, I will do that and keep update the post later