CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > STAR-CCM+

Custom initial conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 2, 2014, 14:41
Default Custom initial conditions
  #1
New Member
 
Mike
Join Date: Apr 2014
Posts: 1
Rep Power: 0
mikehi58 is on a distinguished road
Hi,

I'm not new to star-ccm+ but am new to the more advance features. I have a very specific question so I thought I might as well ask in my own post as opposed to piecing together bits from across the forum.

For my masters project I'm making a very rapid boundary layer prediction algorithm (2-D), so far its going well and its accurate. Eventually I want to use it with star. This would take form of a text file with coordinates and a velocities that I would use for the initial velocity field, as opposed to the uniform field that is the default in star.

What I'm asking is what is the best way to go about this and how to get it to interpolate onto the grid.

Thanks
mikehi58 is offline   Reply With Quote

Old   April 3, 2014, 14:58
Default
  #2
New Member
 
Philhellene Ithaca
Join Date: Mar 2014
Posts: 10
Rep Power: 3
yannaos is on a distinguished road
The quickest and almost the best way would be just to use the fact that STAR-CCM+ can read tables and allows directly to use the tables as a profile for your initial field. Within the initial field velocity, for example, you just need to change the default from Constant to Table. The program will do the interpolation (linear) automatically for you.
If, on the other hand, you want to have more control on the points where you are going to specify your profile, first you export the coordinates of the centroids of your mesh. With your code, you create a table that associate your velocity with each centroid and then reimport again as the solution before. In this case the X,Y,Z values match the one from your mesh.
Note that, in both cases, you could even display the values you are importing by creating a field function from the table.
Finally, the best solution, but more difficult to implement would be to use User Coding as the method to specify your profile. In that way you could call your program, obtain directly the velocities and pass them to the code without writting to disk.
yannaos is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conjugate heat transfer in OpenFOAM skuznet OpenFOAM Running, Solving & CFD 66 January 22, 2016 18:15
Cannot run the code properly: very large time step continuity error crst15 OpenFOAM Running, Solving & CFD 9 December 14, 2014 19:17
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 05:13
Low Mach number Compressible jet flow using LES ankgupta8um OpenFOAM Running, Solving & CFD 7 January 15, 2011 14:38
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50


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