|
[Sponsors] |
Prescribing a volume force to a 2D simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 1, 2022, 08:29 |
Prescribing a volume force to a 2D simulation
|
#1 |
New Member
Mathias
Join Date: Feb 2022
Posts: 4
Rep Power: 4 |
Hi,
I'm rather new to Star CCM+, and currently trying to efficiently try design-iterations of a diffuser for a DAWT. Hence, I'd like to run my simulations axisymmetrically. I want to prescribe a volumetric force, like the virtual disc, but I dont know how to accomplish this. From the manual (and general google search) I gather that: 1) It has to be assigned from "Physica values" under Regions. 2) I have to create a table or Field Function to define the position/span of the source. I am not familiar with the syntax of field functions however, and my search in the threads in here has lead me anywhere useful so far. Any suggestions on how to accomplish this easily? I'd like to prescribe the force to a line from e.g. [0,0,0] to [0,1,0] Thanks a lot! |
|
February 2, 2022, 02:50 |
|
#2 | |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 438
Rep Power: 18 |
Quote:
Code:
($$Position[1] >= 0) && (Position[1] <= 1) ? <your value> : 0 That would apply force everywhere in 0.0 ≤ y ≤ 1.0. But - force cannot be applied at "line" it should be applied in some volume, so depending on your task approach - you'll have to add some extra coordinate conditions (into the first line of the field function) so that your field function would be appied only in the chosen volume. |
||
February 2, 2022, 04:09 |
|
#3 |
New Member
Mathias
Join Date: Feb 2022
Posts: 4
Rep Power: 4 |
Thank you for your reply cwl.
Would this mean I should apply it on an area, which would then become a volume once the axisymmetric condition is enforced? |
|
February 2, 2022, 05:20 |
|
#4 |
New Member
Mathias
Join Date: Feb 2022
Posts: 4
Rep Power: 4 |
So, I have written the code in the attached picture in a scalar field function.
It previews nicely, so I am assuming nothing is wrong with the code itself. However, the field function does not appear when selecting my function in the momentum source option. When looking under the field functions section, I see that it is crossed out - do I need to somehow publicize it, or is this a symbol of some error? This is also shown in attached picture. |
|
February 2, 2022, 05:26 |
|
#5 |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 438
Rep Power: 18 |
I'd suggest you read about field functions in the STAR-CCM+ user guide, it is somewhere around page 454 (depending on the version).
|
|
February 2, 2022, 10:15 |
|
#6 |
New Member
Mathias
Join Date: Feb 2022
Posts: 4
Rep Power: 4 |
I found the reason.
For anyone who may need this: The force needs to be assigned to an area if you are using an axisymmetric analysis, and be a vector. I made it work with he following: [$$Position[1] >= 0 && $$Position[0] >= -0.05 && $$Position [1] <= 0.56 && $$Position[0] <= 0.05 ? 260 : 0, 0, 0] | | | | from y coord > 0 from x coord > -0.05 to y coord < 0.056 to x coord < 0.05 assign 260 N/m3 and with a 0 component in y and z direction. Hope this may help someone. |
|
February 2, 2022, 21:03 |
|
#7 |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 438
Rep Power: 18 |
Good job DAWTson!
Also - thank you for sharing your solution, I'm pretty sure someone would find it helpful |
|
Tags |
field functions, volume forces |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use "translation" in solidBodyMotionFunction in OpenFOAM | rupesh_w | OpenFOAM Running, Solving & CFD | 5 | August 16, 2016 05:27 |
[snappyHexMesh] sHM layer process keeps getting killed | MBttR | OpenFOAM Meshing & Mesh Conversion | 4 | August 15, 2016 04:21 |
[blockMesh] blockMesh error - Negative Volume Block | adoledin | OpenFOAM Meshing & Mesh Conversion | 2 | June 22, 2016 11:44 |
multiphase turbulance case floating error | harsha_kulkarni | OpenFOAM Running, Solving & CFD | 3 | February 18, 2016 06:06 |
Multiphase simulation of bubble rising | Niru | CFX | 5 | November 25, 2014 14:57 |