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

Customized semiImplicitSource

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2016, 06:34
Default Customized semiImplicitSource
  #1
New Member
 
Join Date: Dec 2013
Posts: 11
Rep Power: 12
Ricky-11 is on a distinguished road
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
Ricky-11 is offline   Reply With Quote

Old   November 25, 2016, 13:04
Default
  #2
New Member
 
Join Date: Dec 2013
Posts: 11
Rep Power: 12
Ricky-11 is on a distinguished road
No idea? Nobody?
Ricky-11 is offline   Reply With Quote

Reply

Tags
fvoption, injectionrate, semiimplicitsource


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
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


All times are GMT -4. The time now is 16:14.