CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Varying the velocity by each time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 8, 2024, 21:21
Default Varying the velocity by each time
  #1
New Member
 
Chandra Napitupulu
Join Date: Nov 2023
Posts: 9
Rep Power: 3
chandrana70 is on a distinguished road
I had created the velocity from 1 knot to 12 knot (so it will write the folder of parameter form t=0 to t=11) by type timeVaryingMappedFixedValue;
but it gives me an error message

HTML Code:
inlet
{
    type            timeVaryingMappedFixedValue;
    value           uniform (0 0 0);  // Default velocity value (optional)
    table           
    (
            (0.0 (-0.514444 0 0))   // At time = 0, velocity is -1 knot (-0.514444 m/s)
    (1.0 (-1.028888 0 0))   // At time = 1, velocity is -2 knots (-1.028888 m/s)
    (2.0 (-1.543333 0 0))   // At time = 2, velocity is -3 knots (-1.543333 m/s)
    (3.0 (-2.057777 0 0))   // At time = 3, velocity is -4 knots (-2.057777 m/s)
    (4.0 (-2.572222 0 0))   // At time = 4, velocity is -5 knots (-2.572222 m/s)
    (5.0 (-3.086666 0 0))   // At time = 5, velocity is -6 knots (-3.086666 m/s)
    (6.0 (-3.601111 0 0))   // At time = 6, velocity is -7 knots (-3.601111 m/s)
    (7.0 (-4.115555 0 0))   // At time = 7, velocity is -8 knots (-4.115555 m/s)
    (8.0 (-4.630000 0 0))   // At time = 8, velocity is -9 knots (-4.630000 m/s)
    (9.0 (-5.144444 0 0))   // At time = 9, velocity is -10 knots (-5.144444 m/s)
    (10.0 (-5.658888 0 0))  // At time = 10, velocity is -11 knots (-5.658888 m/s)
    (11.0 (-6.173333 0 0))  // At time = 11, velocity is -12 knots (-6.173333 m/s)
    (12.0 (-6.687777 0 0))  // At time = 12, velocity is -13 knots (-6.687777 m/s)
    (13.0 (-7.202222 0 0))  // At time = 13, velocity is -14 knots (-7.202222 m/s)
    (14.0 (-7.716666 0 0))  // At time = 14, velocity is -15 knots (-7.716666 m/s)
    );
}
Attached Images
File Type: png Screenshot 2024-12-09 082017.png (10.3 KB, 1 views)
chandrana70 is offline   Reply With Quote

Old   December 8, 2024, 22:15
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
you are using the wrong BC type


use fixedValue or uniformFixedValue and supply the table


timeVaryingMappedFixedValue "Maps" data from a table onto a patch, in space and space&time. Since you are not mapping onto a patch, it is the wrong BC.
LuckyTran is offline   Reply With Quote

Old   December 8, 2024, 22:40
Default
  #3
New Member
 
Chandra Napitupulu
Join Date: Nov 2023
Posts: 9
Rep Power: 3
chandrana70 is on a distinguished road
Pardon, I have already rewrited the type of BC. but i'm just doubt for the outlet BC, because, it set into outletPhaseMeanVelocity, but unfortunately, i don't know how to set the scalar of "Umean"?

Example

If the interval time write at t=1, U value= (-0.514 0 0) at inlet and Umean and U value are 0.514 and (-0.514 0 0 0).
If the interval time write at t=2, U value= (-1.028 0 0) at inlet and Umean and U value are 1.028 and (-1.028 0 0 0).
And so on

Sorry for confused interpretation
chandrana70 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[General] Extracting ParaView Data into Python Arrays Jeffzda ParaView 30 November 6, 2023 22:00
[solidMechanics] Support thread for "Solid Mechanics Solvers added to OpenFOAM Extend" bigphil OpenFOAM CC Toolkits for Fluid-Structure Interaction 686 December 22, 2022 10:10
pimpleDyMFoam computation randomly stops babapeti OpenFOAM Running, Solving & CFD 5 January 24, 2018 06:28
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 23:40


All times are GMT -4. The time now is 07:37.