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

Field function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2016, 15:36
Default Field function
  #1
Muh
New Member
 
Muh
Join Date: Apr 2016
Posts: 14
Rep Power: 10
Muh is on a distinguished road
Hi,

I am new to STAR-CCM+ and I wonder how one can run multiple simulations consecutively? I have a simulation which I want to run with different inlet velocities. I want to run one simulation with a certain velocity during 3000 iterations and then run another simulation during 3000 more iterations and so on.

I tried some syntax definitions under Tools>Field function but could not understand how to Wright it and then initiate it.
Muh is offline   Reply With Quote

Old   May 1, 2016, 05:15
Default
  #2
New Member
 
Fulvio
Join Date: Apr 2016
Posts: 8
Rep Power: 10
ThatGuy is on a distinguished road
Hi,

if I understood it right, I think that you should run the first sim with a stopping criterium of 3000 steps, then you change the conditions, shift the stopping criterium to 6000 steps and run again. This way the simulations are consequent
ThatGuy is offline   Reply With Quote

Old   May 1, 2016, 05:45
Default
  #3
Muh
New Member
 
Muh
Join Date: Apr 2016
Posts: 14
Rep Power: 10
Muh is on a distinguished road
Yes thats correct, I did something like this.

$Iterate < 3000?1:$Iterate < 6000?2:$Iterate < 9000?3:

Then I also set stop solution at 9000 steps and I also autosave at each 2999 iterations. Here I say iterate 3000 iterations with velocity 1 m/s and then run 3000 mre iterations with velocity 2 m/s and so.
Muh is offline   Reply With Quote

Old   May 1, 2016, 05:58
Default
  #4
New Member
 
Fulvio
Join Date: Apr 2016
Posts: 8
Rep Power: 10
ThatGuy is on a distinguished road
Yes, maybe you automated what I suggested you do manually. That's the way
ThatGuy is offline   Reply With Quote

Old   May 1, 2016, 06:02
Default
  #5
Muh
New Member
 
Muh
Join Date: Apr 2016
Posts: 14
Rep Power: 10
Muh is on a distinguished road
thanks man,

Do you have any suggestions on the syntax definition? I have made the stopping criteria but some how the velocity is not included in the definition. I tried to some other syntax definitions but did not work. So my problem is in the syntax definition including the velocity
Muh is offline   Reply With Quote

Old   May 1, 2016, 06:04
Default
  #6
New Member
 
Fulvio
Join Date: Apr 2016
Posts: 8
Rep Power: 10
ThatGuy is on a distinguished road
I'm quite a newbie on star ccm+, so I never studied the syntax it uses. I think, but this is just a guess, that you have to pass through field functions.
Unfortunately I can't help you with this, maybe the user guide will give you some more hints. I don't even know what kind of code it uses.
ThatGuy is offline   Reply With Quote

Old   May 4, 2016, 17:04
Default
  #7
New Member
 
Owain Parry
Join Date: Apr 2016
Location: Northampton
Posts: 6
Rep Power: 10
Owain_Parry is on a distinguished road
Hello.

You need to define your own field function call it something like "0Inlet_Velocity" Putting the '0' at the start ensures it appears at the top of the field function list.

Then modify the following example to match your case:

$Iteration < 3001 ? 1.0 : $Iteration < 6001 ? 2.0 : $Iteration < 9001 ? 3.0 : OTHER CASE

The logic steps in the above algorithm is not optimal but it's the easiest approach for you to learn.

After this step you must now tell the inlet boundary to use the output from this field function as it's physical value for velocity. Go in to the inlet boundary definition in the regions tab. Under the physical values tab set the velocity magnitude method to "Field Function" and then the value must be set to the field function which you've just created "0Inlet_Velocity". I suggest you use the field function browser thing so that you get the syntax correct.
Owain_Parry is offline   Reply With Quote

Old   May 4, 2016, 17:10
Default
  #8
Muh
New Member
 
Muh
Join Date: Apr 2016
Posts: 14
Rep Power: 10
Muh is on a distinguished road
Thank you so much Owain_Parry. I did that and the only thing that was missing, was to define the boundary value as My Field function, just as you describe. :-)
Muh 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
Foam::error::PrintStack almir OpenFOAM Running, Solving & CFD 92 May 21, 2024 08:56
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 05:49
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 14:41
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 07:20
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


All times are GMT -4. The time now is 12:29.