Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Residuals Variable #7

Open
rafaelCMoura opened this issue Oct 20, 2017 · 1 comment
Open

Residuals Variable #7

rafaelCMoura opened this issue Oct 20, 2017 · 1 comment
Assignees

Comments

@rafaelCMoura
Copy link
Owner

rafaelCMoura commented Oct 20, 2017

Rewrite residuals variable to use a declaration inside the solver like this:

#include "dimensionedTensor.H"

dimensionedTensor sigma
(
    "sigma",
    dimensionSet( 1, -1, -2, 0, 0, 0, 0),
    tensor( 0, 0, 0, 0, 0, 0, 0, 0, 0)
);

Info<< "Sigma: " << sigma << endl;
@rafaelCMoura
Copy link
Owner Author

Try this too:

    volScalarField r
    (
        IOobject
        (
            "r",
            runTime.timeName(),
            mesh,
            IOobject::NO_READ,
            IOobject::AUTO_WRITE
        ),
        mesh,
        dimensionedScalar("r", dimless, scalar(0.0))
    );

@rafaelCMoura rafaelCMoura changed the title residuals variable Residuals variable Oct 20, 2017
@rafaelCMoura rafaelCMoura changed the title Residuals variable Residuals Variable Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant