ucns3d-team / UCNS3D

Unstructured Compressible Navier Stokes 3D code (UCNS3D)
https://ucns3d.com
GNU General Public License v3.0
238 stars 87 forks source link

Solution diverges on the first time step with an extremely large time step. #49

Open sidkamat opened 1 year ago

sidkamat commented 1 year ago

Hi. I am running a multispecies problem but the solution ends within 3 seconds and the first time step in history.txt is extremely large. This is happening only for the multispecies problems. I tried refining my mesh and reducing my CFL number but the result is the same. I have attached my UCNS3D.DAT, MULTISPECIES.DAT, and history.txt files. Please let me know if I am setting up the problem incorrectly. history.txt MULTISPECIES.txt UCNS3D.txt

TakisCFD commented 1 year ago

pressure specified in UCSN3D.dat is zero (will not work with this value)-you must specify here the static pressure

sidkamat commented 1 year ago

Hi. I tried doing what you said and it is having the same issue. I even tried using a pressure inlet boundary condition but it is having the same effect. Can you tell me what I am doing wrong?

TakisCFD commented 1 year ago

the pressure specified at the UCNS3D.DAT is the static pressure. Check the examples provided in the test directory, look for the MULTISPECIES.DAT, the profile.f90 with the corresponding initial condition profile and the inflow_2d function to better understand what you need to specify

sidkamat commented 1 year ago

I have a simple liquid injection in a quiescent environment problem. Is it advisable to write a custom initial conditions profile or can the default initial condition profile handle this?

TakisCFD commented 1 year ago

you should create a custom initial conditions profile