Function1::Scale: New function to scale a given function by a scalar function, e.g. a ramp
For example in the potentialFreeSurfaceFoam/oscillatingBox tutorial it is cleaner to apply the "linearRamp" function to the "sine" function rather than using an amplitude table: floatingObject { type fixedNormalInletOutletVelocity; fixTangentialInflow false; normalVelocity { type uniformFixedValue; uniformValue { type scale; value { type sine; frequency 1; amplitude 0.025; scale (0 1 0); level (0 0 0); } scale { type linearRamp; duration 10; } } } value uniform (0 0 0); }
Showing
- src/OpenFOAM/primitives/functions/Function1/Scale/Scale.C 89 additions, 0 deletionssrc/OpenFOAM/primitives/functions/Function1/Scale/Scale.C
- src/OpenFOAM/primitives/functions/Function1/Scale/Scale.H 165 additions, 0 deletionssrc/OpenFOAM/primitives/functions/Function1/Scale/Scale.H
- src/OpenFOAM/primitives/functions/Function1/makeDataEntries.C 3 additions, 1 deletion...OpenFOAM/primitives/functions/Function1/makeDataEntries.C
Please register or sign in to comment