CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Time dependent internalField transient external flow of a motorcycle

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2023, 10:39
Default Time dependent internalField transient external flow of a motorcycle
  #1
New Member
 
Join Date: Aug 2022
Posts: 3
Rep Power: 4
JamesR is on a distinguished road
Hello,

I am trying to conduct a transient simulation of a external flow over a motorcycle with rotating wheels accelerating constantly from rest to 30 m/s over a period of 7 seconds. I am using overset meshing and I have managed to set the ground and inlet boundaries to time dependent velocities using a uniformFixedValue table of timesteps and corresponding vectors. I have tried to move the internal domain with the inlet and lowerWall boundaries with an expression for the internalField:

internalField uniform #eval "(30/7*time())*vector(0,1,0)";

Upon execution of decomposePar, no errors or warnings are given but looking at the individual processor/0 directories it reverts the internalField back to uniform (0 0 0).

I then altered the processor directories to contain the expression and ran the simulation for a few time steps and it is again set back to uniform (0 0 0). Is there a way to give the internalField some sort of time depency with a function or a table/dataFile.

Currently the domain has zero velocity internally and only the cells close to the ground and inlet and moving wheels have the desired velocity at the corresponding time step which is not an accurate representation of a motorcycle moving through fluid.

I have done this easily at steady state as one can just set the internalField to a uniform vector of the velocity.

Thank you for any help!
JamesR is offline   Reply With Quote

Old   October 24, 2023, 18:25
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Using expressions, tables or whatever to change your internalField dependent on time sounds really problematic - I think you need to rethink what you are doing. If you change the internalField during the calculation, it will usually become decoupled from your boundary fields. This is what the correctBoundaryConditions() partly helps with.


If you are doing this type of advanced manipulation (and you know what you are doing), I think that a coded functionObject or some other type of user coding is what you will need.
olesen 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
unable to run dynamic mesh(6dof) and wave UDF shedo Fluent UDF and Scheme Programming 0 July 1, 2022 18:22
[Other] Contribution a new utility: refine wall layer mesh based on yPlus field lakeat OpenFOAM Community Contributions 58 December 23, 2021 03:36
same geometry,structured and unstructured mesh,different behaviour. sharonyue OpenFOAM Running, Solving & CFD 13 January 2, 2013 23:40
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 06:24
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 22:31


All times are GMT -4. The time now is 06:49.