CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Copy "internalField" values to "boundaryField" (http://www.cfd-online.com/Forums/openfoam-solving/113020-copy-internalfield-values-boundaryfield.html)

Dzhordzhs February 10, 2013 13:58

Copy "internalField" values to "boundaryField"
 
Hi!

I have such fields:
volVectorField A
volVectorField B=fvc::curl(A)

After the last operation boundaryField B is lost.
Is it possible to restore it by copying closest values from internalField?

I have tried to make boundary condition:
void boundaryValueFvPatchVectorField::updateCoeffs()
{

if (updated())
{
return;
}

this->operator==(this->patchInternalField());
fvPatchVectorField::updateCoeffs();
}

.. but it doesn't work.

Dzhordzhs February 12, 2013 10:48

http://www.cfd-online.com/Forums/ope...atchfield.html


All times are GMT -4. The time now is 01:15.