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

How to "restart" sliding mesh simulation from MRF result? (Confusion on boundaries)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2024, 05:53
Default How to "restart" sliding mesh simulation from MRF result? (Confusion on boundaries)
  #1
New Member
 
Niall O'Neill
Join Date: Feb 2023
Posts: 21
Rep Power: 3
nialloneill is on a distinguished road
Hello,

I am using OFv10 for a turbine simulation. I have a question about how I could go about running a sliding mesh simulation, from the results of a MRF simulation, just to skip over the initial transient part. Initially I tried to just copy the last time file over and start from the "latestTime" in the controlDict, but this gave me an issue.

Then I realized that the boundary condition for velocity would change from "fixedValue" to "movingWallVelocity" on the blade. My question is, how would I change this boundary condition before starting the sliding mesh simulation?

The only place that i can see boundary condition definitions is in the 0 time file, but If I re-start from 1000 (for example, if my MRF case converged within 1000 iterations), would openFOAM even recognize a change in the "0" file?

I suppose essentially this is just confusion about how the actual boundary conditions themselves are initialized. I find it hard to get a good explanation of this online.

Thanks
nialloneill is offline   Reply With Quote

Old   January 31, 2024, 04:51
Default
  #2
Senior Member
 
Tom Fahner
Join Date: Mar 2009
Location: Breda, Netherlands
Posts: 646
Rep Power: 32
tomf will become famous soon enoughtomf will become famous soon enough
Send a message via MSN to tomf Send a message via Skype™ to tomf
Hi,

For these kind of operations I would suggest to look into changeDictionary.

There are some tutorials that use this. Basically it allows you to change any dictionary within a file. It uses a changeDictionaryDict where you can specify what change you want to occur.

Use
Code:
find $FOAM_TUTORIALS -iname *changeDictionaryDict*
to find some examples.

Then copy one of those changeDictionaryDicts to your case folder, adapt as necessary and run:

Code:
changeDictionary -time 1000
This can also run in parallel.

Regards,
Tom
tomf 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
flow over cylinder in openFoam saeed jamshidi OpenFOAM Pre-Processing 3 August 11, 2023 15:16
Use of the result from the coarser mesh as the initial condition for the finer mesh newface5150 STAR-CCM+ 5 April 18, 2023 15:27
Wind Turbine Simulation with Periodic Boundaries without Sliding Interface dvlastos OpenFOAM Running, Solving & CFD 0 September 28, 2021 11:35
Shifting from MRF to SLiding mesh er_ijaz ANSYS 0 May 13, 2016 00:25
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20


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