Interaction with CindyLab

print

Interaction with CindyLab


The simulation environment: simulation()




Description: This operator provides a handle to the simulation environment. The simulation environment offers several fields than can be used to access its global properties.


NameWriteableTypePurpose
frictionyesreal total friction of the simulation
gravityyesreal total gravity of the simulation
kineticnoreal total kinetic energy of the simulation
kenoreal total kinetic energy of the simulation
potentialnoreal total potential energy of the simulation
penoreal total potential energy of the simulation





Applying a force: addforce(<mass>,<vec>)



Description: Applying a force <vec> to an existing mass <mass>. This operator is useful to implement user defined force fields. It should be called in the Integration Tick slot.



Applying a force: setforce(<mass>,<vec>)



Description: Setting the force <vec> for an existing mass <mass>. This operator is very useful to implement user defined force fields. It should be called in the Integration Tick slot.



Probing particle forces: force(<vector>)




Description: The operator force is closely related to physics simulations in CindyLab. It can be used for testing the force that would affect a mass particle at a specific position. The vector <vector> represents the position. The operator returns a two-dimensional vector that is the force at this position. If no modifiers are used, the operator assumes that the probe particle has mass=1, charge=1 and radius=1 (see Free Mass).



Example: The following picture was generated using the drawforces operator and a color plot of the force operator. It shows the force field and force strength of the electrostatic field of two charges.






A.charge=(|C,G|-3)*3;
B.charge=(|E,H|-3)*3;
f(x):=max((0,min([x,1])));
colorplot([0.1,0.1,0.1]+hue(f(abs(force(#)/3))),(-10,-10),(20,10));
drawforces(stream->true,move->0.2,color->[0,0,0],resolution->10);



Modifiers: It is also possible to set the values of mass, charge and radius explicitly. Each of these values can be set by a modifier of the same name. If at least one of these values is set explicitly, then all unset values are set to zero. Thus force([0,0],charge->2) tests the force that would be present for a particle of charge=2, mass=0, and radius=0 at point [0,0].


Contributors to this page: Wurster , Richter and Kortenkamp .
Page last modified on Thursday 10 of July, 2014 [08:18:13 UTC] by Wurster.

The content on this page is licensed under the terms of the License.


Menu
free viagra samplehentai girlsmature pussymilfseeker cialis samplescam clip movie nude webcammother incest order viagra online cialis ukanime rapeparis hilton phone numbers viagra alternatives cialis forum cialis free samplehot girls in pantiesmonster of cocks discount cialis cilias free viagra samplesfree chat rooms cilia structurefree cartoon sex comics buy cialis order viagrafree adult videosplump girl gallerypantyhose gallerycum on her face cheapest cialisbisexual moviestampa bukakehuge black cock thumbnails buy cialis onlineporn star cialis drugwomen having sex cheap generic viagra alternative to viagra natural viagra cheap viagraoral sexteen webcam strip videosnude spanish girlserotic sex cams movies viagra side effectscartoon adultdisney sex animenude blonde hairygang bang swinger cialis viagrabisexual free moviesgay twinkswebcam chat live xxxyoung teens order cialislatina girls thongscum loversjapanese girl viagra cheapyoung japanese girlsmr chews asian beavergangbang squadshoshone indiansmature wiveslive webcam chat girlsfree ebony viagra on lineasian ladyboysteen boys viagra pillsself bondage techniques cailisincest familyfree ebony cheap cialisgay amateur cialis genericbusty asian viagra onlinemature breasts viagra for women free viagrabig boobies cialis generic viagragloryhole gaylatinas in thongs female viagraindian tits viagra 6 free samplesamateur upskirt viagra alternativefree xxx video cialis online discountgalleries of teen girls cialis dosage cheap generic cialisparis hilton pornopussy cat dollsbrutal sexgay peopleblack milfsno tits discount viagrablonde hairy pussyshemale animefree hardcore moviesmom strips for sonfat titscelebrity legsdouble anal levitra vs cialis cialis tadalafil cialis cheapgay bdsmcelebrities exposed viagra generic alternatives to viagra viagra canadabestialitypink porn stars viagra jokesclips of teen sexchicks suck horse cock online viagrasex with horsespainful analglory holes floridafree american bukkake cialis online buy viagrabig cock cum free cialisteen gay porn cialis side effects herbal viagra best price viagra purchase cialis cialis soft tabs cialis vs viagrafree fat girl webcamfree porn movie clipsoral penis suckingebony hardcore viagra pricepantyhose crossed legs cialis and levitralesbiennesblonde boobs buy viagra online