CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Square root with inline calculation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 21, 2025, 18:14
Default Square root with inline calculation
  #1
New Member
 
anonymous
Join Date: Jan 2024
Posts: 1
Rep Power: 0
Joschi is on a distinguished road
Is it possible to get the square root with the inline calculation? I have tried to parameterize the coordinates for my blockMesh and need the square root. I have tried the following:

Code:
X_ref   #calc "(sqrt(2*($edge * $edge)) - $D) / 2 * cos(degToRad(45))";
Unfortunately without success.
I am grateful for any tips.
Joschi is offline   Reply With Quote

Reply

Tags
blockmeshdict, inline calculations

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
RMS root mean square velocity Fluent C.C FLUENT 4 August 29, 2022 22:10
using a Fortran library of thermodynamics inside sutherland transport model Mehdi3031 OpenFOAM Programming & Development 0 April 7, 2016 10:34
MATLAB code for flow around Square Cross-section JungleCrow Main CFD Forum 6 July 15, 2015 01:00
Adding new Least Square calculation subroutine shainath SU2 1 May 12, 2015 17:49
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48


All times are GMT -4. The time now is 09:12.