CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

how to apply a square wave function in flowRateProfile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 19, 2020, 10:56
Default how to apply a square wave function in flowRateProfile
  #1
Member
 
Riddhideep Biswas
Join Date: May 2020
Posts: 30
Rep Power: 5
Rid@foam is on a distinguished road
I am working on a lagrangian simulation in sprayFoam where I am trying to use a square wave function profile in my flowRateProfile in sprayCloudProperties.

The submodels part that I am using in my sprayCloudProperties file is shown below.

subModels
{
particleForces
{
sphereDrag;
gravity;
}

injectionModels
{
model1
{
type coneNozzleInjection;
SOI 0;
massFlowRate 0.0008;
massTotal 6.0e-4;
parcelBasisType fixed;//mass number
nParticle 1;
injectionMethod disc;
flowType flowRateAndDischarge;
outerDiameter 1.5e-3;
innerDiameter 0;
duration 0.03;
position (0 0.0695 0);
direction (1 -1 0);//(0 -1 0)
parcelsPerSecond 10000;
flowRateProfile square;
frequency 100;
amplitude 10;
scale 1;
level 5;
Cd constant 0.9;

thetaInner constant 10.0;
thetaOuter constant 40.0;

sizeDistribution
{
type fixedValue;//fixedValue

fixedValueDistribution
{
value 0.0008;
}
}
}
}

When I am trying to run the simulation, it gives an error message as shown below.

--> FOAM FATAL ERROR:
Not implemented

From function Type Foam::Function1<Type>::integrate(Foam::scalar, Foam::scalar) const [with Type = double; Foam::scalar = double]
in file /home/riddhideep/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/Function1.C at line 79.

What should I do? What extra things should I add to get rid of the error?
Any help would be of great use.
Rid@foam is offline   Reply With Quote

Reply

Tags
square wave profile


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 07:15
[waves2Foam] Waves2Foam Related Topics ngj OpenFOAM Community Contributions 660 August 20, 2018 12:39
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 05:55.