Exemple #1
0
Foam::tmp<Foam::volScalarField> Foam::phasePair::Mo() const
{
    return
        mag(g())
       *continuous().nu()
       *pow3(continuous().nu()*continuous().rho()/sigma());
}
Exemple #2
0
Foam::tmp<Foam::volScalarField> Foam::phasePair::Pr() const
{
    return
         continuous().nu()
        *continuous().thermo().Cpv()
        *continuous().rho()
        /continuous().kappa();
}
void OscMaster::fmSynth(vector<BlobMaster::soundBlob> blobs, vector<BlobMaster::soundEvent> events) {
	
	if(timbre != lastTimbre) {
		lastTimbre = timbre;
		addMessage(-1, "timbre", timbre);
	}

	if(cont) {
		continuous(blobs, events);
		if(!lastMode) {
			lastMode = true;
			addMessage(-1, "mode", 0);
		}	
	}
	else {
		discreet(blobs, events);
		if(lastMode) {
			lastMode = false;
			addMessage(-1, "mode", 1);
		}
	}
	addMessage(-1, "drone", drone);
	
	if(scale != lastScale) {
		lastScale = scale;
		addMessage(-1, "scale", scale);
	}

	if(tonic != lastTonic) {
		lastTonic = tonic;
		addMessage(-1, "tonic", tonic);
	}

}
Exemple #4
0
Foam::tmp<Foam::volScalarField> Foam::phasePair::EoH
(
    const volScalarField& d
) const
{
    return
        mag(dispersed().rho() - continuous().rho())
       *mag(g())
       *sqr(d)
       /sigma();
}
    MellowPlayer::Infrastructure::UpdateChannel fromString(const QString& channelName) const
    {
        MellowPlayer::Infrastructure::UpdateChannel channel;

        if (channelName == continuous())
            channel = MellowPlayer::Infrastructure::UpdateChannel::Continuous;
        else if (channelName == beta())
            channel = MellowPlayer::Infrastructure::UpdateChannel::Beta;
        else
            channel = MellowPlayer::Infrastructure::UpdateChannel::Stable;

        return channel;
    }
Exemple #6
0
void VecPlayContinuous::deliver(double tt, NetCvode* ns) {
	NrnThread* nt = nrn_threads;
//printf("deliver %g\n", tt);
	if (cvode_) {
		cvode_->set_init_flag();
		if (cvode_->nth_) { nt = cvode_->nth_; }
	}
	last_index_ = ubound_index_;
	if (discon_indices_) {
		if (discon_index_ < discon_indices_->capacity()) {
			ubound_index_ = (int)discon_indices_->elem(discon_index_++);
//printf("after deliver:send %d %g\n", ubound_index_, t_->elem(ubound_index_));
			e_->send(t_->elem(ubound_index_), ns, nt);
		}else{
			ubound_index_ = t_->capacity() - 1;
		}
	}else{
		if (ubound_index_ < t_->capacity() - 1) {
			ubound_index_++;
			e_->send(t_->elem(ubound_index_), ns, nt);
		}
	}
	continuous(tt);
}
Exemple #7
0
Foam::tmp<Foam::volScalarField> Foam::phasePair::Re() const
{
    return magUr()*dispersed().d()/continuous().nu();
}
Exemple #8
0
Foam::tmp<Foam::volVectorField> Foam::phasePair::Ur() const
{
    return dispersed().U() - continuous().U();
}