|
[Sponsors] |
March 30, 2023, 13:31 |
Access to field outside of base class
|
#1 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
Hello everyone,
I am working on a new boundary condition based on timeVaryingMappedFixedValue in OF-10. When I implemented it in OF231 (I know, long time between updates), the structure of that BC has changed. In my case, I'm basically reading in and mapping a scalarField from previous results and then multiplying the value of the fields like this inside the updateCoeffs function timeVaryingMappedFixedValueFvPatchField.C (in 2.3.1): Code:
const Field<Type>& patchVal = *this; this->operator==(patchVal*mappedScalarField) Code:
Field<Type> fld; //temporary field holder, excluding some of the creation issues Field<Type> curVals; // <-- Current patch values; fld = (mappedScalarField*curVals); Code:
this->operator==(fieldMapper_.map()) //fieldMapper is the timeVaryingFvPatchField that is part of timeVaryingFixedValueFvPatchField fixedValueFvPatchField<Type>::updateCoeffs(); Thanks for any input you can provide! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Long output in terminal. | ssa_cfd | OpenFOAM Running, Solving & CFD | 1 | March 18, 2019 05:25 |
Access pointDisplacement field from within pimpleDyMFoam | paul b | OpenFOAM Programming & Development | 0 | December 2, 2016 03:16 |
Accessing field values with in a dynamic mesh motion class | kcn | OpenFOAM Programming & Development | 2 | July 21, 2015 00:52 |
Access to Domain Pressure Field or mesh | ar_mofidi | OpenFOAM | 0 | April 12, 2010 06:47 |
Access Field values at certain time | andrea | OpenFOAM Running, Solving & CFD | 0 | August 31, 2009 06:24 |