CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   rotating pacel injection in cylindrical coordinates (http://www.cfd-online.com/Forums/openfoam-solving/114883-rotating-pacel-injection-cylindrical-coordinates.html)

leowong March 19, 2013 11:15

rotating pacel injection in cylindrical coordinates
 
Hallo Foamers,

i would like to simulate an rotating water nozzle. The default initial velocity u0 ist in cartesian coordinates (x y z). I confused how can i convert it to an initial tangential velocity for lagrangian parcel injection.

*---------------------------------------------------------------------------*\ Class PatchInjection Declaration \*---------------------------------------------------------------------------*/ template<class CloudType> class PatchInjection public InjectionModel<CloudType> { // Private data //- Name of patch const word patchName_; //- Injection duration [s] const scalar duration_; //- Number of parcels to introduce per second [] const label parcelsPerSecond_; //- Initial parcel velocity [m/s] const vector U0_; //- Volume flow rate of parcels to introduce relative to SOI [m^3/s] const autoPtr<DataEntry<scalar> > volumeFlowRate_; //- Parcel size PDF model const autoPtr<pdfs::pdf> parcelPDF_; //- Cell owners labelList cellOwners_; //- Fraction of injection controlled by this processor scalar fraction_;

Thanks


All times are GMT -4. The time now is 19:33.