View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001262 | OpenFOAM | Bug | public | 2014-04-06 19:33 | 2015-05-01 16:45 |
Reporter | virag | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Platform | RH | OS | Other | OS Version | (please specify) |
Summary | 0001262: codeStream | ||||
Description | the codedFixedValue feature which is applicable for the applying custom boundary condition is not applicable for trigonometric functions. I am trying to apply a transient profile at the inlet using codedFixedValue, but it seem to work only for ramping the BC. I want to apply a sine function. | ||||
Steps To Reproduce | inlet { type codedFixedValue; value uniform 0; redirectType ramp; code #{ operator==(min(10, 0.1*this->db().time().value())); #}; } | ||||
Tags | No tags attached. | ||||
|
Just use 'sin' as you would in any piece of code. E.g. based on the pipeCyclic case: code #{ const vector axis(1, 0, 0); const scalar omega = 10; scalar s = sin(omega*this->db().time().value()); vectorField v(2.0*this->patch().Cf() ^ axis); v.replace(vector::X, s); operator==(v); #}; |
Date Modified | Username | Field | Change |
---|---|---|---|
2014-04-06 19:33 | virag | New Issue | |
2014-04-07 09:03 |
|
Note Added: 0003000 | |
2014-04-07 09:03 |
|
Status | new => resolved |
2014-04-07 09:03 |
|
Resolution | open => no change required |
2014-04-07 09:03 |
|
Assigned To | => user4 |