|
[Sponsors] |
July 17, 2007, 14:22 |
Hello,
I am trying to imple
|
#1 |
Senior Member
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17 |
Hello,
I am trying to implement a custom boundary condition. The class has a member field like this: scalarField foo; When reading from the dictionary it gets initialised with the correct values, but the first time that updateCoeffs() is called the field foo is reverted back to all zeros ... Another question about boundary conditions: What exactly are the mapping functions doing? Any help would be appreciated! Thanks, Oliver |
|
July 17, 2007, 14:44 |
Another question about bound
|
#2 | |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Quote:
Clear? Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
||
July 17, 2007, 15:46 |
Yep, that makes sense - for no
|
#3 |
Senior Member
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17 |
Yep, that makes sense - for now I copied that part from the total pressure condition.
'still trying to find why it is reset to zero, though. |
|
July 17, 2007, 16:36 |
I checked and the instance of
|
#4 |
Senior Member
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17 |
I checked and the instance of my boundary condition that gets used has not been constructed with the constructor that takes a dictionary as argument. Actually it was constructed with:
className(const fvPatch&, const scalarField&) Did I forget to overload a copy-operator or something in that league? I checked the total-pressure boundary condition, but there is no copy operator ... I'm stuck :-( |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Implementing new oscillating boundary condition | chbenz | OpenFOAM Running, Solving & CFD | 0 | February 19, 2009 03:27 |
Implementing a New Boundary Condition | cliffoi | OpenFOAM Running, Solving & CFD | 8 | February 11, 2008 13:11 |
Implementing PseudoMass Transfer Boundary Condition | rsungkorn | OpenFOAM Running, Solving & CFD | 0 | February 11, 2008 08:28 |
Problems with Fan boundary condition | Nish | FLUENT | 2 | August 27, 2004 19:27 |
Implementing boundary condition for LES | Linfeng BI | Main CFD Forum | 2 | December 9, 2002 09:58 |