• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

step/stepcore

  • StepCore
  • Gas
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
StepCore::Gas Class Reference
Physical bodies

#include <gas.h>

Inheritance diagram for StepCore::Gas:
Inheritance graph
[legend]

Public Member Functions

 Gas ()
 
void addParticles (const GasParticleList &particles)
 
GasErrors * gasErrors ()
 
const Vector2d & measureRectCenter () const
 
const Vector2d & measureRectSize () const
 
double rectConcentration () const
 
GasParticleList rectCreateParticles (int count, double mass, double temperature, const Vector2d &meanVelocity)
 
double rectMass () const
 
double rectMeanKineticEnergy () const
 
double rectMeanParticleMass () const
 
Vector2d rectMeanVelocity () const
 
double rectParticleCount () const
 
double rectPressure () const
 
double rectTemperature () const
 
double rectVolume () const
 
void setMeasureRectCenter (const Vector2d &measureRectCenter)
 
void setMeasureRectSize (const Vector2d &measureRectSize)
 
- Public Member Functions inherited from StepCore::ItemGroup
 ItemGroup (const QString &name=QString())
 
 ItemGroup (const ItemGroup &group)
 
 ~ItemGroup ()
 
virtual void addItem (Item *item)
 
ItemList allItems () const
 
void allItems (ItemList *items) const
 
Item * childItem (int index) const
 
Item * childItem (const QString &name) const
 
int childItemCount () const
 
int childItemIndex (const Item *item) const
 
void clear ()
 
virtual void deleteItem (Item *item)
 
Item * item (const QString &name) const
 
const ItemList & items () const
 
ItemGroup & operator= (const ItemGroup &group)
 
virtual void removeItem (Item *item)
 
void setWorld (World *world)
 
void worldItemRemoved (Item *item)
 
- Public Member Functions inherited from StepCore::Item
 Item (const QString &name=QString())
 
 Item (const Item &item)
 
virtual ~Item ()
 
Color color () const
 
void deleteObjectErrors ()
 
ItemGroup * group () const
 
ObjectErrors * objectErrors ()
 
Item & operator= (const Item &item)
 
void setColor (Color color)
 
virtual void setGroup (ItemGroup *group)
 
ObjectErrors * tryGetObjectErrors () const
 
World * world () const
 
virtual void worldItemRemoved (Item *item STEPCORE_UNUSED)
 
- Public Member Functions inherited from StepCore::Object
 Object (const QString &name=QString())
 
virtual ~Object ()
 
const QString & name () const
 
void setName (const QString &name)
 

Protected Member Functions

ObjectErrors * createObjectErrors ()
 
double randomGauss (double mean=0, double deviation=1)
 
double randomUniform (double min=0, double max=1)
 

Protected Attributes

Vector2d _measureRectCenter
 
Vector2d _measureRectSize
 
- Protected Attributes inherited from StepCore::Object
QString _name
 

Detailed Description

Gas - a group of several GasParticle and a force.

Definition at line 170 of file gas.h.

Constructor & Destructor Documentation

StepCore::Gas::Gas ( )
inline

Definition at line 175 of file gas.h.

Member Function Documentation

void StepCore::Gas::addParticles ( const GasParticleList &  particles)

Definition at line 203 of file gas.cc.

ObjectErrors* StepCore::Gas::createObjectErrors ( )
inlineprotectedvirtual

Creates specific ObjectErrors-derived class (to be reimplemented in derived classes)

Reimplemented from StepCore::Item.

Definition at line 208 of file gas.h.

GasErrors* StepCore::Gas::gasErrors ( )
inline

Get (and possibly create) GasErrors object.

Definition at line 204 of file gas.h.

const Vector2d& StepCore::Gas::measureRectCenter ( ) const
inline

Definition at line 197 of file gas.h.

const Vector2d& StepCore::Gas::measureRectSize ( ) const
inline

Definition at line 200 of file gas.h.

double StepCore::Gas::randomGauss ( double  mean = 0,
double  deviation = 1 
)
protected

Definition at line 168 of file gas.cc.

double StepCore::Gas::randomUniform ( double  min = 0,
double  max = 1 
)
protected

Definition at line 163 of file gas.cc.

double StepCore::Gas::rectConcentration ( ) const

Definition at line 320 of file gas.cc.

GasParticleList StepCore::Gas::rectCreateParticles ( int  count,
double  mass,
double  temperature,
const Vector2d &  meanVelocity 
)

Creates particles with given temperature.

Todo:
XXX Normalize temperature after particle creation

Definition at line 183 of file gas.cc.

double StepCore::Gas::rectMass ( ) const

Definition at line 280 of file gas.cc.

double StepCore::Gas::rectMeanKineticEnergy ( ) const

Definition at line 376 of file gas.cc.

double StepCore::Gas::rectMeanParticleMass ( ) const

Definition at line 229 of file gas.cc.

Vector2d StepCore::Gas::rectMeanVelocity ( ) const

Definition at line 325 of file gas.cc.

double StepCore::Gas::rectParticleCount ( ) const

Definition at line 211 of file gas.cc.

double StepCore::Gas::rectPressure ( ) const

Definition at line 498 of file gas.cc.

double StepCore::Gas::rectTemperature ( ) const

Definition at line 433 of file gas.cc.

double StepCore::Gas::rectVolume ( ) const

Definition at line 158 of file gas.cc.

void StepCore::Gas::setMeasureRectCenter ( const Vector2d &  measureRectCenter)
inline

Definition at line 198 of file gas.h.

void StepCore::Gas::setMeasureRectSize ( const Vector2d &  measureRectSize)
inline

Definition at line 201 of file gas.h.

Member Data Documentation

Vector2d StepCore::Gas::_measureRectCenter
protected

Definition at line 213 of file gas.h.

Vector2d StepCore::Gas::_measureRectSize
protected

Definition at line 214 of file gas.h.


The documentation for this class was generated from the following files:
  • gas.h
  • gas.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:43:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

step/stepcore

Skip menu "step/stepcore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal