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

How can I save time at every point to utilize it in next step?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2016, 14:48
Default How can I save time at every point to utilize it in next step?
  #1
New Member
 
Chirag
Join Date: Oct 2016
Posts: 8
Rep Power: 9
chirag1993 is on a distinguished road
Hi,
I'm doing combustion of solid fuel particles bed. I have a cylinder pellet with atm temperature and at left plane temperature is constant as my boundary condition. In energy source option I gave volumetric heat source with field function($Temperature>= 933 ? 968500000000:0).So it will release the energy when temperature exceeds ignition temperature(933K).
But in reality after exceeding 933K at point, upto burning time(0.00008 s) heat is released, so how can I save the time(t_0) at every location so that I can use this condition in my field function t<t_0+0.00008 to release the heat?
Thanks in advance for your precious time
chirag1993 is offline   Reply With Quote

Old   October 18, 2016, 15:57
Default
  #2
Senior Member
 
Matt
Join Date: Aug 2014
Posts: 947
Rep Power: 17
fluid23 is on a distinguished road
I am confused. Are you asking how to use the time value from the previous time step or from the first time step?
fluid23 is offline   Reply With Quote

Old   October 19, 2016, 01:37
Default
  #3
New Member
 
Chirag
Join Date: Oct 2016
Posts: 8
Rep Power: 9
chirag1993 is on a distinguished road
First time step at every location.
Let me clear perfectly. Each point will release heat upto deltaT time after exceeding Ignition temperature(933K). I want to know the time (from beginning (0 sec)) at each cell when my particle reach the temperature 933K ,so that I can give the condition like from now upto deltaT time heat will be released.

If I can do this without knowing the time then it is also fine, means at one cell when I reach the temperature it will start releasing heat and stop it after deltaT(0.008 sec).

If you have solution or any new idea please share with me?
(Just for information -Here size of each particle will become mesh cell size, it means if i decrease the mesh cell size particles will become fine.)
chirag1993 is offline   Reply With Quote

Old   October 20, 2016, 14:35
Default ??
  #4
New Member
 
Chirag
Join Date: Oct 2016
Posts: 8
Rep Power: 9
chirag1993 is on a distinguished road
It's weird that no one knows or limitation of star CCM+?
Help me if you know.
chirag1993 is offline   Reply With Quote

Old   October 20, 2016, 15:12
Default
  #5
New Member
 
Leo
Join Date: Sep 2016
Posts: 6
Rep Power: 9
mirSTS74 is on a distinguished road
If I understand correctly, you want to know which cells hit a specific temperature and the time they achieve that.

I think using threshold(under derived parts) or cell sets may help you.
mirSTS74 is offline   Reply With Quote

Old   October 25, 2016, 07:11
Default After all these, Macro is the last option
  #6
New Member
 
Chirag
Join Date: Oct 2016
Posts: 8
Rep Power: 9
chirag1993 is on a distinguished road
these three things I want to do in star ccm.
1) increment {Temperature>933 ? tb+0.00067:tb}
2) tb {Temperature>933 ? increment:0}
3) Heatgeneration {Temperature>933 && increment<0.0067 ? 90000:0}

These can't be done by using field function because its cyclic .
I created macro for these field functions and trying to change it but I got many errors like can't find symbol, so I'm just attaching generated macro file with little bit changes, so you can guide me.

UserFieldFunction userFieldFunction_4 =
simulation_0.getFieldFunctionManager().createField Function();
userFieldFunction_4.getTypeOption().setSelected(Fi eldFunctionTypeOption.SCALAR);
userFieldFunction_4.setFunctionName("tb");
userFieldFunction_4.setDefinition("0");

UserFieldFunction userFieldFunction_5 =
simulation_0.getFieldFunctionManager().createField Function();
userFieldFunction_5.getTypeOption().setSelected(Fi eldFunctionTypeOption.SCALAR);
userFieldFunction_5.setFunctionName("incre");

UserFieldFunction userFieldFunction_6 =
simulation_0.getFieldFunctionManager().createField Function();
userFieldFunction_6.getTypeOption().setSelected(Fi eldFunctionTypeOption.SCALAR);
userFieldFunction_6.setFunctionName("main");

Units units_0 =
simulation_0.getUnitsManager().getPreferredUnits(n ew IntVector(new int[] {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}));

Units units_1 =
simulation_0.getUnitsManager().getPreferredUnits(n ew IntVector(new int[] {0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}));

PhysicalTimeStoppingCriterion physicalTimeStoppingCriterion_0 =
((PhysicalTimeStoppingCriterion) simulation_0.getSolverStoppingCriterionManager().g etSolverStoppingCriterion("Maximum Physical Time"));
physicalTimeStoppingCriterion_0.getMaximumTime().s etValue(0.1);


do {

if(simulation_0.getSolution().getPhysicalTime() > 0){

userFieldFunction_5.setDefinition("($Iteration>0)? ($Temperature > 933) ? ${tb}+0.000668:${tb}:0");
userFieldFunction_4.setDefinition("($Iteration>0)? ($Temperature > 933) ? ${incre}:0:0");
userFieldFunction_6.setDefinition("($Iteration>0)? ($Temperature > 933 && ${incre} < 0.0067) ? 968500000000:0:0");

Region region_0 =
simulation_0.getRegionManager().getRegion("half_cy linder.prt");

VolumetricHeatSourceProfile volumetricHeatSourceProfile_0 =
region_0.getValues().get(VolumetricHeatSourceProfi le.class);

volumetricHeatSourceProfile_0.getMethod(FunctionSc alarProfileMethod.class).setFieldFunction(userFiel dFunction_6);


}

simulation_0.getSimulationIterator().step(10);


} while (!physicalTimeStoppingCriterion_0.getIsSatisfied() );

}
}

By using these macro I'm getting cyclic error.
Help me out.
I'm thinking may be I need to change only three equations in do loops in some how.
Answer for earlier post-Threshold and cell set don't work in this case.
chirag1993 is offline   Reply With Quote

Old   October 25, 2016, 07:31
Default Little bit different
  #7
New Member
 
Chirag
Join Date: Oct 2016
Posts: 8
Rep Power: 9
chirag1993 is on a distinguished road
Can anyone know which function is used to store the values of field function in Macro(java script), means to store the scalar value we use setValue but don't know for a field function. May be problem can be solved I'm not sure. I will tell you later after checking it.
chirag1993 is offline   Reply With Quote

Old   October 25, 2016, 14:10
Default
  #8
New Member
 
Leo
Join Date: Sep 2016
Posts: 6
Rep Power: 9
mirSTS74 is on a distinguished road
Have you tried contacting Cd-Adapco about it?
mirSTS74 is offline   Reply With Quote

Old   October 25, 2016, 14:12
Default Just regular reply
  #9
New Member
 
Chirag
Join Date: Oct 2016
Posts: 8
Rep Power: 9
chirag1993 is on a distinguished road
No, Within few days I will. And tell you answer if I get.
chirag1993 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
Stuck in a Rut- interDyMFoam! xoitx OpenFOAM Running, Solving & CFD 14 March 25, 2016 07:09
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 09:53
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58


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