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

error: Argument of trancendental function not dimensionless custom solver problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2024, 08:48
Default error: Argument of trancendental function not dimensionless custom solver problem
  #1
New Member
 
Join Date: Jan 2024
Posts: 25
Rep Power: 2
Zomzzz is on a distinguished road
Hi i am getting this error why trying to run my custom solver for buoynatbussenisq humidity simple foam:

--> FOAM FATAL ERROR: (openfoam-2406)
Argument of trancendental function not dimensionless


From Foam::dimensionSet Foam::trans(const Foam::dimensionSet&)
in file dimensionSet/dimensionSet.C at line 482.


i think the problem is in that formula in the solver.c file:

// Solve for water vapor concentration
solve
(
fvm::div(phi, waterVapor)
== fvm::laplacian(D_wa, waterVapor)
);

// Calculate relative humidity
volScalarField relativeHumidity
(
IOobject
(
"relativeHumidity",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
(101325 + p) * waterVapor / (0.62198 + 0.37802 * waterVapor) /
exp(-0.58002206e4 / T + 0.13914993e1 - 0.48640239e-1 * T + 0.41764768e-4 * T * T - 0.14452093e-7 * T * T * T + 0.65459673e1 * Foam::log(T))
);


any solution for that ?
Zomzzz 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
whats the cause of error? immortality OpenFOAM Running, Solving & CFD 13 March 24, 2021 08:15
Problem with compiling the custom solver evapVOFHardt lukasz0004 OpenFOAM Programming & Development 6 March 13, 2016 15:04
Divergence problem Smaras FLUENT 13 February 21, 2013 06:03
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 13:44.