|
[Sponsors] |
How to store a field in a new varianle and see it in paraFoam? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 2, 2022, 00:46 |
How to store a field in a new varianle and see it in paraFoam?
|
#1 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Hello guys,
I am trying to assign alpha1 values to a variable A in compressibleInterFoam solver. So I added a subroutine in createFields.H like this Code:
volScalarField A ( IOobject ( "A", mesh.time().timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar("zero", dimless, 0.0) ); A.ref() = mixture.alpha1(); Can anyone help me with this? |
|
March 2, 2022, 19:15 |
|
#2 |
Member
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9 |
Hi Hari,
Can u see this new field in your intermediate time folders ? If yes, then something might be wrong with the OpenFOAM plugin of paraview. As an alternative try loading files via foamToVTK and then it should work. |
|
March 3, 2022, 00:10 |
|
#3 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Hello shubham,
Can you tell me How to load these files to vtk? Thanks for your reply |
|
March 3, 2022, 15:31 |
|
#4 |
Member
MNM
Join Date: Aug 2017
Posts: 69
Rep Power: 9 |
Just Execute
Code:
foamToVTK Code:
paraview |
|
March 3, 2022, 23:41 |
accessing alpha.water with a new variable.
|
#5 |
Member
hari charan
Join Date: Sep 2021
Location: India,hyderabad
Posts: 97
Rep Power: 5 |
Hello shubam,
I am attaching a pic so that u can see what's actually my problem is? ALPHA1 which I named as "A" is staying the same through out the runtime. Thanks for the reply |
|
Tags |
compressibleinterfoam, openfoam, openfoam8, postprocess |
|
|