CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

How to generate arbitrary initial condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 29, 2024, 22:02
Default How to generate arbitrary initial condition
  #1
New Member
 
Qi Wang
Join Date: Oct 2024
Posts: 7
Rep Power: 2
QiWang is on a distinguished road
I have the mesh and some sample restart files and need to add a vortex on top of the solution and restart. Can anyone give me some information what's the easiest way to do this?
QiWang is offline   Reply With Quote

Old   December 30, 2024, 08:10
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 716
Rep Power: 21
bigfootedrockmidget is on a distinguished road
You can write the restart file as an ASCII file and read/write it with a simple python script using read_csv. If you open the restart.csv file you will see that the first line is a header looking like this:
Code:
"PointID","x","y","z","Pressure","Velocity_x","Velocity_y",
so you can manipulate the variables using the value of x,y,z.

bigfootedrockmidget is offline   Reply With Quote

Reply

Tags
su2 8.0.0, su2 aerodynamic noise

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Compressible flows with larger Courant numbers Tobi OpenFOAM Running, Solving & CFD 5 February 26, 2021 16:20
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 13:30
Foam::error::printStack after large bounding epsilon events StoneCFD727 OpenFOAM Running, Solving & CFD 1 January 1, 2018 18:04
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
calculation stops after few time steps sivakumar OpenFOAM Running, Solving & CFD 7 March 17, 2013 07:37


All times are GMT -4. The time now is 23:05.