CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: dscian
Forum: OpenFOAM Running, Solving & CFD May 14, 2023, 04:18
Replies: 14
Views: 845
Posted By dscian
You should define something for rho0 but since...

You should define something for rho0 but since the sampling using the density distribution object in ManualInjection will overwrite that value, I'd expect different densities in the simulation.
Forum: OpenFOAM Running, Solving & CFD May 12, 2023, 18:34
Replies: 14
Views: 845
Posted By dscian
The code is doing nothing for the density. Try...

The code is doing nothing for the density. Try adding the following in "setProperties" function.


// set particle diameter
parcel.rho() = densityDistribution_->sample();
Forum: OpenFOAM Running, Solving & CFD May 12, 2023, 15:04
Replies: 14
Views: 845
Posted By dscian
The files I attached have the density update, so...

The files I attached have the density update, so you can reference that. Those are the modifications I made. You'll add 3 lines in ManualInjection.C file and 1 line in ManualInjection.H file.

The...
Forum: OpenFOAM Running, Solving & CFD May 11, 2023, 18:21
Replies: 14
Views: 845
Posted By dscian
The attached PatchInjection code assigns density...

The attached PatchInjection code assigns density value within the injection model definition, but it must be a scalar value, so constant. You may go from there.

In the same file, the following...
Forum: OpenFOAM Running, Solving & CFD April 28, 2023, 19:10
Replies: 14
Views: 845
Posted By dscian
That is not supported in OpenFOAM. You need to...

That is not supported in OpenFOAM. You need to modify the code. If you will do that then I think it would be easier to implement it under the injection model instead of using constantProperties...
Showing results 1 to 5 of 5

 
Forum Jump

All times are GMT -4. The time now is 00:50.