|
[Sponsors] |
November 19, 2021, 14:36 |
|
#41 | |
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
Again, my trials went unsuccessful. Even the total pressure of crossflow is around 75-80 kPa and jet total pressure has 100 kPa as above, the solver insists to blow. Should I make a denser mesh around the orifice? I can not think another thing to consider. Best, Malkocoglu |
||
November 19, 2021, 14:52 |
|
#42 |
Senior Member
Join Date: Dec 2019
Posts: 215
Rep Power: 8 |
Have you tried my suggested BCs? I still do not trust this freeStream BC. Obviously just because I do not know it, but still.
I dont think its about solver tolerance or mesh density. |
|
November 19, 2021, 15:16 |
|
#43 | |
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
As you can see, my BCs are appropriate to yours. My simulation blows at t = 4e-7 s (dt = 1e-8 s). |
||
November 22, 2021, 04:33 |
|
#44 |
Senior Member
Join Date: Dec 2019
Posts: 215
Rep Power: 8 |
Hmm with the same kind of artefact at the inlet of the jet?
Are your thermal properties in terms of units etc. ok? |
|
November 22, 2021, 05:57 |
|
#45 | |
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
In respect to thermal properties, the unit is K, you may see the "dimensions" of T file as "dimensions [0 0 0 1 0 0 0];". If you are asking of convenience of the T values; 104.78 K corresponds to static temperatrure with total temperature of 300 K with freestream Moo = 2.95. On the other hand, jet Mj ~ 0.99-1.0 and total temperature was 300 K. After that my trial failed, I turned back to uniformFixedValue for pressure, temperature, velocity etc. and I initialized the crossflow domain with Moo = 1.5 instead of Moo = 2.95. My aim by doing this was to initialize crossflow and jet domains with nearly same temperature, pressure, k, omega etc. Consequently, I was able to sustain the simulations up to 1.5 x 10^-3 seconds until I deliberately interrupted it (my injector was straight pipe and I wanted to include converging nozzle; however, simulation with it failed). Now, I set;
I do not know if my simulation with these settings will reach my target simulation time, t = 0.01 seconds (at that time, my total temperature, pressure etc. will reach the original simulation conditions). I wrote them in detail, because I want to create kind of checkpoint and everyone with same problem to see it clearly. Best, Malkocoglu |
||
November 22, 2021, 07:55 |
|
#46 |
Senior Member
Join Date: Dec 2019
Posts: 215
Rep Power: 8 |
I was speaking about your viscosity and your entries in the thermo dict. Sometimes there is some misunderstanding because some units are in kmol e.g. instead of mol. I dont know how you model visosity. Do you use the sutherland law or do you assume a constant value?
What is the reason the simulation crashes? I think it is a good sign, that no weird artefact developed so far because I would expect it to be there more or less immidiatly. |
|
November 22, 2021, 11:17 |
|
#47 | ||
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
My constant/thermophysicalProperties is like: Code:
/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: dev \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object thermophysicalProperties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // thermoType { type hePsiThermo; mixture pureMixture; transport sutherland; thermo hConst; equationOfState perfectGas; specie specie; energy sensibleInternalEnergy; } mixture { specie { molWeight 28.96; } thermodynamics { Cp 1004.5; Hf 0; } transport { As 1.457932655e-06; Ts 110.4; Pr 0.72; } } Quote:
|
|||
November 23, 2021, 08:18 |
|
#48 | ||
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
Quote:
At this point, I am really suspicious about my mesh. I attached them mesh detail around injector region, please see them also. Hovever, my checkMesh -allTopolog -allGeometry yields: Code:
checkMesh -allTopology -allGeometry /*---------------------------------------------------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: dev \\/ M anipulation | \*---------------------------------------------------------------------------*/ Build : dev-6054ea53b9ab Exec : checkMesh -allTopology -allGeometry Date : Nov 23 2021 Time : 15:04:43 Host : "CM" PID : 2208968 I/O : uncollated Case : /home/uem/ProgramFiles/OpenFOAM/OpenFOAM-run/CFD_Validation nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10) allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create polyMesh for time = 0 Enabling all (cell, face, edge, point) topology checks. Enabling all geometry checks. Time = 0 Mesh stats points: 370120 faces: 1106139 internal faces: 1069683 cells: 367990 faces per cell: 5.91272 boundary patches: 9 point zones: 0 face zones: 0 cell zones: 0 Overall number of cells of each type: hexahedra: 335872 prisms: 32118 wedges: 0 pyramids: 0 tet wedges: 0 tetrahedra: 0 polyhedra: 0 Checking topology... Boundary definition OK. Cell to face addressing OK. Point usage OK. Upper triangular ordering OK. Face vertices OK. Topological cell zip-up check OK. Face-face connectivity OK. Number of regions: 1 (OK). Checking patch topology for multiply connected surfaces... Patch Faces Points Surface topology Bounding box bottom_wall 8566 8573 ok (non-closed singly connected) (-0.06 -5.15875e-06 -7.78139e-08) (0.1 0.0449948 4.47312e-15) far_sides 6560 6762 ok (non-closed singly connected) (-0.0615 0.0449948 4.43475e-15) (0.1 0.0449948 0.06) far_top 8840 8735 ok (non-closed singly connected) (-0.0615 -5.15875e-06 0.0599999) (0.1 0.0449948 0.06) inlet 2132 2226 ok (non-closed singly connected) (-0.0615 -5.15359e-06 4.43475e-15) (-0.0615 0.0449948 0.06) jet_exit 222 130 ok (non-closed singly connected) (-0.001 -5.15875e-06 -0.005) (0.001 0.000994846 -0.005) nozzle 500 546 ok (non-closed singly connected) (-0.001 -5.15875e-06 -0.005) (0.001 0.000994846 4.47312e-15) outlet 2132 2226 ok (non-closed singly connected) (0.1 -5.15359e-06 4.43475e-15) (0.1 0.0449948 0.06) slip_wall 52 106 ok (non-closed singly connected) (-0.0615 -5.15359e-06 4.43475e-15) (-0.06 0.0449948 4.43475e-15) symmetry_plane 7452 7691 ok (non-closed singly connected) (-0.0615 -5.15875e-06 -0.005) (0.1 -5.15359e-06 0.06) Checking geometry... Overall domain bounding box (-0.0615 -5.15875e-06 -0.005) (0.1 0.0449948 0.06) Mesh has 3 geometric (non-empty/wedge) directions (1 1 1) Mesh has 3 solution (non-empty) directions (1 1 1) Boundary openness (1.21414e-16 2.23015e-15 9.20016e-16) OK. Max cell openness = 3.1416e-16 OK. Max aspect ratio = 108.212 OK. Minimum face area = 3.13807e-09. Maximum face area = 4.66771e-06. Face area magnitudes OK. Min volume = 6.27614e-13. Max volume = 7.00155e-09. Total volume = 0.000436057. Cell volumes OK. Mesh non-orthogonality Max: 38.8547 average: 1.18007 Non-orthogonality check OK. Face pyramids OK. Max skewness = 0.426527 OK. Coupled point location match (average 0) OK. Face tets OK. Min/max edge length = 7.28894e-05 0.003 OK. All angles in faces OK. Face flatness (1 = flat, 0 = butterfly) : min = 1 average = 1 All face flatness OK. Cell determinant (wellposedness) : minimum: 0.00111822 average: 3.57029 Cell determinant check OK. Concave cell check OK. Face interpolation weight : minimum: 0.224693 average: 0.487509 Face interpolation weight check OK. Face volume ratio : minimum: 0.217358 average: 0.952848 Face volume ratio check OK. Mesh OK. End I do not have any idea what to do, I am really out of the options. Best, Malkocoglu |
|||
November 25, 2021, 05:04 |
|
#49 | |
Senior Member
Join Date: Dec 2019
Posts: 215
Rep Power: 8 |
Quote:
Then you should set the output interval in a manner, that you actually see something. The error is due to negative temperature/energy. This can happen when BCs are wrong or you have heavy numerical oscillations. You should check what is the reason for that. For your second reply: Try a "simple simulation" first. All walls are slip, no turbulence model. That way you reduce the amount of error sources and it is easier to find the real error. What was the reason your simulation blew up btw? |
||
November 25, 2021, 07:11 |
|
#50 | |
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
"Negative initial temperature T0 = ..." But %99 of my error messages is like below: Code:
#0 Foam::error::printStack(Foam::Ostream&) at ??:? [16] #1 Foam::sigFpe::sigHandler(int) at ??:? [16] #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" [16] #3 Foam::hePsiThermo<Foam::psiThermo::composite, Foam::pureMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > > >::calculate() at ??:? [16] #4 Foam::hePsiThermo<Foam::psiThermo::composite, Foam::pureMixture<Foam::sutherlandTransport<Foam::species::thermo<Foam::hConstThermo<Foam::perfectGas<Foam::specie> >, Foam::sensibleInternalEnergy> > > >::correct() at ??:? [16] #5 ? in "/home/uem/ProgramFiles/OpenFOAM/dev/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/bin/rhoCentralFoam" [16] #6 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" [16] #7 ? in "/home/uem/ProgramFiles/OpenFOAM/dev/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/bin/rhoCentralFoam" [CM:1217030] *** Process received signal *** [CM:1217030] Signal: Floating point exception (8) [CM:1217030] Signal code: (-6) [CM:1217030] Failing at address: 0x3e800129206 [CM:1217030] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f7f002aa210] [CM:1217030] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)[0x7f7f002aa18b] [CM:1217030] [ 2] /lib/x86_64-linux-gnu/libc.so.6(+0x46210)[0x7f7f002aa210] [CM:1217030] [ 3] /home/uem/ProgramFiles/OpenFOAM/dev/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/lib/libfluidThermophysicalModels.so(_ZN4Foam11hePsiThermoINS_9psiThermo9compositeENS_11pureMixtureINS_19sutherlandTransportINS_7species6thermoINS_12hConstThermoINS_10perfectGasINS_6specieEEEEENS_22sensibleInternalEnergyEEEEEEEE9calculateEv+0x273)[0x7f7f02612fe3] [CM:1217030] [ 4] /home/uem/ProgramFiles/OpenFOAM/dev/OpenFOAM-dev/platforms/linux64GccDPInt64Opt/lib/libfluidThermophysicalModels.so(_ZN4Foam11hePsiThermoINS_9psiThermo9compositeENS_11pureMixtureINS_19sutherlandTransportINS_7species6thermoINS_12hConstThermoINS_10perfectGasINS_6specieEEEEENS_22sensibleInternalEnergyEEEEEEEE7correctEv+0x2e)[0x7f7f0263c16e] [CM:1217030] [ 5] rhoCentralFoam(+0x385ec)[0x556019c9f5ec] [CM:1217030] [ 6] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f7f0028b0b3] [CM:1217030] [ 7] rhoCentralFoam(+0x3aa5e)[0x556019ca1a5e] [CM:1217030] *** End of error message *** -------------------------------------------------------------------------- Primary job terminated normally, but 1 process returned a non-zero exit code. Per user-direction, the job has been aborted. -------------------------------------------------------------------------- -------------------------------------------------------------------------- mpirun noticed that process rank 16 with PID 0 on node CM exited on signal 8 (Floating point exception). Code:
For your second reply: Try a "simple simulation" first. All walls are slip, no turbulence model. That way you reduce the amount of error sources and it is easier to find the real error. What was the reason your simulation blew up btw?[/QUOTE] Best, Malkocoglu |
||
November 25, 2021, 12:30 |
|
#51 |
Senior Member
Join Date: Dec 2019
Posts: 215
Rep Power: 8 |
That error may appear because of a division by 0. I still think its due to negative temperature. Try to increase your temperature and see if it works in this dummy case. If it does, you know that the BCs are alright so far and this is the problem. I can help you with the negative temperature problem too I think.
|
|
November 25, 2021, 15:00 |
|
#52 | |
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
Thank you so much for your interest over days. Please continue to stay here for more days, . Best, Malkocoglu |
||
November 26, 2021, 01:54 |
|
#53 | |
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
As you suggested I have to increase temperature at this stage. However, all the calculations will change related to Mach number etc. Anyway, I have to try. Thank you @shock77. Best, Malkocoglu |
||
November 26, 2021, 05:58 |
|
#54 |
Senior Member
Join Date: Dec 2019
Posts: 215
Rep Power: 8 |
Your temperature is quite low to begin with. That's why I assumed that this might be a problem. Also the sutherland law might not be appropriate for air at low temperature. You should also check that otherwise you might get problems due to a wrong viscosity.
Still, there is that weird artefact at the inlet. This issue still needs to be solved first. Maybe if you upload a dummy case with a coarse mesh I can look into it on the weekend and try something. |
|
December 1, 2021, 06:22 |
|
#55 | ||
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
Anyway, maybe I have to give higher temperature for the jet; but then, jet velocity will be different due to Mach number and it will change momentum-flux ratio etc. Do you think that increasing temperature does not violate original physics? Sudden acceleration up to Mach 3.5-4 after jet exit downstream (Screenshot from 2021-11-26 08-48-36.jpg on Friday) causes this amount of temperature decrement I guess. I can not understand why flow gets accelerated that much. Quote:
Regards, Malkocoglu |
|||
December 2, 2021, 06:13 |
|
#56 |
Senior Member
Join Date: Dec 2019
Posts: 215
Rep Power: 8 |
No worries.
Well you have an underexpanded jet, high Ma is not untypicall there. Yes it will affect your physics, but this is just to see whether that's the only problem. Cant you upload in here or is it too big? |
|
December 3, 2021, 09:24 |
|
#57 | ||
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
Quote:
I hope that you will be here in the next week. Thank you, Malkocoglu |
|||
December 7, 2021, 03:52 |
|
#58 | |
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
Finally, I am able to upload my case to Dropbox, so you can have a look on that: https://www.dropbox.com/sh/31xwgtiw7...bfyd0m4ua?dl=0 I have tried so many combinations in the files; therefore, you will probably be confused about the entries. Please ask anything that comes weird or wrong to you. Best, Malkocoglu |
||
December 9, 2021, 10:54 |
|
#59 |
Senior Member
Join Date: Dec 2019
Posts: 215
Rep Power: 8 |
Hi,
so I did mange to get the case working. Actually I basically included all the changes I suggest and it worked- I think you have another version of openfoam, because I dont know all of those inputs that you made. I have added an image of the flow and the case without the mesh to this replay. I use openfoam4.1. Your boundary conditions didnt make sense sometimes, so I changed them. See yourself, I dont wanna go into to much detail here. I also increased the total pressure at the inlet to achieve an underexpanded jet since your internalfield total pressure was about 6 kPa and at your inlet 10 kPa, so that no supersonic inlet would be achieved. Thats why I increased it to 24 kpA. Just adjust the values to your case. Two important things: 1. The mesh quality is bad. You want your cells to be equal in all 3 dimensions. I think you should work on that. 2. Explicit solvers like rhoCentralFoam require a low Co-number. I have added a fixed Co numer of 0.2. You may play with this number up to 0.5. |
|
December 10, 2021, 04:32 |
|
#60 | ||
Member
Utkun Malkocoglu
Join Date: Feb 2017
Posts: 36
Rep Power: 9 |
Quote:
Quote:
I tried to run the case on my mesh with the BCs that you gave ("laminar" selected in constant/momentumTransport; so there are only p, T and U). However, simulation failed again in t = 3e-5 s with the error below: Code:
#0 Foam::error::printStack(Foam::Ostream&)[9] #0 Foam::error::printStack(Foam::Ostream&)[10] #0 Foam::error::printStack(Foam::Ostream&)[11] #0 Foam::error::printStack(Foam::Ostream&)[12] #0 Foam::error::printStack(Foam::Ostream&)[13] #0 Foam::error::printStack(Foam::Ostream&)[14] #0 Foam::error::printStack(Foam::Ostream&)[15] #0 Foam::error::printStack(Foam::Ostream&)[0] #0 Foam::error::printStack(Foam::Ostream&)[1] #0 Foam::error::printStack(Foam::Ostream&)[2] #0 Foam::error::printStack(Foam::Ostream&)[3] #0 Foam::error::printStack(Foam::Ostream&)[4] #0 Foam::error::printStack(Foam::Ostream&)[5] #0 Foam::error::printStack(Foam::Ostream&)[6] #0 Foam::error::printStack(Foam::Ostream&)[7] #0 Foam::error::printStack(Foam::Ostream&) at ??:? at ??:? at ??:? at ??:? at ??:? [14] #1 Foam::sigFpe::sigHandler(int)[12] #1 Foam::sigFpe::sigHandler(int) at ??:? [1] #1 Foam::sigFpe::sigHandler(int)[11] #1 Foam::sigFpe::sigHandler(int)[5] #1 Foam::sigFpe::sigHandler(int)[15] #1 Foam::sigFpe::sigHandler(int) at ??:? at ??:? [4] #1 [2] #1 Foam::sigFpe::sigHandler(int)Foam::sigFpe::sigHandler(int) at ??:? at ??:? at ??:? at ??:? at ??:? at ??:? [8] #1 at ??:? Foam::sigFpe::sigHandler(int)[13] #1 [9] #1 Foam::sigFpe::sigHandler(int) at ??:? Foam::sigFpe::sigHandler(int)[10] #1 Foam::sigFpe::sigHandler(int)[3] #1 Foam::sigFpe::sigHandler(int)[0] #1 Foam::sigFpe::sigHandler(int)[7] #1 Foam::sigFpe::sigHandler(int)[6] #1 Foam::sigFpe::sigHandler(int) at ??:? [15] #2 ? at ??:? [14] #2 ? at ??:? [11] #2 ? at ??:? [12] #2 ? at ??:? [1] #2 ? at ??:? [5] #2 ? at ??:? [2] #2 ? at ??:? [4] #2 ? in "/lib/x86_64-linux-gnu/libc.so.6" in "/lib/x86_64-linux-gnu/libc.so.6" in "/lib/x86_64-linux-gnu/libc.so.6" 1 - My OpenFOAM version (OpenFOAM-dev) creates the trouble indeed for months 2- I could not see setFieldsDict in the /system folder that you included. I used setFiellds to make velocity zero in injector domain initially. When setFields command is not applied, flow will go through perpendicularly to the injector walls; because velocity field and all other fields are given uniform in whole internalField (injector + crossflow). So, it may be other cause for the failure. |
|||
Tags |
rhocentralfoam, totalpressure |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
totalPressure (why flux direction dependend) | Tobi | OpenFOAM Running, Solving & CFD | 3 | October 17, 2019 23:27 |
Need info about totalPressure boundary condition | sahmed | OpenFOAM Running, Solving & CFD | 4 | December 4, 2018 22:23 |
About the totalPressure BC | fmerk | OpenFOAM Running, Solving & CFD | 1 | September 25, 2017 18:53 |
totalPressure boundary :Performance Curve (constant RPM) | nash | OpenFOAM Running, Solving & CFD | 0 | September 6, 2013 12:34 |
Totalpressure Ansys | Leuchte | CFX | 2 | April 9, 2013 19:56 |