|
[Sponsors] |
November 24, 2016, 06:34 |
Customized semiImplicitSource
|
#1 |
New Member
Join Date: Dec 2013
Posts: 11
Rep Power: 12 |
Dear Fomers,
I'm trying to create a customized semi implicit source for the energy equation where I would like to update dynamically the Su and Sp coefficients. At first, I've tried to use the codedSource class but it didn't fit with my needs so I've switched to the idea of compiling my own source code starting from the original semiImplicitSource code. So far I've been able to compile it and check it when untouched but now I'm struggling to figure out how to set the Su and Sp coefficients. More precisely, I would like to read a file from disk where the two coeffcients would be stored and then pass them to the original OF function, i.e.: UIndirectList<scalar>(Sp, cells_) = injectionRate_[fieldI].second()/VDash_; I kinda realized UIndirectList creates a vector with the length of cells_ but it looks like injectionRate_[fieldI].second() does not return a scalar, as I've tried to simply put a float in place of it and the compilation fail because the operands are not consistent. Any help to figure this out? Many thanks, R |
|
November 25, 2016, 13:04 |
|
#2 |
New Member
Join Date: Dec 2013
Posts: 11
Rep Power: 12 |
No idea? Nobody?
|
|
Tags |
fvoption, injectionrate, semiimplicitsource |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Customized restraint | federicabi | OpenFOAM Programming & Development | 1 | October 22, 2018 18:45 |
Compiling the customized UDF code for PEMFC | dmfo | Fluent UDF and Scheme Programming | 2 | October 1, 2017 19:30 |
customized ubuntu14.04LTS | nimasam | OpenFOAM Announcements from Other Sources | 1 | March 10, 2016 07:41 |
Inactive debug switches for fvOption SemiImplicitSource | GerhardHolzinger | OpenFOAM Bugs | 6 | March 28, 2015 17:06 |
SemiImplicitSource injection rate is per timestep? | derekm | OpenFOAM Running, Solving & CFD | 1 | January 1, 2015 12:46 |