CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

timeVaryingMappedFixedValue cannot find field values in the case directory

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 15, 2024, 12:24
Default timeVaryingMappedFixedValue cannot find field values in the case directory
  #1
New Member
 
Prom
Join Date: Aug 2023
Posts: 8
Rep Power: 3
gbope7 is on a distinguished road
Hello,



I am using the timeVaryingMappedFixedValue (tVMFV) boundary condition to map heat fluxes onto a surface of an object. From there I want to observe the temperature evolution in that object.

I define the points and corresponding values of heat flux for each timestep in constant/boundaryData/<patchname>/points and constant/boundaryData/<patchname>/<time>/HF respectively.


Note that I define the volScalarField 'HF' in the .C file of a custom function similar to laplacianFoam. Beyond the definition

Code:
        Info<< "Reading Heat Flux HF from fcn file\n" << endl;
        volScalarField HF
        (
            IOobject
            (
                "HF",
                runTime.timeName(),
                mesh,
                IOobject::MUST_READ,
                IOobject::AUTO_WRITE
            ),
            mesh
        );
no operations are being performed on the volScalarField 'HF'.



Whenever I run my custom function I get the following error:

Code:
--> FOAM FATAL ERROR: (openfoam-2406)
cannot find file "/Users/promisea/OpenFOAM/ibukunOluwa/testCases/blockTest/2D_Trials/nstx132460/test2D-NSTX-tdep_timeVaryBC_10nodes/0.000159/HF"

    From virtual Foam::autoPtr<Foam::ISstream> Foam::fileOperations::uncollatedFileOperation::readStream(regIOobject &, const fileName &, const word &, const bool) const
    in file global/fileOperations/uncollatedFileOperation/uncollatedFileOperation.C at line 629.

FOAM exiting
where test2D_NSTX.../ is case directory and 0.000159/ is first timestep after 0/.


Oddly enough, when I adjust the function so that instead of solving for temperature in the heat equation, it solves for heat flux
Code:
        while (simple.correctNonOrthogonal())
        {
            fvScalarMatrix TEqn
            (
             //    fvm::ddt(T) - fvm::laplacian(Diff, T)
             // ==
             //    fvOptions(T)
            // fvm::ddt(T) - Diff*fvm::laplacian(T)
            //  ==
                fvOptions(T)
                    fvm::ddt(HF) - fvm::laplacian(Diff, HF)
                 ==
                    fvOptions(HF)
            );

            fvOptions.constrain(TEqn);
            TEqn.solve();
            fvOptions.correct(T);
        }

        #include "write.H"

        runTime.printExecutionTime(Info);
the values from constant/boundaryData/<patchname>/ are mapped correctly. Can someone advise on why this is happening?



Thank you!
gbope7 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PengRobinsonGas EoS with sprayFoam Jabo OpenFOAM Running, Solving & CFD 36 July 16, 2024 04:52
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 04:30
[swak4Foam] Installation Problem with OF 6 version Aurel OpenFOAM Community Contributions 14 November 18, 2020 17:18
CFX-Pre problem, pls help!!! cth_yao CFX 0 February 17, 2012 01:52
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24


All times are GMT -4. The time now is 00:45.