|
[Sponsors] |
Inflow Boundary Condition - adding a velocity profile |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 28, 2016, 10:26 |
Inflow Boundary Condition - adding a velocity profile
|
#1 |
New Member
cedric ameloot
Join Date: Apr 2016
Posts: 11
Rep Power: 10 |
[Using CONVERGE 2.2.0]
Dear all, I have a little question on importing a velocity profile in the inflow boundary condition section. The file I want to import has the extension of '.dat' and is built as the velocity import section shows, namely: time, first spatial coordinate, second spatial coordinate, third spatial coordinate, velocity where the first line of this file contains their titles 'seconds x y z w' The problem is that CONVERGE shows the following error: 'Wrong file format. Expected 'TEMPORAL', 'SPATIAL' or 'TABULAR' keywords but found 'second, x, y, z, w' I've attached the concerning file in appendix but I uploaded it as a '.txt' file as the forum didn't want to upload it as '.dat'velocity-28-Jun-2016.txt I guess the 'structure' of my file is wrong. I tried to leave my titlle ('seconds x y z w') out but this didn't seem to be the problem. I hope this problem is easily solvable! Thanks for your time, Cedric |
|
June 28, 2016, 11:01 |
|
#2 | |
Senior Member
Tobias
Join Date: May 2016
Location: Germany
Posts: 264
Rep Power: 10 |
If you use it as Input file, why doesnt you name it .in?
And first 3 lines should be e.g. for a 720 °CA cyclic profile: Quote:
TEMPORAL SEQUENTIAL |
||
June 28, 2016, 11:05 |
|
#3 |
New Member
cedric ameloot
Join Date: Apr 2016
Posts: 11
Rep Power: 10 |
Hello,
I solved the mistake. Now it looks as in attachment. velocity-28-Jun-2016.txt I had to specify some other things. And indeed I now used '.in' Thanks, Cedric |
|
June 28, 2016, 12:00 |
|
#4 |
New Member
cedric ameloot
Join Date: Apr 2016
Posts: 11
Rep Power: 10 |
Hello all,
When running the calculation, CONVERGE gives me this error: file name velocity-28-Jun-2016.in given for velocity boundary condition reading velocity-28-Jun-2016.in data from file velocity-28-Jun-2016.in error: not enough heading in file velocity-28-Jun-2016.in expected: V Where velocity-28-Jun-2016.in is the name of my velocity profile I've looked to be sure that the file has a consistent spacing. This doesn't seem to be the problem. So I can't find the solution to it. Thanks, Cedric |
|
June 29, 2016, 10:01 |
|
#5 |
Member
Allie Le Moine
Join Date: Jan 2016
Location: Convergent Science, Madison WI
Posts: 39
Rep Power: 10 |
Hi Cedric,
This question has also been answered under the "Conjugate Heat Transfer" thread. The proper format for a spatially varying velocity boundary conditions is: SPATIAL 1.0 scale_xyz 0.0 trans_x 0.0 trans_y 0.0 trans_z x rot_axis 0.0 rot_angle 0.0 second x y z u v w 0.008 0.008 0.100 0.0 0.0 1.0 0.008 0.008 0.100 0.0 0.0 1.0 |
|
June 29, 2016, 10:38 |
|
#6 |
New Member
cedric ameloot
Join Date: Apr 2016
Posts: 11
Rep Power: 10 |
Hello Allie,
OK,thank you for your reply. CONVERGE gave me another error after this issue. It says that I have to change the steady_solver in inputs.in to another type. Initially I set it on steady_solver = 1 ( steady pressure based). CONVERGE tells me to change it to 2 or 3 ( resp. steady density-based, steady density-based on local cell time-steps). I changed it to steady_solver =2 and it worked, but I don't really understand why my velocity profile can't be used with the steady pressure based solver? Would this imply a physical contradiction ? Thanks for your time, Cedric |
|
June 29, 2016, 16:40 |
|
#7 |
Member
Allie Le Moine
Join Date: Jan 2016
Location: Convergent Science, Madison WI
Posts: 39
Rep Power: 10 |
Cedric,
Currently the option to set a spatially-varying velocity inlet profile is limited to our density-based steady state solvers (steady_solver 2 and 3) and has not been enabled for the pressure-based solver. Therefore, if you need to set this type of inlet profile, you will need to use one of the density based solvers. |
|
June 30, 2016, 05:27 |
|
#8 |
New Member
cedric ameloot
Join Date: Apr 2016
Posts: 11
Rep Power: 10 |
Hello Allie,
Thank you very much for your reply. Now I created a velocity profile in the required format and chose steady_solver = 2. CONVERGE gives me following error: Something is wrong in function get_temp_from_table_massfrac: upper_energy_value must be greater than lower_energy_value! upper_energy_value is nan, and lower_energy_value is nan . Where do I have to look to find the error ? What could it possibly be ? Cedric |
|
June 30, 2016, 09:52 |
|
#9 |
Member
Allie Le Moine
Join Date: Jan 2016
Location: Convergent Science, Madison WI
Posts: 39
Rep Power: 10 |
Hi Cedric,
This error message is an indication that an equation is not converging however with little information provided, it is difficult to determine why. The following information would be very helpful in trying to diagnosing the error:
|
|
July 1, 2016, 07:09 |
|
#10 |
New Member
cedric ameloot
Join Date: Apr 2016
Posts: 11
Rep Power: 10 |
Hello Allie,
Yes of course, I didn't know how much info I have to specify to give a minimal working example. So I will detail the case now. If this is too detailed, let me know and I will make it more concise.
Is there is any problem with the way I posted this message, please let me know. Thank you for all your help! Cedric |
|
December 12, 2017, 16:58 |
time-dependent boundary condition
|
#11 |
New Member
martia
Join Date: Oct 2016
Posts: 3
Rep Power: 9 |
I want to set up a time-dependent velocity boundary condition as below:
t < 0.002 : V = 100 t > 0.002 : V = 0 Actually, the injection should stop at 2 ms. I tried to use file in velocity boundary condition and made this unsteady.in file: TEMPORAL SEQUENTIAL second velocity 0.00000 100.0 0.00200 100.0 0.00201 0.0 0.00600 0.0 However, it does not work, and I get this error: [velocity_file] -> unsteady.in. Wrong file format. Expected: 'second', but found 'second velocity'. Anyone can help me on this? |
|
December 12, 2017, 17:47 |
|
#12 |
Member
Tristan Burton
Join Date: Sep 2017
Posts: 92
Rep Power: 8 |
Martia,
CONVERGE is expecting the three components of the velocity in your file: TEMPORAL SEQUENTIAL second u v w 1.0 8.0 0.0 0.0 2.0 12.0 0.0 0.0 3.0 8.0 0.0 0.0 Best regards, Tristan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Time dependant pressure boundary condition | yosuke1984 | OpenFOAM Verification & Validation | 3 | May 6, 2015 06:16 |
Low Mixing time Problem | Mavier | CFX | 5 | April 29, 2013 00:00 |
Velocity profile boundary condition | Tuca | FLOW-3D | 1 | April 23, 2013 12:02 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 04:05 |
Profile Data Velocity Boundary Condition Changes?? | Maria Angelica | CFX | 9 | June 14, 2006 02:44 |