44 Info <<
"DAInputStateVar. " << endl;
45 Info <<
"Setting state variables. " << endl;
50 const word stateName =
stateInfo_[
"volVectorStates"][idxI];
51 volVectorField& state =
const_cast<volVectorField&
>(
52 mesh_.thisDb().lookupObject<volVectorField>(stateName));
56 for (label i = 0; i < 3; i++)
59 state[cellI][i] = input[localIdx];
62 state.correctBoundaryConditions();
67 const word stateName =
stateInfo_[
"volScalarStates"][idxI];
68 volScalarField& state =
const_cast<volScalarField&
>(
69 mesh_.thisDb().lookupObject<volScalarField>(stateName));
74 state[cellI] = input[localIdx];
76 state.correctBoundaryConditions();
81 const word stateName =
stateInfo_[
"modelStates"][idxI];
82 volScalarField& state =
const_cast<volScalarField&
>(
83 mesh_.thisDb().lookupObject<volScalarField>(stateName));
88 state[cellI] = input[localIdx];
90 state.correctBoundaryConditions();
95 const word stateName =
stateInfo_[
"surfaceScalarStates"][idxI];
96 surfaceScalarField& state =
const_cast<surfaceScalarField&
>(
97 mesh_.thisDb().lookupObject<surfaceScalarField>(stateName));
105 state[faceI] = input[localIdx];
112 state.boundaryFieldRef()[patchIdx][faceIdx] = input[localIdx];