Time varying surfaceNormalFixedValue BC with codeStream
Dear Foamers,
I would like to change the value of the surfaceNormalFixedValue inlet velocity according to the current time step. I want to build a simple ramped inlet condition using the surfaceNormalFixedValue BC. But I got stuck when I want to access the current time step using codeStream. My code is as follows: Code:
"Inlet" Code:
: In function ‘void Foam::codeStream_511e83c811264e2205bc04185da775a50640cef3(Foam::Ostream&, const Foam::dictionary&)’: Thank you very much Regards Francois |
I've tried with
Code:
this->db().time().value() |
Quote:
Code:
this->patch().mesh().time().value() Code:
type groovyBC; One note: getting the time seems like quite a common task to me. I'd suggest that you guys do a collection of this and similar snipplets (possibly on the Wiki) for the coded-way. This way I will stop bothering anyone with "come to the dark side, Luke"-postings |
All times are GMT -4. The time now is 21:33. |